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 60C8EA0548; Thu, 1 Apr 2021 12:39:45 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3FC52140FB2; Thu, 1 Apr 2021 12:39:45 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2080.outbound.protection.outlook.com [40.107.244.80]) by mails.dpdk.org (Postfix) with ESMTP id 9D0394067B for ; Thu, 1 Apr 2021 12:39:43 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NU8i5bEPkH+RFadNl9kvS4fwA5vSJJjwQBl6kAJ+o2rm5PZS5u/qJdqQ6mw9HNfWqqAARAE8t7piTlHzlM72yEocRPxAjM3nSfcNUOC5DJqCrH5Oz/Wlq/j2pA/9g8qtGQLzMfMiooDSyBxx/uhkhT3qYcy10ZifNDZxBjLcm83Sf6G4LqurgyxKThifgwL4ShKj1tSnsDhVO7XRSabZzbsSsc37ThsumAAPgWUovKJlZWLc/xZDFSzO97B117NNeB3+TweqTBEWzcTyleFeSXg+6hMkDvxwYnh3GHDNYa11NgjlDG8vSJK/pE7iaZKh5a3etkv++v4685eiy0/mXA== 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=eGCvUH+UMtCENBHXE7SkNGPcVDKvtw9ZhRfMhNO+Vns=; b=KWpRYYN6etAXlKKyqphJCZpNrHJcVjnzhi5smacBjavfKOIWCi/VVIUNGV0BzzE+9BzujmIOrPbJ3YSlC5oT+Qwhj7sdxFSqRg+1DfbzbB9p0Ru+5u84yxmFmGfrO48jNyOUt10VRNgwWZh1bcNsYIo71ZX1C3DPyPRtoNzyXXFvQKVQjBY27Nn9WnzKOwSsOKd8G9JB/K4Vb3l+jkUW/cMOVW3zgA/hnoTNbpLR8AS2HUylQTmF8M4KQxdASrK95H1fEEU1rrOn+iyIDDO4k+hGTKhnlNm9r9FMFvsDPsrTNBp9aYDWYPFdI3yi7sPNvGTMrowuZrzimWJ0Hrm14g== 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=eGCvUH+UMtCENBHXE7SkNGPcVDKvtw9ZhRfMhNO+Vns=; b=fa7NEI/1AVG1uCw16AyYKbWCfAX2AaHFF8sFxy0H7yOGDwEzvrT5Sxtdvh0b54+3izYvjG6XE4A8w+ZIKlejlSopuWvN9a5wvS9x1ynu1QONeRtAoP+RnhPPs5WoxSlM63ndKrd2pNphF5cizPvZu055DpV4tLgKq3+3rp+Horo49qSjty8W8i19fIIsgNcUVgRybSoZWJ/SKyYTOH/PAfDobNF1uON6KG9ius72+eZfNTmG3SnApeow4VDnvsvvx6qbHnFinR177IeCCwQQn6D7QGKmbc4WxEuXNAud9rLFFGjbMGsNsGjR9d5qDVRGVO27/stH/lmhVwRwgfeUIg== Received: from CY4PR1201MB0246.namprd12.prod.outlook.com (2603:10b6:910:23::16) by CY4PR1201MB0088.namprd12.prod.outlook.com (2603:10b6:910:1e::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.30; Thu, 1 Apr 2021 10:39:41 +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:39:41 +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+enBh7zZ8T3ESnDfgkKqq4jaqeFkWAgAF5j8A= Date: Thu, 1 Apr 2021 10:39:41 +0000 Message-ID: References: <20210317092610.71000-1-salems@nvidia.com> <20210317092610.71000-7-salems@nvidia.com> In-Reply-To: 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: 15f9fb28-821c-41b5-ab90-08d8f4fa7526 x-ms-traffictypediagnostic: CY4PR1201MB0088: 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:6790; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: kKZ87ZBxYS01pNNWFtJn2Zqg+TrS0W/tgHQvc1WJ5/IAlmBEaosyJYqkInKe+LwmJzS4Ujk1f5KXvkZo1IvgKoW0hywvUR64BrQVsPC7STQis4j+QnolRRWIAHkfjlO5lMphpXzVCFdV1aGvjqJozaUAhCf3TGUf/S6HA08SAl2iNF1RpyTVT5wRZttXCRVv9b98qUPB04SdRY4HUnRQz4suiRdEDgxe18nEuNKvjEqTsgxv963GHK/3wf6qwAt2Tl1JQpCT6VMaefFjDBB4gC7XhPqwHJsPdYVXgs0jAS5vH5VWPQ1CxfhXwe/FifAqIdo3BmHk6JEUdxwWthtPIZ984UiC/u65CWhR/FTlUVS8qbp7cc/YoWV31cZPVt+zO7mLTdLU7HyVqbFfCldIcsisOV4hWYW6I8f2s7YPwaOuvwPK6Ul4pNzS2uIKe6gDw9JBAt42I9mUcpIl6tSqIEockXlXsJ3zCJn1YSTALfEmCL9QX/DHnAN/v3/hltRZKf+AAd69Sm3SEq6RFsajs+2uxOtvSpJwvKA0bAD+2tesNQLcMs6Jx5E78CAQBheF5G+YFOWgkY7Zfo3TTmSDKp/YBk41agToW6R2qfdjawPCEE6KAfbxcN0JQNfNhw7B+aU1lhmNboGf5P4Hucd2qecvHIYnFsARwWY2W4aSZ4q6sL63ZwWomOxgcDFmpmDS84byenp8bQRi/+Heezk/2YChiGKa2nJn6ofOLm7qcs2YJfWDrI4+Z/AfF3uy72im 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)(396003)(376002)(366004)(136003)(346002)(39860400002)(7696005)(8676002)(54906003)(5660300002)(45080400002)(110136005)(8936002)(6506007)(83380400001)(76116006)(66476007)(53546011)(15650500001)(38100700001)(66556008)(966005)(66946007)(9686003)(71200400001)(52536014)(86362001)(55016002)(33656002)(4326008)(316002)(2906002)(478600001)(186003)(64756008)(66446008); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?P7mlhspM9z0YkFOl0fSBAovXNGMIVDJKOLfrFsXHNj6ve0UvUvLlWSeni3Ir?= =?us-ascii?Q?0YX0/MfqFm5yUmkxq/Ej4e1sdzke2czguRyewPNYjukIKGm0oiS3qwDSDHLq?= =?us-ascii?Q?YChAjjkAoW6HfUiQf30tr/2w4VAiBrZRIkIjTR86wAE4SE+ddnDOuDeeXMI2?= =?us-ascii?Q?LfBj3WskTElDtPzcJS1JYAjjF3HMkeMvtW/vEhQ/ZgN+iYcPRzJEL88OlTvl?= =?us-ascii?Q?kDIEcsGOPNW02QlecjvbVmGDAZrtKgrku62VXUxjjUY+8MoMUY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2Hcvz47Ja0mCPLQVSCG2shsxZ5FILcb?= =?us-ascii?Q?3QPTLbq8eN1neawEJLrakT8wbKeZTDydMEY8aASH6q6LjYx7667xjroHCyOp?= =?us-ascii?Q?iIz6SeNsW2QHsWyA17HBNnIcsRIlteLTN+9xbee7B9b9ICvY3bMhQobFQeGR?= =?us-ascii?Q?uD4CHnD8QCph/hsaIf0sabVrhcU8aDvWVftYAYs1g5KNMuDzVcY56ClZRzcB?= =?us-ascii?Q?5L+IXIc=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: 15f9fb28-821c-41b5-ab90-08d8f4fa7526 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Apr 2021 10:39:41.5925 (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: c4Ij5RnWPwGhhiLrtw/oRjtT1OGyieUVA+3SZdcOA4P6Uc7AQB94sssVzzADQaftJQ9QUa6nTjcYO+m86iraSA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1201MB0088 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" Hi Ferruh, Indeed this patch is dependent on [1], it's also mentioned in the cover let= ter, I will rebase and post V4 addressing all the comments once [1] is acce= pted. [1] https://nam11.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fpat= ches.dpdk.org%2Fproject%2Fdpdk%2Fpatch%2F1617180669-225007-1-git-send-email= -jiaweiw%40nvidia.com%2F&data=3D04%7C01%7Csalems%40nvidia.com%7C477a7e0= 9192e4c62c0e508d8f43d58f2%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C6375= 27891628225504%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIi= LCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=3DBB7zufQaPsAeu1l3jZ0xKOxtx= 86%2F0rUrUuSKQuVGn%2FE%3D&reserved=3D0 Thanks, -----Original Message----- From: Ferruh Yigit =20 Sent: Wednesday, March 31, 2021 3:06 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 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%2Fpatches= .dpdk.org%2Fproject%2Fdpdk%2Fpatch%2F1617180669-225007-1-git-send-email-jia= weiw%40nvidia.com%2F&data=3D04%7C01%7Csalems%40nvidia.com%7C477a7e09192= e4c62c0e508d8f43d58f2%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C63752789= 1628225504%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJB= TiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=3DBB7zufQaPsAeu1l3jZ0xKOxtx86%2= F0rUrUuSKQuVGn%2FE%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=20 > 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 h= eader 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 port=20 > +id 2, and also mirrored the packets with VXLAN encapsulation header and = sent to port id 0. > + Similar comment on 'E-Switch', the mirroring is generic feature but 'E-Swit= ch' 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=20 > + testpmd> 127.0.0.1 > + ip-dst 128.0.0.1 eth-src 11:11:11:11:11:11 eth-dst=20 > + 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 port=20 > +id 2, and also mirrored the packets with NVGRE encapsulation header and = sent to port id 0. > + > +:: > + > + testpmd> set nvgre ip-version ipv4 tni 4 ip-src 127.0.0.1 ip-dst=20 > + 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 > -------------- > >