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 6C86BA04BB; Tue, 6 Oct 2020 12:36:59 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AB7D51023; Tue, 6 Oct 2020 12:36:57 +0200 (CEST) Received: from nat-hk.nvidia.com (nat-hk.nvidia.com [203.18.50.4]) by dpdk.org (Postfix) with ESMTP id 6C182F64 for ; Tue, 6 Oct 2020 12:36:54 +0200 (CEST) Received: from HKMAIL103.nvidia.com (Not Verified[10.18.92.77]) by nat-hk.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Tue, 06 Oct 2020 18:36:52 +0800 Received: from HKMAIL102.nvidia.com (10.18.16.11) by HKMAIL103.nvidia.com (10.18.16.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 6 Oct 2020 10:36:38 +0000 Received: from NAM04-BN3-obe.outbound.protection.outlook.com (104.47.46.52) by HKMAIL102.nvidia.com (10.18.16.11) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Tue, 6 Oct 2020 10:36:38 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CALvWqzNx9HersP1YDpoVC0AbLgzK3n3vK5L6GmG6BVJBJWXlB/NcXgadWegrJT2wjFCtMR6dLq4tTJ82AY85CwUqdpuQnB6aM3z88toFAOJp0Vxnq1YyI9Pcbl88+QE/ZyG4Vj30g4RsbCWvLILB2sFYEmx9BdMwQaa5lqcnSxUr5abLpgp2Y2OPDQhV2ZVDsYipaz/u6Q6sdN4wmZ5dBjlzK4z1NOTo7IDRzw5zASgihHj9QszrB5xIWa4jiZ0PsuaGqqjimjgGybEUVWUbts1n79nAFM/neAjF9o1Bw8Hk9+jEWyhwQISSLMYFbAYWO5YPukD3RTe3fkiNzGcdg== 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=C7mnUn6bliHs2x5cb4G5nEtYpOut5lGeCOW5D79kd9E=; b=l5OtfEJGz+Cq283FrC34rM0T7TNMTVcC/xUdveR4buTkMB0iIGNCDAzg8xKznc8vBmgiRlRJktzIwvsLgG55HmILidxHrIjrTVIN4tXQLFwHALWG/q2uwsquQmNr6loQ+kZvJJjxl/72lfcDAdBR8f4plBX2TYBNKmsY1Qpp8pA+Rdk9tgexG2i2gmGX1nBvSpCl/OJMjSyAbpq0T3dyXmQTNBcn3fBfdauuvKasvgprgHGYCT0QOtR7XuG3qjrFS3p0t7NBSY6oyT3iv02JnsoXd+WsWVaUcVs5rCt13gbcrm+EGH8FJpefwcJMu4TxqgqwvnwJ/0aeHNMKm4lp4w== 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 MWHPR1201MB2525.namprd12.prod.outlook.com (2603:10b6:300:e0::19) by MWHPR1201MB2476.namprd12.prod.outlook.com (2603:10b6:300:de::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.38; Tue, 6 Oct 2020 10:36:35 +0000 Received: from MWHPR1201MB2525.namprd12.prod.outlook.com ([fe80::3ccb:ec09:9346:54b1]) by MWHPR1201MB2525.namprd12.prod.outlook.com ([fe80::3ccb:ec09:9346:54b1%7]) with mapi id 15.20.3433.045; Tue, 6 Oct 2020 10:36:35 +0000 From: Andrey Vesnovaty To: Ori Kam , "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: AQHWmkFsMTLMNxwAdkOGcV2L0OjtuamHWJGAgAML2AA= Date: Tue, 6 Oct 2020 10:36:35 +0000 Message-ID: References: <20201003220619.19231-1-andreyv@nvidia.com> <20201003220619.19231-11-andreyv@nvidia.com> In-Reply-To: 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: [87.71.166.102] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 78e7c974-1c7d-4d19-577f-08d869e3b2ef x-ms-traffictypediagnostic: MWHPR1201MB2476: 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:628; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: vVs4iyLGNQ/C2OO+7jf/i9rBD7YymB1m2Kbdn7qJQPZMiyMozgKWva/EImEBZmP/ra/3Oj0OGbwP9i3/SgkN28M4P0Es0dTRnTNFbZSsMokfABMbZTRcweI5Tjac6oChQ4LMmJfkSWyg1iAztdNKkqE6vNnTTQIjDOy2qBdUAz4mKEt71mfY4j9Vq+aIre2Of2h2KADCvLpv+3lBz5j1VMeoO0/oK2IQj/rzraShm785spYIR/DxRSgjGjsFLAMJuC7lEAp4alaYVnMRh5NwOc8ay+Z+aZ7UNvga5pf3hlRuF4SEJcniKhfxqasOvMlE x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR1201MB2525.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(366004)(376002)(39860400002)(136003)(396003)(54906003)(66556008)(66476007)(64756008)(186003)(66446008)(76116006)(316002)(66946007)(7696005)(26005)(9686003)(55016002)(8676002)(33656002)(8936002)(53546011)(6506007)(71200400001)(2906002)(478600001)(52536014)(110136005)(5660300002)(4326008)(86362001)(7416002)(83380400001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: uVEwCVc8rxZ0MV7XMLBvRNx/NOvyDFhU5dnzPvlHMyG85JuAV0c2J3WiUf659U3vk5w5xLJL+Jc6ulj9SU5XkuL2hx5JhO6/TSfO+8wrhAD4t8drmvC+GC7kh3TIN+fn9TtpUgwt5AfrhkHseFE93rabzq2Snh1179VEXrx3/OvclinGo2o/UDf8yOqKv1O21JtRqu/5CVc3CUKqxoDNJECl6BW1EOU+gcd2+ET+fA7cYvuQNWKto95qNucRzR9c9Chyo+LGTta6BCzNWj4wD5D08H+UtSwxuSwnKNdtiFNnL6q2h4ercprmyDYQXHirC3IAGTWGw+VOmqU0Py47AtIxy4YUjPKdgl2IAoiNLQXGAK5tMMc6tuGJYRux0QEhttIyiW1EfTjwHYauRLh7yBw8g4ORCF1nxEjZF84L1AcKrLYpfAGmrva3y77juJsdfCDgba3QT/NSmDVal+JdRjG/8SlyjEP7N3m2IZVNE/xyNozhsIfSPESVRlpI+Lo333noRecIfDhCehhFOgvLGMtPCazNhWbh5PsRFarz2pZs1vKa7JeqU5IuTHgESHrLyDlXSHEs6dB53Z8gkqr8KoB274V/DI6TcBDTQ5vypd+OhYESfxWrR8cjuO6SjW7fdfyXIc7z9ntq95yJspFgVA== 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: MWHPR1201MB2525.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 78e7c974-1c7d-4d19-577f-08d869e3b2ef X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Oct 2020 10:36:35.1918 (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: GWH0yTPf7cI9G5TooG+XXndajMb36J38RGxcRI5XS7nC7LN5OJH4CLfkSba2E3OyaBN3JuKrvjC8eQkN09O1kA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR1201MB2476 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1601980612; bh=C7mnUn6bliHs2x5cb4G5nEtYpOut5lGeCOW5D79kd9E=; 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=WcxOswWXBcGWjpE3p+jRtzbu3Grsgyz85agGhDIVm4iwGQClxHih21bt+KZrly5Uc 0ADQtP2YQz2t7yY6I0lieYjRCGBQnYXS6pq4qkiV3EraMZUmYBOjv31Uc/bFPrlXJQ 6Mys1B6p4k78g2H7vsjLFuvRmQ7iIG/rAlJbLfwCnF1CIesuO795D9DU1k1ccRvWnO 8FjxbSIublVqMOfQa+6iS6C9o1+fg9lrdX3FwQTUr3muD/lsgYYEZHSMGsZpgFoI5V SF0XqDA2bH+DYqfubNpOKMQHlhZKHdN+xT+KV/8aYBGmSmTfsMD5A0+Up3CA9MBXVc Og7sYVezD2ITA== 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 Ori. testpmd documentation will be added in v4. Thanks, Andrey > -----Original Message----- > From: Ori Kam > Sent: Sunday, October 4, 2020 3:05 PM > To: Ori Kam ; 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 > Subject: RE: [PATCH v3 10/10] app/testpmd: support shared action >=20 > Hi Andrey, >=20 > I think you are missing documentation: > Do/guides/testpmd_app_ug/testpmd_funcs.rst > Best, > Ori >=20 > > -----Original Message----- > > From: Ori Kam > > Sent: Sunday, October 4, 2020 2:28 PM > .xing@intel.com>; Bernard > > Iremonger > > Subject: RE: [PATCH v3 10/10] app/testpmd: support shared action > > > > 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 > > > > > > 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 > > > --- > > > > Acked-by: Ori Kam > > Thanks, > > Ori