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 67E2FA0548; Thu, 1 Apr 2021 12:48:41 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DFFAD140FB2; Thu, 1 Apr 2021 12:48:40 +0200 (CEST) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-eopbgr770087.outbound.protection.outlook.com [40.107.77.87]) by mails.dpdk.org (Postfix) with ESMTP id 2F1804067B for ; Thu, 1 Apr 2021 12:48:39 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=US9jZMmCnL3XVJ53SnjS/Xb/A6M6Gw9C4YKlaYvmIV5u5+VDDGnDHTdMwMM58MqbYW858rKutKmhIo0sPIiiKDaq645Ivz9CrazZn8Dy3T8PTwg5aoW1cvLaSINpEvidwMuKzxTuYUYnNDgYB/FIcqDFvw0rQzVEVAlarGqpqLZ01wVWKyHMiFKugZxHtvLg2A5HBUKYSirakTE6sRTC4t5JycoAJbxslniKjvQk+fOhsfiIlvoQ4rEwgpEHh8GJoU/rrPRshcAZrOxZnPlPYH6ng/pf2m66ujm4jlZHHoEjMe2B9snlCYKZf3V7wAduafWo7n9H/JWxlATOqXPEuw== 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=wzm113jqcItOlDpYWkXEWTgZYvFhYTxopYZzbEuZHgk=; b=Gd79jbPhnsAFvZMhJ79rivWAts7QloZDjEUNWWXbmPEVbuZWhRhz7cRDhS1Ex/iCUHLI57tiwNH+a/gIlX0WHs/X0JzSr2WbolqyM9Xz58v7X0ZIfoSTHR1tmkAPXqTDXmekxdk65N1Bx9kHGP/D1VtA9qJ6TPF77/tIakAAqDb2CHJtCK24VVSHuapQBqA30upFK34EZR6IdKA92kibDGjuqXGK/Mm0ligu0kyjBVVQEdrQ9x4cP05tBSFebfZ/1rg2GC+59Vz8TNTjt7b3cqfDcCEpm2AHIbEq0HxVEiV/7YVD4/E2RRNkHJWJsHFKyFisGAiDPNZC5s4vskm8Vg== 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=wzm113jqcItOlDpYWkXEWTgZYvFhYTxopYZzbEuZHgk=; b=aeb7hZHwTbGwSN1xwAq9Yf0I8c88AfIKjtiUyN1XSGzdS24+X27S6NDcUMQ01IbMTyKYNHkhuMWZw0jXIxfpceCvn191UozmwiV+7s8OK6OjbKX+O+q/UBkQzOBfFrhG05/LYjCZhx/rqu+CpCPCBaSTLNCZgLocoUuPnZ9xiqW2ye3CaqJCe3DDeilGxY4r/Bmc+4xsEW4Iuit0JpMaSsRqREQf/G20L3LuEy9H+PxSKZqbBdTHjb2O9lOEMu4OYzSKXisyuGEaQp+ePHFNIVYt22ArmMWP/Yjb+rHi6dL3hqWvDFZbtpygS/2JcmwFQLkQ5UvMinjx1N2A8HLvBg== Received: from CY4PR1201MB0246.namprd12.prod.outlook.com (2603:10b6:910:23::16) by CY4PR12MB1671.namprd12.prod.outlook.com (2603:10b6:910:c::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.25; Thu, 1 Apr 2021 10:48:36 +0000 Received: from CY4PR1201MB0246.namprd12.prod.outlook.com ([fe80::e0a3:859b:f4a3:3ecc]) by CY4PR1201MB0246.namprd12.prod.outlook.com ([fe80::e0a3:859b:f4a3:3ecc%5]) with mapi id 15.20.3955.033; Thu, 1 Apr 2021 10:48:36 +0000 From: Salem Sol To: Ferruh Yigit , "dev@dpdk.org" CC: Xiaoyun Li , NBU-Contact-Thomas Monjalon Thread-Topic: [dpdk-dev] [PATCH v3 6/8] doc: update sample actions support in testpmd guide Thread-Index: AQHXGw+enBh7zZ8T3ESnDfgkKqq4jaqeFkWAgAF5j8CAAAGwgIAAAJBg Date: Thu, 1 Apr 2021 10:48:36 +0000 Message-ID: References: <20210317092610.71000-1-salems@nvidia.com> <20210317092610.71000-7-salems@nvidia.com> <405c8436-5d7d-ddfa-ea5e-21db82cfd06e@intel.com> In-Reply-To: <405c8436-5d7d-ddfa-ea5e-21db82cfd06e@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [2a10:800c:a5f1:0:fcb7:a437:d3f1:944b] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f68ffc6e-e4ab-4031-5308-08d8f4fbb3fa x-ms-traffictypediagnostic: CY4PR12MB1671: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-microsoft-antispam-prvs: x-ms-exchange-transport-forked: True x-ms-oob-tlc-oobclassifiers: OLM:7691; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: SmMFTKYY5OvPpWp0m8F0sw3IAOcPMVt+okgt+c9XwWOj8ymd+rwc42L+1DDOZZOwzsr7AkeoTBoiCDXAhA+D5ij6FsJseZTMQ1J4EAFJezJf7NQccjiXorvLB9Dq3QlJuUUeA8Td9spPhApuAFvZ/6y1JF9nY+PAdVaff8QLa749H0hsOb9LQ9rsRbTQvJU10S5JrrapLzxzQqkjd9OpRluzeDvgoX3kGwH59hYA17PRiEdybrb44NUarf59jXtVg2qHqPyoRUMIVbaxY4ZRCCr9rmqEQQp1MNvX5Axn/UlGZyNH9W+C9kDe8SC7vQ4JCBYY0s1k/VYtppDYxfW1bVpbagU9rA3Knki+lAP0GrjZe1xS7EcSkAOsvAYt0Eo7mqqtkSj5jHzEyUF6SYqBFZanBD97XTECAxtiZuTT5wBYWiHzOR93J13oD3gHE/uIgW3IRl4eiGQCk2Cck34CHr0jXyOEc3W4L6w8KZ9kaiEDHXDTc6f5/z23nbFHDTylzvM5z6OFRFfp5wgugkau8V+bSe4Z9U/ZHwDMSCEdbzymd1fn/nkwSvX2ibX3uv7Z065YvjY0m6qfdRXIcM3LRQChWWcn+kWjzmcVDfmKUypNHAViMijYMZubnf25/+o86PvbyfDBSL7AdrB4z+rhuJlMfeJBO5vmS32nsqiObNFcF6RQYQUOJRELQ2zMhQ2RYwUtJwj78gzcinafVDFAgQkl7Z7TUi3ed1eKyQj5QT5K5fg+1rZd+HXrK/rJ2jVu x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CY4PR1201MB0246.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(396003)(346002)(376002)(39860400002)(136003)(66946007)(7696005)(64756008)(52536014)(66556008)(4326008)(5660300002)(966005)(45080400002)(15650500001)(71200400001)(53546011)(55016002)(33656002)(316002)(186003)(9686003)(2906002)(8936002)(66446008)(38100700001)(8676002)(54906003)(83380400001)(478600001)(86362001)(66476007)(76116006)(110136005)(6506007); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?fZJ6zLGF9HJmFzbiD9xl1OpoXLFKiho2WCRsXMuMkbPykQlEuVjZAD4a0E3p?= =?us-ascii?Q?9lPi+TcyIWa6StRfR7MsytqkNoZWpPxAaj+LycIbWOYI0YKIC9/miwt3Wyz2?= =?us-ascii?Q?kKT+6LQTgu/Hqbt+S4ZrIuSQ5Hcw8HfNUJuuoNSWr4OGTMvcUNmyy/fpE0n4?= =?us-ascii?Q?FAN4ShRUm0fh3QBgaQ5LWWpZObiT1VEB9lghSLoTE8H0Z80FPgiJhYt6qEoU?= =?us-ascii?Q?wrZiE6nTOylp368InaQQf6v0Oui5urPBdWgiGTDtGPuJHmFED4LYybP7dg3h?= =?us-ascii?Q?RL9biCy0VDdHQ9qCEd14EJWqcmZbz3wX+grxmOJLzfy6jH6Du5nDfr71sdxK?= =?us-ascii?Q?WFMFCK8iuOUyioBoEaSAt1M6ksjhB5QdOK53kl+wmuTawn2rFnKM6mxmdkZv?= =?us-ascii?Q?InUz7/hNAUQ2SKpxyHUbXBwyvBdxI1uSY0/uDe5mmnw52+qiRfvazh5gwGx4?= =?us-ascii?Q?4VxQ9gGNoWyEop0EIbVki54iQ42HFXJsaJatROJGquQpboD4oOCs8eeY1H5L?= =?us-ascii?Q?E/tQ0lXQz8QXfiyUa0FKyMpGUbxjZgY91U4ZcVi1u3LaD5xTpgANx4yGyBhA?= =?us-ascii?Q?j6GnEeujp1METStbSnSpvKcJNVrgIpahiaX1PGUxfLtY2qejJPSNoJYqlwRK?= =?us-ascii?Q?zrIIQL5sAui96Q+1RrTxI9hasojKzS6Z1iUOac2bYSrcN6+CRDKMfbZExZFm?= =?us-ascii?Q?AmnVxey7ADz5DP29wsgcDjj8BPcBkbGTGXo5xpmsCvCJrdtwLkukzU4CQaFG?= =?us-ascii?Q?opmkUxVgwdk/pCgVQQpOO74wgq7rwnIYJKjF8PfEntgvDpQF9IlLnunxbSEY?= =?us-ascii?Q?MObpNDsMPndrr/sMkG1C+FQhrEmhFs2M/dcTUkT+yFM730XUVi0d96zOgbBH?= =?us-ascii?Q?O+PNnqFqqplQCmc0l1HHvkLHstgFhLeROIW/fUNLPWychLEEkilfQaPukUZI?= =?us-ascii?Q?+DTKduI6zihYCdY9+KCgw9BwKs5NNR91gx6Z4zjW/sidiVpqQIZi/7g5sWju?= =?us-ascii?Q?RK/VQAArDEnWBFcdgJJn+7dtL9VBA2W10cyquaUrTvu1Ra6k3GRhA5jixEak?= =?us-ascii?Q?azsVH8hbYoOisqfGypPd0xgLGGFZudHqFQZJm1m1ykW1lPRv/kU8zjEvBvHp?= =?us-ascii?Q?MlafF4R+veQjMN/Ir7vspOK8iBnyrPA+DuL/bs2+SwqN/Ly7+huLCXqPd2WX?= =?us-ascii?Q?6AEt4ZuT7pUTsjxTGnivIICJ8Rlu0h3PmDPF9Np6YqZN1cTitIcMKmAokY76?= =?us-ascii?Q?kWQDTo8j1jAhSvMpbFMSL6xBOD55UIQ/YYMY4KBocGIiq17DAnEf15VtIzWj?= =?us-ascii?Q?pMkwCD/MCzlqAYpwbU5eRa3GjY5gH8aq5Q5iepemdys5k+yJVyMvl5PrXz8a?= =?us-ascii?Q?Bc3MDyg=3D?= 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: CY4PR1201MB0246.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f68ffc6e-e4ab-4031-5308-08d8f4fbb3fa X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Apr 2021 10:48:36.4801 (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: kAH6X8B9jhs39nMcVsBfNxuDe2bt8l3geR4Wq1Z1iWfc9R6G3xVvCcpR/8eUiywRbDHUna0XyemxuAnXC0BEDA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1671 Subject: Re: [dpdk-dev] [PATCH v3 6/8] doc: update sample actions support 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" Sorry for the confusion, it was meant to show dependency on the whole serie= s which had two commits [1] and [2]. I will keep an eye for when the patches are merged to post the v4, thanks f= or the update. [1]: https://patches.dpdk.org/project/dpdk/patch/1615907899-399082-1-git-se= nd-email-jiaweiw@nvidia.com/ [2]: https://patches.dpdk.org/project/dpdk/patch/1617244796-358287-1-git-se= nd-email-jiaweiw@nvidia.com/ -----Original Message----- From: Ferruh Yigit =20 Sent: Thursday, April 1, 2021 1:43 PM To: Salem Sol ; dev@dpdk.org Cc: Xiaoyun Li ; NBU-Contact-Thomas Monjalon Subject: Re: [dpdk-dev] [PATCH v3 6/8] doc: update sample actions support i= n testpmd guide External email: Use caution opening links or attachments On 4/1/2021 11:39 AM, Salem Sol wrote: > Hi Ferruh, > > Indeed this patch is dependent on [1], it's also mentioned in the cover l= etter, I will rebase and post V4 addressing all the comments once [1] is ac= cepted. > Cover letter one links to a mlx doc patch, that was the source of the confu= sion. And the dependent tespmd patch has a new version, which looks good and I am= planning to get it today, in next a few hours, fyi. > [1]=20 > https://nam11.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fpatc > hes.dpdk.org%2Fproject%2Fdpdk%2Fpatch%2F1617180669-225007-1-git-send-e > mail-jiaweiw%40nvidia.com%2F&data=3D04%7C01%7Csalems%40nvidia.com%7C > 44180cd39e2f49fe373308d8f4faf834%7C43083d15727340c1b7db39efd9ccc17a%7C > 0%7C0%7C637528706034278930%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDA > iLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=3D3obAy > KaqOoxY7qpJCvyI3om%2FRwMaS2NaTr0S79PfimM%3D&reserved=3D0 > > Thanks, > > -----Original Message----- > From: Ferruh Yigit > Sent: Wednesday, March 31, 2021 3:06 PM > To: Salem Sol ; dev@dpdk.org > Cc: Xiaoyun Li ; NBU-Contact-Thomas Monjalon=20 > > Subject: Re: [dpdk-dev] [PATCH v3 6/8] doc: update sample actions=20 > support in testpmd guide > > External email: Use caution opening links or attachments > > > On 3/17/2021 9:26 AM, Salem Sol wrote: >> Update documentation for sample action usage in testpmd utilizing=20 >> rte_flow_action_vxlan_encap and rte_flow_action_nvgre_encap and show=20 >> the command line example. >> > > This patch has dependency to [1], right, can you please confirm it? > > [1]: > https://nam11.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fpatc > hes.dpdk.org%2Fproject%2Fdpdk%2Fpatch%2F1617180669-225007-1-git-send-e > mail-jiaweiw%40nvidia.com%2F&data=3D04%7C01%7Csalems%40nvidia.com%7C > 44180cd39e2f49fe373308d8f4faf834%7C43083d15727340c1b7db39efd9ccc17a%7C > 0%7C0%7C637528706034288924%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDA > iLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=3Dae25l > Npwcz33WuxNorJZ9%2B%2BPxviVpV%2BAWNT6OhUER04%3D&reserved=3D0 > >> Signed-off-by: Salem Sol >> --- >> doc/guides/testpmd_app_ug/testpmd_funcs.rst | 22 ++++++++++++++++++++= + >> 1 file changed, 22 insertions(+) >> >> diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst >> b/doc/guides/testpmd_app_ug/testpmd_funcs.rst >> index 3a31cc6237..392e3a31cf 100644 >> --- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst >> +++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst >> @@ -4901,6 +4901,28 @@ and also mirrored the packets with encapsulation = header and sent to port id 0. >> testpmd> flow create 0 ingress transfer pattern eth / end actions >> sample ratio 1 index 0 / port_id id 2 / end >> >> +E-Switch Mirroring rule, the matched ingress packets are sent to=20 >> +port id 2, and also mirrored the packets with VXLAN encapsulation heade= r and sent to port id 0. >> + > > Similar comment on 'E-Switch', the mirroring is generic feature but 'E-Sw= itch' > is vendor specific, can you please update testpmd in a generic way? > >> +:: >> + >> + testpmd> set vxlan ip-version ipv4 vni 4 udp-src 4 udp-dst 4 ip-src >> + testpmd> 127.0.0.1 >> + ip-dst 128.0.0.1 eth-src 11:11:11:11:11:11 eth-dst >> + 22:22:22:22:22:22 >> + testpmd> set sample_actions 0 vxlan_encap / port_id id 0 / end flow=20 >> + testpmd> create 0 ingress transfer pattern eth / end actions >> + sample ratio 1 index 0 / port_id id 2 / end >> + >> +E-Switch Mirroring rule, the matched ingress packets are sent to=20 >> +port id 2, and also mirrored the packets with NVGRE encapsulation heade= r and sent to port id 0. >> + >> +:: >> + >> + testpmd> set nvgre ip-version ipv4 tni 4 ip-src 127.0.0.1 ip-dst >> + testpmd> 128.0.0.1 >> + eth-src 11:11:11:11:11:11 eth-dst 22:22:22:22:22:22 >> + testpmd> set sample_actions 0 nvgre_encap / port_id id 0 / end flow=20 >> + testpmd> create 0 ingress transfer pattern eth / end actions >> + sample ratio 1 index 0 / port_id id 2 / end >> + >> BPF Functions >> -------------- >> >> >