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 63220A04B7; Sun, 4 Oct 2020 14:05:02 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7F0791BB0C; Sun, 4 Oct 2020 14:05:00 +0200 (CEST) Received: from hqnvemgate24.nvidia.com (hqnvemgate24.nvidia.com [216.228.121.143]) by dpdk.org (Postfix) with ESMTP id CB4431BAE4 for ; Sun, 4 Oct 2020 14:04:58 +0200 (CEST) Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Sun, 04 Oct 2020 05:03:11 -0700 Received: from HQMAIL101.nvidia.com (172.20.187.10) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Sun, 4 Oct 2020 12:04:44 +0000 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.177) 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 12:04:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XiYFq8snIXWtX1UH28LeXylydboektjR6lBH9DtYSbVOLff3MnKjd8b2pI90Go04Ux9P+aOsuVfbVsu0XEXGi/qIEeoSTFcMbXZlE9nazsJoJqgyKZkR/ZQIjOp3DHu46Q0C79q5u1Ov602OvcjcczInvf0oAmzFzoeZ2ZD2fxXD53RdqwEkGVO8nv5CNBBEFYBTs8JbFXEThiOQWM1bdQIWpCwYZyfwPyJx8pte7MbUAbQ34cS/+YaG6GK2kM8zgVljUMOV9dgW+rDLUdVtovrENZdKAbMK2PXlmqe2P4CwNl21E388iktyjYoKFKA9EeZfApri3y2zxNm4a66ZcA== 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=6ZMcKob1oaUNLu2NMP0ouXzlj8AAgq4lI2eTi5sJUPM=; b=ME6OYckL89krIBsKGqBk0QQLNLA+BvFR2dTr87CNZ7cUG3kZNOGZGmsNW4b7PInvvFmrTqKl/CxvHqprXLATNwA3q4D6AlwQhE1bNh/LhnS0bruaoChxirjlCrLI3jQ+Tb1ewO3scttbGsfVJdA+Txdff2t7xEhT9TdTwW2h0Fu7WF78tFC2TWyJGmDjcmHTLFt+Ts2EONK+VmUUOugL0RtlxlErtAHp5iOUT2JfIOg7ZAEy+hgVWi0uc+s8+ZCbRz5xu8C/gUbOtFawGogC0HhumCfz0sVc+b+m5maVqc4sPGWZmvzV/2bzXAO9G9yeFvGg2jdN4wgBFfzpom4tMA== 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 BL0PR12MB4721.namprd12.prod.outlook.com (2603:10b6:208:8e::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.32; Sun, 4 Oct 2020 12:04:41 +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 12:04:41 +0000 From: Ori Kam 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" Thread-Topic: [PATCH v3 10/10] app/testpmd: support shared action Thread-Index: AQHWmdG7pUhEDoqJZ0yhwr+lEfnzgamHTrBwgAAJ5SA= Date: Sun, 4 Oct 2020 12:04:41 +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: [147.236.152.129] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f8a5c389-50ab-4e54-9ef0-08d8685dad0c x-ms-traffictypediagnostic: BL0PR12MB4721: 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:530; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 7IVQJAdm8k0aIcIu986lPXd/chBdIIwctQa4+e2Zx5DP5eGM2/34QqJc/zOM3k6Dgnkd6H48pWLpsYvDZ8ziobmirJkSSa1cFn4HxWSLvLHuWm6dF2/JG8pSnZG85LxSxi447WMEtS5gq30qNSy3kKC67DimbRSbIUYLTKlvyQikeKSzYqWJR8cHltU7zncLRSwI/8h5WqlY21lE2qKmFQzUKdf8KoHe6TXbP3aZ/spUFSq15UH4/Un/YxqO8l/UQqmG9OWV+R5bGlrDlpfIz3b27WPXDqozOCZUTqaUAZ8oXEkENCYK+PWm0Jh6O6F7 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)(376002)(346002)(39860400002)(396003)(366004)(186003)(33656002)(26005)(4326008)(76116006)(5660300002)(66476007)(66556008)(64756008)(66446008)(2940100002)(52536014)(54906003)(66946007)(7696005)(8676002)(316002)(110136005)(6506007)(478600001)(53546011)(55016002)(9686003)(8936002)(71200400001)(7416002)(83380400001)(2906002)(86362001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: KsGtC+ONw6mKaqPRLsRiBjr/pQypL5ziQ/7OtVAYtq4Z+CkbcTqsY+BMcmTn34ZWw+9GV2fKex+GgMJ56x/XyF5O3R6vaJexlfbzxZp0XDYmITFzhADBWLWGtV35ao+XPJaFSnIeO8QCwvgksECurTGI6W1PtPpvzVO3ik6WtGGUrxbVHmS3P5tIul9qKSQNcrYGD+IIUNo6r9QCv2F+CFLXrLKFAqzJ5kcXzH442AOfLDPYZEuDuR3kBzeILjw6I52R8JVWma2Fya97I5tab7Q/+oGGj2jP982AZc81tDKfIRu7ZTWSXJrTs7myJaPEcxTLly6TBD2h2ma+PodKaeiSyq2SErdDQUQDpgpuHTcOXTA7D3GN/0faAMeHEGv8GJUi65GSxj53+0uCYgZA0WWwofCbzl/Q/BvqiLTh/G6sWszp5Z1FX8tWed37CDmoU29a0eHvHUedjROqtU9xAoTxFZRzHPZx45t/HPRlNyOAWALmLRaEWs0PqTXbo+yqCGDr8IWJFBQifJCxaMDa6h+GjBYK0HjmxW3E/Y5KtKvZIeiUQ6fan2hveym6VlIQQH1Nqqe/gaEywDIpKFN/9KOIuGLvTnnBUuLC7gf1+qTcbexE7rzxbhwsfKisiBLBcOtXvQ7+uoVXRAm9YYf2NQ== 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: f8a5c389-50ab-4e54-9ef0-08d8685dad0c X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Oct 2020 12:04:41.5436 (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: ShPetsSGll/aaMhyeaIeJFntpi14VCYQhQ6e4ugGtEdZS3mQjRT2KSuJVvu7FNq8i6lGTB1vTZ/gYjuVQY5NYA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR12MB4721 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1601812991; bh=6ZMcKob1oaUNLu2NMP0ouXzlj8AAgq4lI2eTi5sJUPM=; 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=rm/fdFcCpKhsg2YzutjBhtVUDpn119CEQkxxq4Rg1lYuNS9iBxnYwlFjtQybMLxGY s0XiMAelsbiK5yjI66lwcLKyigMP6cTVIgnpPBzY2ZmUjWmxXqZYHWvsjFm9AEkDrn VPHiy25xkqdMCE7Cali3IWs6jMNqOSyxAjnDJ+ck9+qli3iR4L5gcv8LIAIPeRgF5W FyM8HgmKwkBYfjOj8LajdNWbGwtRjeIjfeX/Ae4uoUsWerhf528pbWmN9v5WtgC3/L 6lPIMPRcV5F8SJWDH2jOR3+pMKDqw0HlMiqNfARL1j3pfWpgqdpFwL1rg7IcEv90MA KSocv/nb2LGdg== 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, I think you are missing documentation: Do/guides/testpmd_app_ug/testpmd_funcs.rst Best, Ori > -----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 >=20 > Hi Andrey >=20 > > -----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 > > --- >=20 > Acked-by: Ori Kam > Thanks, > Ori