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 DD13DA04B7; Sun, 4 Oct 2020 13:28:19 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4F7041BC1C; Sun, 4 Oct 2020 13:28:18 +0200 (CEST) Received: from hqnvemgate26.nvidia.com (hqnvemgate26.nvidia.com [216.228.121.65]) by dpdk.org (Postfix) with ESMTP id 735BE1BBEA for ; Sun, 4 Oct 2020 13:28:16 +0200 (CEST) Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Sun, 04 Oct 2020 04:28:02 -0700 Received: from HQMAIL101.nvidia.com (172.20.187.10) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Sun, 4 Oct 2020 11:28:03 +0000 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (104.47.38.55) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Sun, 4 Oct 2020 11:28:03 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IYwZNzfME4azESEIasaeuHx/buNm+GALM8ISUVvAytKSVPwWkvcXXt6CPstj3lCuyZZEOnWOBFuuvSvlKjuP9xvV79rHc3q5m6FSHEZrghGCWJ8KXEUxcPXwiuN8cbPMzjvvztWyn//Mak+kLUwu26n8YwvitD8+U1J4yTgcNJUWnApTqajzNAGrwXnbhHrAE83YmGckcJntoe8h0KK5rF2mkrlnVvVDRepyb2gaeSDPnVeNWokTHq59LwsQtRJ7i4JQZJXuUdcz8Fx86r+phL+mVgRysvAVenv8wM9hXalaunBjFq/NCL7zW61L1svBfs9LJtqgPqRUN76hG4yBMw== 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=eVWVI7R7R4tnhw3+o4hT21gthQkGp6ym7F5z+rZUTqI=; b=Z7sqn/OtOdkg/KOhccDS4A7v5O+vxzZPO3n7kbQqaKyQfHCFONgb+mKtO1H2NoZlvLsw+JMD5LBp37A7doHXS0BaW0H2DY1uo9dMHvHcoeybirhztd284y/q3BZW6pJozKFkQCxqGQ6ggHwTH4bXmhxYlBxWJ9M12eJ8A6HpjA5ixT9+3nFx2FB1c0o95ySAeLDM7duvEgh1O50rV0owSoW9t55/TrVaGemnctt0jL4lBbW/N87X1QN9jyUY/wTRd/ag5X7FWq811hTEE87CtHjPjhkYY4pD6ueQBjmyvQ9BDnlMQ15EeqTaV7wsvV+E2AvFH11HZvSj7e6hMMxt9g== 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 MN2PR12MB4423.namprd12.prod.outlook.com (2603:10b6:208:24f::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.38; Sun, 4 Oct 2020 11:28:02 +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.042; Sun, 4 Oct 2020 11:28:01 +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" Thread-Topic: [PATCH v3 10/10] app/testpmd: support shared action Thread-Index: AQHWmdG7pUhEDoqJZ0yhwr+lEfnzgamHTrBw Date: Sun, 4 Oct 2020 11:28:01 +0000 Message-ID: References: <20201003220619.19231-1-andreyv@nvidia.com> <20201003220619.19231-11-andreyv@nvidia.com> In-Reply-To: <20201003220619.19231-11-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: f9191f5b-a98e-4845-72ed-08d868588de2 x-ms-traffictypediagnostic: MN2PR12MB4423: 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:1122; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: fHybyF+Fc/OjXFcGvNs9s3O/IwOleB8LnRLwNN3sEhf2ehstt8q4H/zfBi4TM+VzaNtetgOySeo1Hge9z493q5Gy4LQGhFhoQVXxc43LtcvwY2J9zen3sS481T4Wfgef19vpnJ+3V+vHm1ykIjX91YajTN8nRfDHLgbk+ze+u3c+YUu9MYgeIZtt0aLEvrgHgXzA5/TnnZm5vj0bLZ1LhhjeopTf6ep9i4BH91n377qtqOh90bX3wtdUymQ7DkFK8QKe/2Vk7sd8cabaB1mWbKwlyAboqMdoYpJ47OFp3UaxR+dPBgadS6gjOZPWnvI5 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)(136003)(396003)(346002)(39850400004)(376002)(366004)(9686003)(186003)(66476007)(110136005)(66946007)(76116006)(8936002)(53546011)(26005)(316002)(6506007)(478600001)(5660300002)(7416002)(66446008)(54906003)(52536014)(64756008)(66556008)(86362001)(71200400001)(83380400001)(4326008)(8676002)(55016002)(33656002)(2906002)(7696005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: 5JhU0qrlz2e5HGj+zVDssz544IuVxulommrh0Q8/SIGVLJKKSphcn5RY0JFb7B/0t2UqC6Ol7jtceBSthMS7gWHNf91vXS3xITzjrM0cbh5v9Xfl+UHM/0q5Hs4so3G/FtJ2Rok68PWZRl42TcBu+kNjhbSNR5qBALxAmue6qM0SI0nHW0qOcMaeiqcrBmwdEMyl09AdThjIxD753j6oEmC+KCnLVblv/oOwtVILJjXxfZ9xTvXaNIq8NunVrXiXrS9OgNN8FLEouB1cbHUX5hoG4eZLG0/7RfEMmFqdrcdbWML+LTbsZjaAI/CsQhViB9W6igDdbnU8l3LdlpumGIq6TsT6JYlgCyM5o8DJo8+sJy3V/i56Y4qox1kAWC9VJo0NcCkcoxKeJJEkY61HKryi/z1GyX9B0xdFqPgEphvu5vjr/SGllS1Oz+htj4hvY7UY90+GPFdk5QLaAVD/8xtJo65z1Jqj/E5ayvZYcJviQbsKkioujMnM6dAQvpm1V5ZJkOFUU6q/s39XWuv+9kG2YditBjm8jY3Z6GPr5hfEPv87qevVwRxrR1+CVK27Gy6f/mMXGJ5Lnb6DljSjfIEzs/+/hjWdBMyxA2sDASnLHbs6f08qsQrVGr3UTT4xHwI7Auq0nNB1gq83jFQlUA== 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: f9191f5b-a98e-4845-72ed-08d868588de2 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Oct 2020 11:28:01.7314 (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: XU8sIQ4B/qNB2RmiczlSbJHTjx9GizPHUaFFMR11YQmGEZjkgLfq7RxjlUc9jqu6MzR9IlMhWkwz17rVDRU3TQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4423 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1601810882; bh=eVWVI7R7R4tnhw3+o4hT21gthQkGp6ym7F5z+rZUTqI=; 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=OtFfEstQWSikQmGRGUopVQrFW3j+sEGK7EBlvkJMvJgNJ/HW6uaeTw4cNYMzjUimm MdpfGcswWlU0VcJqS4gFDpZEBau3T0vSasoXk8dZbrZFLbdkFhcUC44FtOqGa/MODD LjXBMJYaDRh6KDt+brvnDPYT+EKXU0T19O7vWXHTPnvn/7+TH1+vkWMes27xVwMkLY HK7WM4r0J2Ngk7qWGifoWeEsAZNLnjF5n7nq4eK4ZSoo1LT6cH1jS13ceMsS55agsS sungaC01meT+iElJ1A7SzMJmZc5FxNWodMk1Prdg1judluI6NcB7KBsDbwhq16wzf2 BrtRfERjPX6Tw== Subject: Re: [dpdk-dev] [PATCH v3 10/10] 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: Sunday, October 4, 2020 1:06 AM > Subject: [PATCH v3 10/10] 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