Hi Ori. testpmd documentation will be added in v4.
Thanks, Andrey > -----Original Message----- > From: Ori Kam <or...@nvidia.com> > Sent: Sunday, October 4, 2020 3:05 PM > To: Ori Kam <or...@nvidia.com>; Andrey Vesnovaty <andr...@nvidia.com>; > dev@dpdk.org > Cc: j...@marvell.com; jerinjac...@gmail.com; NBU-Contact-Thomas Monjalon > <tho...@monjalon.net>; ferruh.yi...@intel.com; > step...@networkplumber.org; bruce.richard...@intel.com; Slava Ovsiienko > <viachesl...@nvidia.com>; andrey.vesnov...@gmail.com; m...@ashroe.eu; > nhor...@tuxdriver.com; ajit.khapa...@broadcom.com; > samik.gu...@broadcom.com; Ori Kam <or...@mellanox.com>; Wenzhuo Lu > <wenzhuo...@intel.com>; Beilei Xing <beilei.x...@intel.com>; Bernard > Iremonger <bernard.iremon...@intel.com> > Subject: RE: [PATCH v3 10/10] app/testpmd: support shared action > > Hi Andrey, > > I think you are missing documentation: > Do/guides/testpmd_app_ug/testpmd_funcs.rst > Best, > Ori > > > -----Original Message----- > > From: Ori Kam <or...@nvidia.com> > > Sent: Sunday, October 4, 2020 2:28 PM > .x...@intel.com>; Bernard > > Iremonger <bernard.iremon...@intel.com> > > Subject: RE: [PATCH v3 10/10] app/testpmd: support shared action > > > > Hi Andrey > > > > > -----Original Message----- > > > From: Andrey Vesnovaty <andr...@nvidia.com> > > > Sent: Sunday, October 4, 2020 1:06 AM > > > Subject: [PATCH v3 10/10] 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 <andr...@nvidia.com> > > > --- > > > > Acked-by: Ori Kam <or...@nvidia.com> > > Thanks, > > Ori