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 4FADDA04BC; Sun, 27 Sep 2020 08:33:50 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E94471D92C; Sun, 27 Sep 2020 08:33:47 +0200 (CEST) Received: from nat-hk.nvidia.com (nat-hk.nvidia.com [203.18.50.4]) by dpdk.org (Postfix) with ESMTP id 4C5031D731 for ; Sun, 27 Sep 2020 08:33:44 +0200 (CEST) Received: from HKMAIL101.nvidia.com (Not Verified[10.18.92.9]) by nat-hk.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Sun, 27 Sep 2020 14:33:42 +0800 Received: from HKMAIL101.nvidia.com (10.18.16.10) by HKMAIL101.nvidia.com (10.18.16.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Sun, 27 Sep 2020 06:33:42 +0000 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.172) by HKMAIL101.nvidia.com (10.18.16.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Sun, 27 Sep 2020 06:33:42 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WkBCog+GgXdrccqshGJ70NRVdunnX3smxqJpTfdIJO5KgE3HJLNqWa1LM61oWI6wmZyRXkPd7ZjPgfNNGDivyp3Yl7YeTcPzMx7P7g9Fwpqcors1RA0vGaTjFztwd3rPpgH6Z9R0psegAJ76occvNNLXiRrhTOleT66err8Ppf1uKGbsbhEM06PTtia79updWqTHr8rLSkzg5YeksZ2xb0sfvCgVnJTyuX5MVWKWPoYz7633u84OWFFFLt1P1STOEOziGIAZsVDMgjvC4xAkswgU9FTim9LD4lWDgxX8/5JorgluYKeNcszz2l0zOyacdWdksIXqp+pO82snDmdS0g== 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=YB02dxg9tMe2RKg55imTQP6tv0EL50UDtV1o83dLufs=; b=gFSaG2pt4P3TmLlv79zGT7X8Now7buOdpcDKIlVZh30wyAZIpX3TgkgfYEn9fiyuinQPV5zdERQQTfp1lDWHMkSbF1aXoltNsfcRFfNMuf5J6oJY/RyZU3iXJSrD9x37sYGg0x12szY8ut13QdBzgivJQh5XUjBNv7w3+CZn69kBpiYRH66v5C2P9iNEzxbRXsBsGHRSwyOmNQS96ef9yq4K1JfReju7yJF6G7sa2peQXLrlbRhjtx3P1jhvLiB3+92KcmLa0GdID3RyP4YCQZUf+mPSxQBBhm5XvDwP2k8e846Q6gmDTTpsHU2OYDka0ui6ttmWEsreGd0NLewO3w== 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 BL0PR12MB2419.namprd12.prod.outlook.com (2603:10b6:207:44::27) by MN2PR12MB4358.namprd12.prod.outlook.com (2603:10b6:208:24f::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.23; Sun, 27 Sep 2020 06:33:39 +0000 Received: from BL0PR12MB2419.namprd12.prod.outlook.com ([fe80::cba:5dd5:ee50:a528]) by BL0PR12MB2419.namprd12.prod.outlook.com ([fe80::cba:5dd5:ee50:a528%6]) with mapi id 15.20.3412.028; Sun, 27 Sep 2020 06:33:38 +0000 From: "Jiawei(Jonny) Wang" To: Jan Viktorin CC: Asaf Penso , "dev@dpdk.org" , Ori Kam , Slava Ovsiienko Thread-Topic: [dpdk-dev] Duplicating traffic with RTE Flow Thread-Index: AQHWjbskaGtIlNoO40CpXwlnnA70Y6lucygAgAUWDICAAfyjAIAAZhKAgAYl0+A= Date: Sun, 27 Sep 2020 06:33:38 +0000 Message-ID: References: <20200918145618.052ee504@tanguero.localdomain> <20200921220355.3fb251c0@zouker.localdomain> <20200923102943.7ffdf6f4@coaster.localdomain> In-Reply-To: <20200923102943.7ffdf6f4@coaster.localdomain> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: cesnet.cz; dkim=none (message not signed) header.d=none;cesnet.cz; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [163.125.178.219] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: dc109cfa-34be-4fca-b612-08d862af44f1 x-ms-traffictypediagnostic: MN2PR12MB4358: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: NF91Kpr2Ku2PrCx4EQCPTk35xei7wxmwlc8Y4VvPR5zgYJ8a52z0/4+vrkpbdWJL+hQXa89tRLksNwlt1L/c0eE77pPbV8XC58kBmFKN49nVIhZw391zeJawAPftIcRthDs0m2MVxKqU9AGS9r9FnNqQiU8k2hz66QZ1NyffxUS3hMFcHdxieL9TSZLAbxM3SDoMIp6FDcb1msbOC9DHrBCcG1Ek2YYSf6cgEZ4xyQNyMvyULzYhZw8NYV7z14cTo+iiudm4pTJxdNIQJPK6fNRx5W1OlVCnPbbcelgZqguY2PFygAezYfYdTVfNTd0nLSXMDmf9/l73aJViIUDdi/8yZ2ISmvQnoHqWnZXv14uvl7SIGXZrdWlk6RJHLkgdRVvKizY1yhen2mpUoFLNpw+Sfq9jXP1b6+lZqsTaONsgDBL8ZpUDB7+whbWNKclR 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)(39850400004)(346002)(376002)(396003)(136003)(366004)(6506007)(71200400001)(52536014)(66446008)(64756008)(66556008)(66476007)(83380400001)(33656002)(76116006)(66946007)(5660300002)(83080400001)(55016002)(186003)(8676002)(86362001)(6916009)(26005)(53546011)(7696005)(9686003)(2906002)(316002)(54906003)(478600001)(966005)(8936002)(107886003)(45080400002)(4326008); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: 3ulqAJIgWHg/TRdmd5vQh7Uigv7MR1qB0R07khqrrCOt8CnugW2B1riQp0TdGhyA96ibGkET7W/yHsOH1bPumLPe2OY6jXlgMh4BCGJbal9LyC1iwxNYwSjhLfWZGG8oBlhnINonYQjPM6xbtV2QJvRX3IK2GPLd0Sl05FOUG5vpJ1WV/I39El+mZBmHsLKJKKGdqJz9zqG/fIOS57sQwXVcL2JufkntlVRXP+O/mEMGpGcZwdB3BugeDeaK6IY1AqwX2m9XqU3EFDZayIojmyvYI0S68hNpAiiERxsSlOhGFqCxmsmNuHoxPk2BIZfYm6trOorxPKtdZ3/dX2nCSAJj4ypbXVoBqTnzzp/n31SvJ/qnT+TJ3/zWReVdqFOPKJp9gA6mtv++wOMqgamJU9sFdI6iMSjenszUGjKYpJJae93lKtUaTXJvxDJU0nQxC/KrbGM9rDbG8Q8rD9vys9TNRCzec+FO7rEvjoYSZ7kYNio0AW2Wqkjzj2KQoElBiQ4uQY0TACVp260kHvACKS2hseK1p7i9/1AlF3W3EtXiaRhmh6i+r3nwbSa3oY2EVSThKSJw4JWeJWUgvggF2nG2+3E8OWOyEY/HTNVw58wyo5f3IU55GmMc9M71JUK3G5FWjNWlGLwmyN3Pcn7htg== 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: BL0PR12MB2419.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: dc109cfa-34be-4fca-b612-08d862af44f1 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Sep 2020 06:33:38.6136 (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: R7czF4/ryVxyu3F8ukSUVK4AiSRHtU6GFy3UPSPvZI/82O0CI9S7wGcd+LgED9eBmNKbLNjmF6JaNckXDAWARA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4358 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1601188422; bh=YB02dxg9tMe2RKg55imTQP6tv0EL50UDtV1o83dLufs=; 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-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=L15h7fpRA5Ibwbv7e8n3wB41gB4RzLiJNA55ikOCfta3aHffAB5f+eWTl8yT27Rqe O8/ZsE0MgjmUA4bLlugQbxx+Ay+WCVkgrAxkrdRa9g8iaeVRizhb0leUAw+oYxLAfk 7Pfoe5yalwWL+prt2v9ofPftEVPrZ/r8k0oghDvVo53CMYgvOrsCBHvTgKELHHcYZg 7Mpud2UrLnpcFgfbck9mWrVHNfm5Kd2lE92m8qM7zAlahfNfieQci9uPNegfy8ApLo 4OlMDazn/7ZmwRb+Fe6IqiPOTvIleR8iCnIPBPF8qrXaa44RnZJvHWssPBJl2hkJdq ecc6ADa9PkF7w== Subject: Re: [dpdk-dev] Duplicating traffic with RTE Flow 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" > -----Original Message----- > From: Jan Viktorin > Sent: Wednesday, September 23, 2020 4:30 PM > To: Jiawei(Jonny) Wang > Cc: Asaf Penso ; dev@dpdk.org; Ori Kam > ; Slava Ovsiienko > Subject: Re: [dpdk-dev] Duplicating traffic with RTE Flow >=20 > On Wed, 23 Sep 2020 02:28:03 +0000 > "Jiawei(Jonny) Wang" wrote: >=20 > > Hi Jan, > > > > Sorry for late response, Could you check the below latest patches that > > support flow-based traffic sampling? (based on: net/enic: > > support VXLAN decap action combined with VLAN pop) > > > https://nam11.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fpatc > > > hwork.dpdk.org%2Fproject%2Fdpdk%2Flist%2F%3Fseries%3D12410&da > ta=3D02 > > %7C01%7Cjiaweiw%40nvidia.com%7Cf5fad57a2357485f8fe308d85f9adcca% > 7C4308 > > > 3d15727340c1b7db39efd9ccc17a%7C0%7C1%7C637364466050833489&sd > ata=3D1l > > rhsIVvHpiTSA7c4k6ceMnQQsDRs2UtgWnvRomTS7s%3D&reserved=3D0 > > > > " The solution introduces a new action that will sample the incoming > > traffic and send a duplicated traffic with the specified ratio to the > > application, while the original packet will continue to the target > > destination." > > And, > > set sample_actions 1 port_id id 1 / end > > flow create 0 ... pattern eth / end actions > > sample ratio 1 index 1 / port_id id 2... > > The flow will result in all the matched ingress packets will be sent > > to port 2, and also mirrored the packets and sent to port 1. >=20 > Hi, >=20 > excuse me, but what am I doing wrong? >=20 > $ git log -1 --oneline > a4ab862 net/enic: support VXLAN decap action combined with VLAN pop >=20 > $ curl > https://nam11.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fpatc > hwork.dpdk.org%2Fseries%2F12410%2Fmbox%2F&data=3D02%7C01%7Cji > aweiw%40nvidia.com%7Cf5fad57a2357485f8fe308d85f9adcca%7C43083d1572 > 7340c1b7db39efd9ccc17a%7C0%7C1%7C637364466050833489&sdata=3DZD > glETAx9A9C3iaXFPhLUb2vtUTGE7R8aK5ngJF7lko%3D&reserved=3D0 > > sample-action-rte-flow.patch >=20 > $ git apply sample-action-rte-flow.patch > error: patch failed: doc/guides/rel_notes/release_20_11.rst:62 > error: doc/guides/rel_notes/release_20_11.rst: patch does not apply >=20 > Or... >=20 > $ git am -3 sample-action-rte-flow.patch > Applying: ethdev: introduce sample action for rte flow > fatal: sha1 information is lacking or useless > (doc/guides/prog_guide/rte_flow.rst). > Repository lacks necessary blobs to fall back on 3-way merge. > Cannot fall back to three-way merge. > Patch failed at 0001 ethdev: introduce sample action for rte flow >=20 > Jan >=20 Hi Jan, Please try the v8 patch: https://patchwork.dpdk.org/project/dpdk/list/?seri= es=3D12525 I rebased it based on the main code and it should work for you. Thanks. Jonny > > > > Thanks. > > B.R. > > > > Jonny > > > > > -----Original Message----- > > > From: Jan Viktorin > > > Sent: Tuesday, September 22, 2020 4:04 AM > > > To: Asaf Penso > > > Cc: dev@dpdk.org; Ori Kam ; Jiawei(Jonny) Wang > > > ; Slava Ovsiienko > > > Subject: Re: [dpdk-dev] Duplicating traffic with RTE Flow > > > > > > On Fri, 18 Sep 2020 14:23:42 +0000 > > > Asaf Penso wrote: > > > > > > > Hello Jan, > > > > > > > > You can have a look in series [1] where we propose to add APIs to > > > > > > > DPDK20.11 for both mirroring and sampling for packets, with > > > additional actions of the different traffic. > > > > > > > > [1] > > > > > > > > https://nam11.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fpat > > > ch > > > > > > > > > > > es.dpdk.org%2Fproject%2Fdpdk%2Flist%2F%3Fseries%3D12045&data=3D > > > 02%7C > > > > > > > > 01%7Cjiaweiw%40nvidia.com%7C8c9585855f9640f37ae608d85e698dbb%7C43 > > > 083d1 > > > > > > > > 5727340c1b7db39efd9ccc17a%7C0%7C1%7C637363154745490399&sdata > > > =3DmdG51 > > > > > > > > UgntQvMjs%2BPpRozwt2dtAcdWR8j9MXBtZ3%2Bl8k%3D&reserved=3D0 > > > > > > Thanks! Can you please recommend me a base where I can apply this > > > series? For current main (dc18be1d8) I got: > > > > > > error: patch failed: drivers/net/mlx5/mlx5_flow_dv.c:9537 > > > error: drivers/net/mlx5/mlx5_flow_dv.c: patch does not apply > > > error: patch failed: drivers/net/mlx5/mlx5_flow_dv.c:80 > > > error: drivers/net/mlx5/mlx5_flow_dv.c: patch does not apply > > > error: patch failed: drivers/net/mlx5/mlx5_flow_dv.c:9007 > > > error: drivers/net/mlx5/mlx5_flow_dv.c: patch does not apply > > > > > > Jan > > > > > > > > > > > Regards, > > > > Asaf Penso > > > > > > > > >-----Original Message----- > > > > >From: dev On Behalf Of Jan Viktorin > > > > >Sent: Friday, September 18, 2020 3:56 PM > > > > >To: dev@dpdk.org > > > > >Subject: [dpdk-dev] Duplicating traffic with RTE Flow > > > > > > > > > >Hello all, > > > > > > > > > >we are looking for a way to duplicate ingress traffic in > > > > >hardware. > > > > > > > > > >There is an example in [1] suggesting to insert two fate actions > > > > >into the RTE Flow actions array like: > > > > > > > > > > flow create 0 ingress pattern end \ > > > > > actions queue index 0 / void / queue index 1 / end > > > > > > > > > >But our experience is that PMDs reject two fate actions (tried > > > > >with mlx5). Another similar approach would be to deliver every > > > > >single packet into two virtual > > > > >functions: > > > > > > > > > > flow create 0 ingress pattern end \ > > > > > actions vf index 0 / vf index 1 / end > > > > > > > > > >Third possibility was to use passthru: > > > > > > > > > > flow create 0 ingress pattern end \ > > > > > actions passthru / vf index 0 / end flow create 0 ingress > > > > > pattern end \ > > > > > actions vf index 1 / end > > > > > > > > > >Again, tried on mlx5 and it does not support the passthru. > > > > > > > > > >Last idea was to use isolate with passthru (to deliver both to > > > > >DPDK application and to the kernel) but again there was no > > > > >support on mlx5 for > > > passthru... > > > > > > > > > > flow isolate 0 true > > > > > flow create 0 ingress pattern end actions passthru / rss end / > > > > > end > > > > > > > > > >Is there any other possibility or PMD+NIC that is known to solve > > > > >such > > > issue? > > > > > > > > > >Thanks > > > > >Jan Viktorin > > > > > > > > > >[1] > > > > >https://nam11.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F% > 2 > > > > >Fd > > > > > > > > oc > > > > >.dpdk > > > > >.org%2Fguides%2Fprog_guide%2Frte_flow.html%23table-rte-flow- > > > redirect- > > > > >queue-5- > > > > >3&data=3D02%7C01%7Casafp%40nvidia.com%7C1a46005bec5245e7 > 29e > > > 708d > > > > >85bd24caf%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C637 > 360 > > > 3060 > > > > >73519816&sdata=3DEOF%2Fz62crvBZK8rwzwKIWxj5cVlfPVnU3FLmc > L9X > > > 2w0%3 > > > > >D&reserved=3D0 > >