RE: [PATCH v2 3/4] ethdev: get meter profile/policy objects

2022-05-31 Thread Alexander Kozyrev
On Thursday, May 26, 2022 8:28 Ori Kam wrote: > I think you should say also what happens to this pointer or values > in case of modification of the policy or destroy of the policy. Will mention this in the commit message in v3. Pointer is expected to be invalid and cannot be used once policy dest

RE: [PATCH v2 3/4] ethdev: get meter profile/policy objects

2022-05-26 Thread Ori Kam
Hi Alexander, > -Original Message- > From: Alexander Kozyrev > Sent: Sunday, May 22, 2022 1:51 PM > Subject: [PATCH v2 3/4] ethdev: get meter profile/policy objects > > Introduce a new Meter API to retrieve a Meter profile and policy > objects using the profile

[PATCH v2 3/4] ethdev: get meter profile/policy objects

2022-05-22 Thread Alexander Kozyrev
Introduce a new Meter API to retrieve a Meter profile and policy objects using the profile/policy ID previously created with meter_profile_add() and meter_policy_create() functions. That allows to save the pointer and avoid any lookups in the corresponding lists for a quick access during a flow rul