From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 29282A034F; Wed, 31 Mar 2021 08:58:46 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1447D406B4; Wed, 31 Mar 2021 08:58:46 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2074.outbound.protection.outlook.com [40.107.244.74]) by mails.dpdk.org (Postfix) with ESMTP id 96F9040141 for ; Wed, 31 Mar 2021 08:58:44 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l6XYfLeGqyBUQep2VLOEqCULAXUNh8P2zM4aq1PH5QcsJ6XJCrHtnIlCSUCqA6O3DfIkwXhWD7kDtR4GtL6dJhBt2bZSdlvl7ncb4PXzkF7iHVF605MEzn9RD9pUQ0cocCaMajZUF8F8Zg7hd805btaRhJYKn5Yu6ONDnDpaqoeqMQKi/pwbeEsz3BbkY2aAmPcySCrQbJli5neemuC+Xb2+oNZzoYH1jLW0tGjndxyFy+Ny+fV6ymaWQAINKbLOAuDGgv/8rzr2hmAfj7TZewLYa+LL7ofmRQ+hFExTAXIKG1TE25ETuAfYyK0IcsjAdwdR+P4cn902fNXwwu5seA== 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=Ikix4qh0ZuO+V6OmTlGCBBu8L3B4rb84lsxTIFPAt2U=; b=WlJ8lHqHOl5FFX/jwtQugd93TbRd6KHC3R7uJjm20E4k1/HpNLT+HJmDytRxsEmlQDGzsNE2vQbf9nauxTiJO1LduYzVKeg++mZdBub0yXIjIkOHAUdArmtXCYNFu1I6hxTorH1sUObu5O/Tc52iDzCzCmmvlLtyszky4YD9MNL+0Z/VKQ70Wu7EU+nyCwdL/RbOOnHY2ee2IOy5gN0zg0tq6JKGkUVqqh5Dg39pO7huRHVJqVzACbdXHPdrjT7FMa/7GhesgAdHqXU8NqyJhf2cHNSLsPaw8WYfOptbK2RN8KqXFqEAuLIE5m/bvvwT2cEZ8yFCeUGXB4UK46iraQ== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ikix4qh0ZuO+V6OmTlGCBBu8L3B4rb84lsxTIFPAt2U=; b=A3M/ZAIskK5wNip6ZaQbFzT2c9oh9gY+myv3nEJoVM+pFJXlQWcqjy87lBTdyT6/adYfBqHw0pyMtQ4LTpxPra9IU2PsJsFS4zkpNgkLLhntlTTiVI68yLnIIoNYXRmUEeEGE43jK3vU6efooOcqeN4xGa39WukqDJ8LLTbcQdEaQg86Hr9JdgJGglZiKtMjddxjGX0xImnCKiUriV1tt5L7vNhp5xUh6LtsHbBhFsxVvj1k1O4IOSQom+P7VYB+QxxwTZri0Pm1a4CGNBPMEwohpwGn35WVaSAjPkCwyIr0u3uoQivVWWCdU7raMc1evp0g9YiMP+EI5ICBNlzWmw== Received: from BL0PR12MB2419.namprd12.prod.outlook.com (2603:10b6:207:44::27) by BL0PR12MB4706.namprd12.prod.outlook.com (2603:10b6:208:82::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.27; Wed, 31 Mar 2021 06:58:27 +0000 Received: from BL0PR12MB2419.namprd12.prod.outlook.com ([fe80::7979:5ea5:f490:d87f]) by BL0PR12MB2419.namprd12.prod.outlook.com ([fe80::7979:5ea5:f490:d87f%5]) with mapi id 15.20.3977.033; Wed, 31 Mar 2021 06:58:27 +0000 From: "Jiawei(Jonny) Wang" To: NBU-Contact-Thomas Monjalon , Slava Ovsiienko , Ori Kam , Ferruh Yigit CC: "xiaoyun.li@intel.com" , "dev@dpdk.org" , Andrew Rybchenko Thread-Topic: [PATCH] doc: add sampling and mirroring in testpmd guide Thread-Index: AQHXIZnq3QhqBDaGUk6un62DxIsyiaqU8cEAgAi79vA= Date: Wed, 31 Mar 2021 06:58:27 +0000 Message-ID: References: <1615295935-11197-1-git-send-email-jiaweiw@nvidia.com> <05ca2fef-575c-7e95-2033-2a09dcc453c3@intel.com> <17447772.Sbo81FVF47@thomas> In-Reply-To: <17447772.Sbo81FVF47@thomas> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [120.31.162.34] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6a2f232d-536b-4f81-fc56-08d8f4126282 x-ms-traffictypediagnostic: BL0PR12MB4706: 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:5516; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: FwQqmDEJTGxbDGfsB7E6SK0WduAZdCS7CjsiYWkuzc8bEWvM5pM8Z2fH4sAvgSk54L8dkAKnkO3/CAXg2C6M8OBDqIaI6tmm/wtdye2ALNG1uMakAuW0ndsAzG5jr66kpraMYWi6wSSPMnUgyaWk5JZ9SHyEfgQFH7UysmeZbVPP+FzzJAidzmfWPViGnjPKlJc2a9xTze85lGmfUv2Qati958fTRaJzeLuslpESUfAdCXr66M2W9Eo/OzXip6+FSyiIG8MC9j4CspIvlDCK4LUcGD1RfwZUklYYdQ2eNMQmeZZW3lemaIp5sCozY9/yFrlzRaA7GDk9JN925WiwXyHTJEpWxJskO6Xu29xYyA51aJHEyjVTZ2e6+Xxao+Tz5u8xSJhSJizIKQCm3zNS0tdcJCo4Yp4mtvQ2uBvFGe7wBV2Z+81BL2FGjz+D3dJX+Ecf7m2DjNyBTGjlw7E6m3r1RORJtH5Z/t680qQ7gVA2coKZ4vfyVncZHNZ/tjG6DcJ4gjWgFzYUliJKJEcG3eW713qAofJB9EHNrLRgTdPa/nTRpq1EgZsrHUnR+tnmY2bQzkBnSsuhPZeBrUcqvf/UPzyaRXQzIjJh+1iGLUjEY4WooaHdzwKgqkYKmM9DSbxGXihlaLY6jV4ZWSkv4U2mbI0giNImVqlmGLVBLTQ= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BL0PR12MB2419.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(396003)(136003)(366004)(39860400002)(376002)(5660300002)(55016002)(6506007)(2906002)(186003)(53546011)(4326008)(9686003)(26005)(71200400001)(83380400001)(38100700001)(33656002)(8936002)(76116006)(66946007)(66476007)(64756008)(66556008)(52536014)(110136005)(478600001)(316002)(8676002)(54906003)(66446008)(86362001)(7696005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?e2mLIsNYJUB2tsdXwBWQUuq7h4UPsPfijztFz/VFSTtoThfSHIpLN4JB/25w?= =?us-ascii?Q?BXF94u4J+5CDsa4V6eoxhBClQUY0iduycKfs+7beBjNI2RKBdZt+CuJvknOW?= =?us-ascii?Q?vWd/B5oB5iIlIVCFaneJ8pFJkOsh0vY/QIWERoy2RDqKB/iyeXqDlrLagZ5E?= =?us-ascii?Q?InSAlemrgt7gWI6X13Cn0cEruH9AW9cDJZmoUthzy8nDhq2PInLiIlY0FX88?= =?us-ascii?Q?0Dyew3w1mdVuDUMxoXI5GmdUdaBmRced5SbboKUB9qU22c9sqzq9WnHn3nja?= =?us-ascii?Q?tH9n24kBls7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C8pX7UPA?= =?us-ascii?Q?8RQ/ZzVwkNaVcE+QCCVi+zcbIQaW0ASwARtwR5/YVa0UY2zx6lob7C1VRhqW?= =?us-ascii?Q?mm5t0R/e5FMHt3UY2bRyEuL1NX5Ru5Pdb1y36aV2BNNQy3ZxTL1uE4kDEs5M?= =?us-ascii?Q?y3VjuBw448clQQPHNW+xUSyp?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BL0PR12MB2419.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6a2f232d-536b-4f81-fc56-08d8f4126282 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Mar 2021 06:58:27.1335 (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: 27HU814O/rvNlrlnAyDSaCDF4ReCj96ruGr9axtUjgYNm/DhuQ8WlaLZxjnWeC8vqQTk0iIwgv4I0nFAbSOP6Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR12MB4706 Subject: Re: [dpdk-dev] [PATCH] doc: add sampling and mirroring in testpmd guide X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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 Thomas, > -----Original Message----- > From: Thomas Monjalon > Sent: Friday, March 26, 2021 1:16 AM > To: Jiawei(Jonny) Wang ; Slava Ovsiienko > ; Ori Kam ; Ferruh Yigit > > Cc: xiaoyun.li@intel.com; dev@dpdk.org; Andrew Rybchenko > > Subject: Re: [PATCH] doc: add sampling and mirroring in testpmd guide >=20 > 25/03/2021 18:10, Ferruh Yigit: > > On 3/9/2021 1:18 PM, Jiawei Wang wrote: > > > Update documentation for sample action usage in testpmd and show the > > > command line example. > > > > > > > +1 to document this. > > > > Indeed for all testpmd flow update, it must be mandatory to update > > "Flow rules management" section for it, Ori what do you think? > > > > > Signed-off-by: Jiawei Wang > > > Acked-by: Viacheslav Ovsiienko > > > > <...> > > > > > +Sample Sampling/Mirroring rules > > > +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > + > > > +Sample/Mirroring rules can be set by the following commands > > > + > > > +NIC-RX Sampling rule, the matched ingress packets are duplicated > > > +and sent to the queue 1, and each second packets are marked with > > > +0x1234 and sent to queue 0. > > > + > > > > Also each second packets duplicated to queue 1, isn't it, because of 'r= atio 2'? > > > > > +:: > > > + > > > + testpmd> set sample_actions 0 mark id 0x1234 / queue index 0 / > > > + testpmd> end flow create 0 ingress group 1 pattern eth / end > > > + testpmd> actions > > > + sample ratio 2 index 0 / queue index 1 / end > > > + > > > +E-Switch Sampling rule, the matched ingress packets are duplicated > > > +and sent to port id 2, and each second packets are sent to eswitch > manager. > > > + > > > > what is 'E-Switch', or "eswitch manager", isn't the mirror rule generic= ? >=20 > This is the HW switch in Mellanox devices. > It should not be mentioned in this generic doc. >=20 Yes, I will remove it and send v2 patch. Thanks.