[dpdk-dev] [PATCH v4 2/2] app/testpmd: support shared action
Ori Kam
orika at nvidia.com
Wed Oct 7 08:30:27 CEST 2020
Hi Andrey,
> -----Original Message-----
> From: Andrey Vesnovaty <andreyv at nvidia.com>
> Sent: Tuesday, October 6, 2020 11:09 PM
> To: dev at dpdk.org
>
> Subject: [PATCH v4 2/2] app/testpmd: support shared action
>
> This patch adds shared action support to testpmd CLI.
>
> All shared actions created via testpmd CLI assigned ID for further
> reference in other CLI commands. Shared action ID supplied as CLI
> argument or assigned by testpmd is similar to flow ID & limited to
> scope of testpdm CLI.
>
> Create shared action syntax:
> flow shared_action (port) create {action_id (shared_action_id)} \
> (action) / end
>
> Create shared action examples:
> flow shared_action 0 create action_id 100 \
> rss queues 1 2 end / end
> This creates shared rss action with id 100 on port 0.
>
> flow shared_action 0 create action_id \
> rss queues 0 1 end / end
> This creates shared rss action with id assigned by tetspmd
> on port 0.
>
> Update shared action syntax:
> flow shared_action (port) update (shared_action_id) (action) / end
>
> Update shared action example:
> flow shared_action 0 update 100 rss queues 0 3 end / end
> This updates shared rss action having id 100 on port 0
> with rss to queues 0 3 (in create example rss queues were
> 1 & 2).
>
> Destroy shared action syntax:
> flow shared_action (port) destroy action_id (shared_action_id) \
> { action_id (shared_action_id) [...]}
>
> Update shared action example:
> flow shared_action 0 destroy action_id 100 action_id 101
> This destroys shared actions having id 100 & 101
>
> Query shared action syntax:
> flow shared_action (port) query (shared_action_id)
>
> Query shared action example:
> flow shared_action 0 query 100
> This queries shared actions having id 100
>
> Use shared action as flow action syntax:
> flow create (port) ... / end actions {action / [...]} \
> shared (action_id) / {action / [...]} end
>
> Use shared action as flow action example:
> flow create 0 ingress pattern ... / end \
> actions shared 100 / end
> This creates flow rule where rss action is shared rss action
> having id 100.
>
> All shared action CLIs report status of the command.
> Shared action query CLI output depends on action type.
>
> Signed-off-by: Andrey Vesnovaty <andreyv at nvidia.com>
> ---
Acked-by: Ori Kam <orika at nvidia.com>
Thanks,
Ori
More information about the dev
mailing list