[dpdk-dev] [PATCH v3 10/10] app/testpmd: support shared action
Andrey Vesnovaty
andreyv at nvidia.com
Tue Oct 6 12:36:35 CEST 2020
Hi Ori.
testpmd documentation will be added in v4.
Thanks,
Andrey
> -----Original Message-----
> From: Ori Kam <orika at nvidia.com>
> Sent: Sunday, October 4, 2020 3:05 PM
> To: Ori Kam <orika at nvidia.com>; Andrey Vesnovaty <andreyv at nvidia.com>;
> dev at dpdk.org
> Cc: jer at marvell.com; jerinjacobk at gmail.com; NBU-Contact-Thomas Monjalon
> <thomas at monjalon.net>; ferruh.yigit at intel.com;
> stephen at networkplumber.org; bruce.richardson at intel.com; Slava Ovsiienko
> <viacheslavo at nvidia.com>; andrey.vesnovaty at gmail.com; mdr at ashroe.eu;
> nhorman at tuxdriver.com; ajit.khaparde at broadcom.com;
> samik.gupta at broadcom.com; Ori Kam <orika at mellanox.com>; Wenzhuo Lu
> <wenzhuo.lu at intel.com>; Beilei Xing <beilei.xing at intel.com>; Bernard
> Iremonger <bernard.iremonger at 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 <orika at nvidia.com>
> > Sent: Sunday, October 4, 2020 2:28 PM
> .xing at intel.com>; Bernard
> > Iremonger <bernard.iremonger at intel.com>
> > Subject: RE: [PATCH v3 10/10] app/testpmd: support shared action
> >
> > Hi Andrey
> >
> > > -----Original Message-----
> > > From: Andrey Vesnovaty <andreyv at 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 <andreyv at nvidia.com>
> > > ---
> >
> > Acked-by: Ori Kam <orika at nvidia.com>
> > Thanks,
> > Ori
More information about the dev
mailing list