[PATCH 2/2] app/testpmd: user assigned flow ID to flows
Thomas Monjalon
thomas at monjalon.net
Wed Feb 22 17:50:53 CET 2023
22/02/2023 15:11, Eli Britstein:
> Currently, testpmd assigns its own IDs, as indices, to created flows.
> Later, the flow index is used as the ID for flow operations (query,
> destroy, dump).
>
> Allow the user to assign a user-id, to be later used as an alternative
> to the flow index testpmd assigns.
>
> Example:
>
> testpmd> flow create 0 ingress user_id 0x1234 pattern eth / end actions
> count / drop / end
> Flow rule #0 created, user-id 0x1234
>
> testpmd> flow query 0 0x1234 count user_id
>
> testpmd> flow dump 0 user_id rule 0x1234
>
> testpmd> flow destroy 0 rule 0x1234 user_id
> Flow rule user_id 0x1234 destroyed
>
> testpmd> flow destroy 0 rule 0x1234 user_id
> Flow rule #0 destroyed, user-id 0x1234
>
> Signed-off-by: Eli Britstein <elibr at nvidia.com>
Please Eli, we need explain why adding this feature.
Could you add the justification done in the RFC?
Thank you.
More information about the dev
mailing list