From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6F158A04BA; Wed, 7 Oct 2020 08:30:45 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E98D92B8C; Wed, 7 Oct 2020 08:30:43 +0200 (CEST) Received: from hqnvemgate26.nvidia.com (hqnvemgate26.nvidia.com [216.228.121.65]) by dpdk.org (Postfix) with ESMTP id 207D229AC for ; Wed, 7 Oct 2020 08:30:41 +0200 (CEST) Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Tue, 06 Oct 2020 23:30:27 -0700 Received: from HQMAIL107.nvidia.com (172.20.187.13) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 7 Oct 2020 06:30:29 +0000 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.168) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Wed, 7 Oct 2020 06:30:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VhL5RRHU2sL23flX/3H9nRDl4le78bbWNPaSCRqHa1RretGPTZRkCDRjqIhg1eKVaGhZWtHcjB6P9rDjIKljQLSVNQZabMx2puPDECdUCRd/QiOy13ZMOO5heDaZf3oMZZO+chjFC3IXOKj5DYW8+5B2wFuj0Rn2JL8/8RUaBj8t0fAm70+HiRuqZJN8I4qGIlfMe2eOaqyfbkPFrzlwL+td9haUuk8ZsaZVkUZIBkeI5Ec1X1Hb2glBmcySCPSyHWBddZvM8f+BkalVcJgNDvw/k/DjynvWEImfnMZPwrAkh0ynIBy3aXvwZp8ZieaJN35EwlKJ1rEFN+8cEUJakw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Pe5QdoOXR3tksPpY/WSmG/NHQYkD18pNbu9VY0NBCrs=; b=WrIwtmxpt/MV8RXxeNunUsVSDmsu92bdlYqNXJJd7uzBtrw5ss7g/qHftu4wjfDeCwsR+QLQxwlXudCtUhqXyM0u6NOYWulxk7En9BHTNmCFbp6wQIf6wQk8UjrIv8NTlAV9BwcevoSz/lEJfscThtJUbQObYYFeHyQ0J6WYt5gPUSuRqcs7VzWny7r/eGj1zT0/fd2LVYihPGvDYLx7qDDjSCT0kuHWcq+b91Lh3CpjUWu5HWhKBB8fnDINCVXqCgUSY57MQa/RuKsYaSOGffpakjSDGNlHdz931hPPMfWUHezOoZDs2Cg/4TxafrlZX1upZPR23sAZgsNIN06HwA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none Received: from MN2PR12MB4286.namprd12.prod.outlook.com (2603:10b6:208:199::22) by MN2PR12MB4488.namprd12.prod.outlook.com (2603:10b6:208:24e::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.36; Wed, 7 Oct 2020 06:30:27 +0000 Received: from MN2PR12MB4286.namprd12.prod.outlook.com ([fe80::61fd:a36e:cf4f:2d3f]) by MN2PR12MB4286.namprd12.prod.outlook.com ([fe80::61fd:a36e:cf4f:2d3f%8]) with mapi id 15.20.3433.046; Wed, 7 Oct 2020 06:30:27 +0000 From: Ori Kam To: Andrey Vesnovaty , "dev@dpdk.org" CC: "jer@marvell.com" , "jerinjacobk@gmail.com" , NBU-Contact-Thomas Monjalon , "ferruh.yigit@intel.com" , "stephen@networkplumber.org" , "bruce.richardson@intel.com" , Slava Ovsiienko , "andrey.vesnovaty@gmail.com" , "mdr@ashroe.eu" , "nhorman@tuxdriver.com" , "ajit.khaparde@broadcom.com" , "samik.gupta@broadcom.com" , Ori Kam , Wenzhuo Lu , Beilei Xing , "Bernard Iremonger" , John McNamara , Marko Kovacevic Thread-Topic: [PATCH v4 2/2] app/testpmd: support shared action Thread-Index: AQHWnByirEw3uuNXHk2Rq/xYVFdoa6mLrjSg Date: Wed, 7 Oct 2020 06:30:27 +0000 Message-ID: References: <20200702120511.16315-1-andreyv@mellanox.com> <20201006200835.30017-1-andreyv@nvidia.com> <20201006200835.30017-3-andreyv@nvidia.com> In-Reply-To: <20201006200835.30017-3-andreyv@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [147.236.152.129] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a10a48fc-1e55-4e38-9579-08d86a8a7b32 x-ms-traffictypediagnostic: MN2PR12MB4488: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3513; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: p0nY+dc0d/RY6eNBmNB/ALYiuRPcN0RNASMkPUC8/AsyEBhixYojXOsJPTd1mHJ6dJ3p+tKE+cmglu1cCpXf7Tj9ASpWpnBN/uz3eyMZD6mGt6HO3NN76wqgPVwTj284hVjgYXoqi03s0Z3TtzZiQpTLYzlUM4zXvv0gOI9dtLlNQ/dIjpMuM/YdBVh7aI0IEJrWKkksyhLk4QdFZ9VpC3L3IneUlGVBB6Ed464bJD30y3kNVPWLn09l0OEJ4Zi1AarMpOq8OfgkB5rAIAYlPQILXKAljnXjMRQ6dkhYr78hlUlpT3Jz3YNtqc9U/L93 x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR12MB4286.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(136003)(39860400002)(346002)(376002)(396003)(8676002)(55016002)(6506007)(53546011)(71200400001)(478600001)(8936002)(83380400001)(7696005)(7416002)(66446008)(66556008)(66946007)(76116006)(316002)(9686003)(86362001)(5660300002)(4326008)(66476007)(26005)(2906002)(64756008)(186003)(110136005)(54906003)(33656002)(52536014); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: t5tGhe7EvqunBpdnZEjou3N7KC0w23GHagF7v25uZXiNw3z7Y9MTGmOryh+vnmJ2ZOFqZYdEgIPdwBZ91qHib5AVdoNzmHA+r6flEx17vsgd19kPSbEGzaUcm0aTf9gApWYl9k2RPvwTx9XOUuYt6h7XO3ZasG/4cOHvGyf35oAWihEAWaCtFEfu+S6LhmaUCwGA8SsXDMJ99FgknRQSqXm88Y5dbb5XF1AKlCAgKBXz06o5flZD2lH2AgsAa2i5+Hx6BG3Optb9OaQUYrsE1kwXHaiRJ0qgpMFOOBblYNcbTjcxusHMjjF57sPSl3jISCnZaSmQ+YH3++CTnQ+axezumwz2smMXlAGFC2PfS3yHvfe0SZU+UO0mvEQQoANxoQf/4mQ9xSUnxYPu7BE6b94BcL0qptohVEnjKNoiTS2B8n3cSvF/a4ueblK+Gn1kcLo4ek+zI4AtuCDlLADKuFj36Oj+SYXnrcvZqma7cgQyrDfHF3aXkkNZSaqiBmwSoUj384VLYSHZDf3+t7UB54O+mis3E54t4MN+mgqnBiLbqXVOnEYAyZVVMudR67UXUcnt3TKLcY6TiPH6zosrKGWsibV87GTPUDzteFX7OXbVPjGjnRh1X+ripAmEvP2pn6pPnWJMns7R4BGDYT4c5w== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB4286.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a10a48fc-1e55-4e38-9579-08d86a8a7b32 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Oct 2020 06:30:27.6246 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: yAMdCB2dZooo7F7R447BNwIfiBY/mkS0BId+i9EkFrF1aIVJgnzKmjxCK8xUl8SnXP6ygs2yueiUNalU9Ne0+g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4488 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1602052227; bh=Pe5QdoOXR3tksPpY/WSmG/NHQYkD18pNbu9VY0NBCrs=; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To: CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References: In-Reply-To:Accept-Language:Content-Language:X-MS-Has-Attach: X-MS-TNEF-Correlator:authentication-results:x-originating-ip: x-ms-publictraffictype:x-ms-office365-filtering-correlation-id: x-ms-traffictypediagnostic:x-ld-processed: x-ms-exchange-transport-forked:x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers:x-ms-exchange-senderadcheck: x-microsoft-antispam:x-microsoft-antispam-message-info: x-forefront-antispam-report:x-ms-exchange-antispam-messagedata: Content-Type:Content-Transfer-Encoding:MIME-Version: X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-originalarrivaltime: X-MS-Exchange-CrossTenant-fromentityheader: X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype: X-MS-Exchange-CrossTenant-userprincipalname: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg; b=KDSMOLJ6vkJpD8xDIUsigmcXRgkCnIqbiTi8SnbxyYKY5CX5mg3tgdoGbvIvpVRcn tBJsJN5Eid1Iaa7aLOhd6oxpsJk/tlnsItB6yDe77hI04eNPGQ/WnYi95/N/zvlSx+ sZlCPsqyR2hcweWtmrexVEd3nOwby5kDIuZQumFHlDUpjeUOHW7m8dUknaFZDwPPCb +dBXC/vwYKAjV6enP3ejGgkQYPllC3KLtDqU0sU5yRnQv7qwtAVxOmfmeBMYB4v5kN rM2SakmCzp9GpB8jCS2J7MiO7kNwDAMRJKzTuJe22EEeXRmfydF4b5USFGjls82OPG UMxwcweCXuYng== Subject: Re: [dpdk-dev] [PATCH v4 2/2] app/testpmd: support shared action X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Andrey, > -----Original Message----- > From: Andrey Vesnovaty > Sent: Tuesday, October 6, 2020 11:09 PM > To: dev@dpdk.org > > Subject: [PATCH v4 2/2] app/testpmd: support shared action >=20 > This patch adds shared action support to testpmd CLI. >=20 > 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. >=20 > Create shared action syntax: > flow shared_action (port) create {action_id (shared_action_id)} \ > (action) / end >=20 > 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. >=20 > 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. >=20 > Update shared action syntax: > flow shared_action (port) update (shared_action_id) (action) / end >=20 > 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). >=20 > Destroy shared action syntax: > flow shared_action (port) destroy action_id (shared_action_id) \ > { action_id (shared_action_id) [...]} >=20 > Update shared action example: > flow shared_action 0 destroy action_id 100 action_id 101 > This destroys shared actions having id 100 & 101 >=20 > Query shared action syntax: > flow shared_action (port) query (shared_action_id) >=20 > Query shared action example: > flow shared_action 0 query 100 > This queries shared actions having id 100 >=20 > Use shared action as flow action syntax: > flow create (port) ... / end actions {action / [...]} \ > shared (action_id) / {action / [...]} end >=20 > 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. >=20 > All shared action CLIs report status of the command. > Shared action query CLI output depends on action type. >=20 > Signed-off-by: Andrey Vesnovaty > --- Acked-by: Ori Kam Thanks, Ori