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 63B03A04B5; Wed, 23 Sep 2020 04:28:13 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0052B1DC83; Wed, 23 Sep 2020 04:28:12 +0200 (CEST) Received: from nat-hk.nvidia.com (nat-hk.nvidia.com [203.18.50.4]) by dpdk.org (Postfix) with ESMTP id C011E1DC83 for ; Wed, 23 Sep 2020 04:28:08 +0200 (CEST) Received: from HKMAIL104.nvidia.com (Not Verified[10.18.92.9]) by nat-hk.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Wed, 23 Sep 2020 10:28:07 +0800 Received: from HKMAIL102.nvidia.com (10.18.16.11) by HKMAIL104.nvidia.com (10.18.16.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 23 Sep 2020 02:28:07 +0000 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.177) by HKMAIL102.nvidia.com (10.18.16.11) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Wed, 23 Sep 2020 02:28:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fJm+WA3U3uDrNNcSZM7MKd6YxN4Du47+tE2u5Z8uaApN7ot57Axt8lqwWKErIJnc3m+VEF64bl+yXPmMLpZwg0KJMhy9+jXXSWwZfyTXUi5WXPilufeMH0CWTcD5WICpMB8TbXz2WCAFxXoekEl/v7YfFOMzm/DOpLfbYU/N7izM62g2re7BWiU1Mhlp4acQ//xEqKSV9MnBp08E1HFBG6dqPk7XUDuptn/1Rlbke6tFkl7hsq9I17Gw1pfZbHl7sPRDlT5uAHfA/YV7vM1uQaZ38A4oQ1TmYraQhf744M5qcezrPMMEHqCnWpvPsQLGUSr/G24k+fPPEDa42Yro9g== 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=821YpGRArIXF1zDH5houtDeuBuWa6U5Sj3BGPMj8M90=; b=FCa5Brmb9mJv+yXPqOnkuIjx7hVATVNdLUNQO63H5idcC65hA8LqkaaP5WGFCoT88eWbdSLqeHYjlbK4+rMY1Us4z75SoFiUQrGVT7oAbd2hp19AKg3corLjlrh5l33um+KmDmpvszRmx71KpkFzNcqWui2O1db9pE50nTJ6AIWZ0NoULuFezpLHJZo6YMqY+6FCEDlFaYvvXaIly0rgmCgSAw/Xf4DQzccvFN78NSnsKqUFV5C8xts9wsgJG+M+KqjuNqhlmGB/IWBUe+7sPQeu2qnJaqZkeRdO2NFScxpQ0gdGjLIXYd9/v5EWERYKZz7TS4Zs3u1C6mIJJDpm7g== 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 MN2PR12MB4783.namprd12.prod.outlook.com (2603:10b6:208:3e::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.11; Wed, 23 Sep 2020 02:28:03 +0000 Received: from BL0PR12MB2419.namprd12.prod.outlook.com ([fe80::d05d:21b5:220a:f946]) by BL0PR12MB2419.namprd12.prod.outlook.com ([fe80::d05d:21b5:220a:f946%7]) with mapi id 15.20.3326.030; Wed, 23 Sep 2020 02:28:03 +0000 From: "Jiawei(Jonny) Wang" To: Jan Viktorin , Asaf Penso CC: "dev@dpdk.org" , Ori Kam , Slava Ovsiienko Thread-Topic: [dpdk-dev] Duplicating traffic with RTE Flow Thread-Index: AQHWjbskaGtIlNoO40CpXwlnnA70Y6lucygAgAUWDICAAfyjAA== Date: Wed, 23 Sep 2020 02:28:03 +0000 Message-ID: References: <20200918145618.052ee504@tanguero.localdomain> <20200921220355.3fb251c0@zouker.localdomain> In-Reply-To: <20200921220355.3fb251c0@zouker.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.176.172] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 81304d2e-2243-4e98-d55b-08d85f684c2f x-ms-traffictypediagnostic: MN2PR12MB4783: 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: wbXY3CSoCgg9uMh1TffG1MA2nKTZr/jLi47EbXtzNVvFuu0LB/bDm1H3i+VKv5qYt7GFj/P+fgyEnq41kFWShdtbjQz3kGbd0//+wVX7onyRDvt2od1t+MB9ql5HOZyGkgUYcP6tn/YlFa/q1H7z1YT7rsp8la0XTkfFZHRuUEnP+BxXt+6J9sgxJU85zmCL3V0M4qDcNAd1HflMDXH9HtDErIpzoRrqhEIA2YL/8tr42JC2aJemZ04y/+F+9IfjAdH5G5+/7KuJZ80l+JCWiHZuvPmcKiKWFxSuJBn5S4MhZHLQ00Ylmc07qsYe2CRlXaIauvKHZpkInlyo0m6zwOpU/spkuleELq5mb3mIPibhBsYbM6pCeR+bfrGrgvTKP9td3W4QUFL/SBRHQ27bsg== 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)(366004)(396003)(136003)(376002)(39850400004)(316002)(6636002)(33656002)(86362001)(53546011)(26005)(110136005)(83080400001)(5660300002)(7696005)(83380400001)(45080400002)(2906002)(478600001)(6506007)(76116006)(4326008)(71200400001)(52536014)(107886003)(66556008)(66946007)(66446008)(8936002)(55016002)(8676002)(966005)(54906003)(186003)(66476007)(64756008)(9686003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: /M+UvqheLD9AVle6qdF9etqi9I/k5q36zkoQV0waB8jJ3YPrh6a6bxCh91vCx7UwRFk8MloHlV5rt5AipOfk2vzr0kX8b1R29lqAVmBAx87MENwNpeT2E9cL5p8IKfOTsCmYgwRYz+UIQicBOMDr5Va9aPDZbb+LuHt5+P8bE3TCYbcIb+JDcC8C0f7FqZfKvMGZ4rfns5UGSMh2fL8/AaEMOUvE6DSxx7zBEAbakO0K6AD9gi00FcOd7QF3aRlhFZANTVNBORWhtcQGOSIh957qLUq6vHfBw293IucXXCDWteTB9NA9ZF4Y6jKo2OaY67/n71Mnks+hbWmDXurosFXl7F9QY3P49AzxXsTBjW3kU9Yup396QQFXQWjok5NRLWmtesWxuiPltifw3xRlY5+kN6uSAaO9yDdPcJv8SfqpicrQoE4fpWmTRvFftx8SA5UsJZ5X4qFBy1BKYzc1pe5Mulqir6gSW4pjzzDNrMYHECQpRsJKYCkVX0m+SoGhy0qQGWgsHf9euRaK4o4jBogJP82XWwyNu+8ddIiP9XFhx8j5/sCB8U2KaC3jBRHsCzBNiOKv4qNo6Ctc8qAcTyw5Adjrxqap/t7azHocXb5Z4ijYZEK41zQQyEYsmRloL26vSri3febE+unKckj50Q== 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: 81304d2e-2243-4e98-d55b-08d85f684c2f X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Sep 2020 02:28:03.1356 (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: OA/WppD1py3/WcLmh3dnxF9GzW0LXicrg/197jVa3Ie8l7XTXib5PCcQT8RrpYYv5bCpZCO/JxBnUa53DeDCqw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4783 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1600828087; bh=821YpGRArIXF1zDH5houtDeuBuWa6U5Sj3BGPMj8M90=; 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=kuKmvSUUhrf2gjMTlFUP0sJzdkbUkWzFWHS5mxaAZilbUs6xEPRoYNa1guIH7sY1S jbOJKEWUJ9pbXLz/Wdqia45XWsxkGopSjFf9uPti3UN08woNj/q8X5xIjiCWu2NpQN 3MTld7al5ERc+bOWO95i+qUC/eLpC/Q26X/QJfWnSlxykAd5jg0SojVq8IfAmrrhBF 9uF6vNmnUphqK+SyjBjba8ZesaPHTw2fqT65iauANRC0NygUEq6q6cgZwiXqlTjhi2 lD2Kkf9RurrLF2dgK/PYQx35YGShemkZ88+P3IDiDx3k+cXRHt9B34eOGwtSdmHEj4 UoJdaLKQ0HltQ== 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" Hi Jan, Sorry for late response, Could you check the below latest patches that supp= ort flow-based traffic sampling? (based on: net/enic: support VXLAN decap a= ction combined with VLAN pop) https://patchwork.dpdk.org/project/dpdk/list/?series=3D12410 " 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. 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 >=20 > On Fri, 18 Sep 2020 14:23:42 +0000 > Asaf Penso wrote: >=20 > > 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%2Fpatch > > > 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 >=20 > Thanks! Can you please recommend me a base where I can apply this series? > For current main (dc18be1d8) I got: >=20 > 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 >=20 > Jan >=20 > > > > 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%2Fd > oc > > >.dpdk > > >.org%2Fguides%2Fprog_guide%2Frte_flow.html%23table-rte-flow- > redirect- > > >queue-5- > > >3&data=3D02%7C01%7Casafp%40nvidia.com%7C1a46005bec5245e729e > 708d > > >85bd24caf%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C637360 > 3060 > > >73519816&sdata=3DEOF%2Fz62crvBZK8rwzwKIWxj5cVlfPVnU3FLmcL9X > 2w0%3 > > >D&reserved=3D0