[PATCH v4] ethdev: support inline calculating masked item value
Dariusz Sosnowski
dsosnowski at nvidia.com
Mon Jun 8 16:49:32 CEST 2026
On Wed, Jun 03, 2026 at 12:28:05PM +0300, Bing Zhao wrote:
> In the asynchronous API definition and some drivers, the
> rte_flow_item spec value may not be calculated by the driver due to the
> reason of speed of light rule insertion rate and sometimes the input
> parameters will be copied and changed internally.
>
> After copying, the spec and last will be protected by the keyword
> const and cannot be changed in the code itself. And also the driver
> needs some extra memory to do the calculation and extra conditions
> to understand the length of each item spec. This is not efficient.
>
> To solve the issue and support usage of the following fix, a new OP
> was introduced to calculate the spec and last values after applying
> the mask inline.
>
> Signed-off-by: Bing Zhao <bingz at nvidia.com>
Ori has some technical issues with plain text emails on his side.
On his behalf:
Acked-by: Ori Kam <orika at nvidia.com>
Best regards,
Dariusz Sosnowski
More information about the dev
mailing list