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 C7C79A04C8; Fri, 18 Sep 2020 16:23:49 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4DB7C1DAB0; Fri, 18 Sep 2020 16:23:49 +0200 (CEST) Received: from nat-hk.nvidia.com (nat-hk.nvidia.com [203.18.50.4]) by dpdk.org (Postfix) with ESMTP id A30461D9C4 for ; Fri, 18 Sep 2020 16:23:47 +0200 (CEST) Received: from HKMAIL103.nvidia.com (Not Verified[10.18.92.9]) by nat-hk.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Fri, 18 Sep 2020 22:23:46 +0800 Received: from HKMAIL103.nvidia.com (10.18.16.12) by HKMAIL103.nvidia.com (10.18.16.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 18 Sep 2020 14:23:45 +0000 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.106) by HKMAIL103.nvidia.com (10.18.16.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Fri, 18 Sep 2020 14:23:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=corIodW774qoNRRq1pzvZgC2ScC5XgQZ7KhZtZI2tonYsOqH+fKIZCMMA/U+p8z39bhrpRYVNH2W7H596fIaQkEsaswK+w/zEl4KS1x5yiU65m7FHggCySto/Rx5PzDVC+rmhyp5S4DIACj8YUCqK2BY86lyAMd7WSXJnogZ39REwCsPbHYdlWJI7CqBymuVdj+UD4lZotK2MMCTDq2vS+2Y5j5eNJPJIDhl9OX2KSnySa3nRSbNzENNCYPzdYJLzuXjQU/HZ7fm53EFDlDA/BdJSvQgyLhkB2umDwqzUnpFT/nF45Q2rTW/zXuPpzXjt+c/OKaSsWVHnKnhDKwaEg== 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=bWpXq1Sp4dwAem6dWQgQLkf9LsbNYXnp7OQoNNS0bY0=; b=XQJR+dYLfT4sR81l7cbMrrXIYJNwmrSBFHwzXxOJW9i+BtsNuSoJO1+LuNn1kjwWMJIiXr9m6PkMUVGKyZ+koVIvUBemb0TfDSU7aqqMBb+6+splayHm9UPST+FJjDpJeHjjiwUZKsE42XhlFcgJ3qdu7NbkmGD4ZNRw18NW9k0IxgZlVFY7Jx7fk913yECzsHV70obpN3uBq+m6QCMDBNviqY6idziOli7D7WRMfroLM9EhCW7qEZS9pwhvMhimClsekJ7BFmxuLVPYrPFAYLaAhsdi5bHW1UiForwmjxWTigW+ov/j/X6pqvm9k2Q+2ovNab/Xj7YMJcKI2DZ/Hw== 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 DM5PR12MB2406.namprd12.prod.outlook.com (2603:10b6:4:b7::23) by DM5PR12MB1851.namprd12.prod.outlook.com (2603:10b6:3:109::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16; Fri, 18 Sep 2020 14:23:43 +0000 Received: from DM5PR12MB2406.namprd12.prod.outlook.com ([fe80::e9:a8b0:1353:45ac]) by DM5PR12MB2406.namprd12.prod.outlook.com ([fe80::e9:a8b0:1353:45ac%5]) with mapi id 15.20.3391.011; Fri, 18 Sep 2020 14:23:43 +0000 From: Asaf Penso To: Jan Viktorin , "dev@dpdk.org" CC: Ori Kam , "Jiawei(Jonny) Wang" , Slava Ovsiienko Thread-Topic: [dpdk-dev] Duplicating traffic with RTE Flow Thread-Index: AQHWjbsrFR+Rp7Krq0KExHZ1CScUTKlucltA Date: Fri, 18 Sep 2020 14:23:42 +0000 Message-ID: References: <20200918145618.052ee504@tanguero.localdomain> In-Reply-To: <20200918145618.052ee504@tanguero.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: [77.126.60.115] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f5e7a050-59e6-461b-2253-08d85bde723e x-ms-traffictypediagnostic: DM5PR12MB1851: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: BbsjMDKkI16gMKNZwppCp84Xcg2q5ztAxFZSd/EXz1MOD38y6hsee76Z4aIr10MSgFs2c5NOEvI6/QsAgfcIlq6eVWDkHw69/MC3GE+MWIFYrQJKkGW4j+KwCDMpmPmzutjT8RRQsO1RfHGSFpwN+huCuLvl+1EC3mq7MnF6bDdBlgNRLopPqp7ODx26XnSrijEeHLNkfNqjk7fD0EKOsO6s8zFMcXS/DaOGqsZUwGT+95U4IBSPHX4KH0I/8a5By6+Pi75iVmfn8pPEIpqRsD8l/28TvAuiDF7CJFzJ/a7S1Gh6sDwe+Z7u+cX1fg/SkhF3HdqSUOyt28rxdzUhDYgF/wg7g54MAYHxbyDLAIS5DLDNl3FdR9oLx7peTfuJ2vN/goTRSDVAZMYmBXLzDA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM5PR12MB2406.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(396003)(346002)(376002)(366004)(39860400002)(55016002)(966005)(7696005)(107886003)(6506007)(5660300002)(76116006)(26005)(66946007)(66446008)(110136005)(66556008)(33656002)(64756008)(45080400002)(66476007)(54906003)(186003)(2906002)(8936002)(83380400001)(9686003)(71200400001)(86362001)(478600001)(8676002)(4326008)(316002)(52536014); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: rl+a2vkiGEVG8cJN2+1Hb+OLk33rslLwCKdCdaD1WZw7lPSzLaZCkPXpMkqe3Bkx0FMhgF9wiywtaiwQa+8MAhTH6WF1TDV75hHoOL845IIfUpbdA45VJGsgJxZbV3zvdSWsVJEZ9cDuxPVcMJfn/pW60EhRdDshTkYKR3cIWE6NfUSjw7eYVplGXRDuzeK+Dc/Wg2gZzXhkrxLbgU1NLw77Xx3dJc9QS+wN7BGjuwlhCrXq62Ng9bW9ZBvmZKDjk2a4hgKmzXzHZlU7yVSpuEDB0KgRqcZAa9TeAKi8dGc6qnnLXqGKiv7qVMcRe5YO/NWt0h7Na7IdzE9NEEqwhUKJcdvSYZvxyd2hq4bo8sIUVLD6fVfG7XR28oinZuBiP1fV1qDHsZy4X1l/qFOcBh+XRP0XrQCC0e2jrFfRiAwFwIPSVLUoYiQrQYe2gJ02nYW9VnBh5ZO7vpblCrshEw20h+Re/8CH17WIKSoayQV9Wt8TNEvhO1C5q2ngTPaqRsc61awdPCt7zOe6PRS7+EHPoNisyhw92jUj5JRIrsCQPE+jHfEhSr0Ig5GEAhsh5bnL6erF1umdGlHO8AIK6gDSzP7rMOLARZXdx5zkY0JGifL+0FWhLaiREJ+nOgBDkeVgeaJaqLwOlWlf42QE2A== 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: DM5PR12MB2406.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f5e7a050-59e6-461b-2253-08d85bde723e X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Sep 2020 14:23:42.8808 (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: drrlsX2LAeFVrepXJfdhC2zKpcvaQY31ei5URsQ9uApT9n1I25TZMQthN5DVtY9TPEnhuEpFudPtRLeS/TdcRg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1851 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1600439026; bh=bWpXq1Sp4dwAem6dWQgQLkf9LsbNYXnp7OQoNNS0bY0=; 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=S1VW00mMjRs8FqKzDFLYtR+IJOX/XdZE5OqpSjm4GSJNlPh97nDTg7ism2ih3uU6M rTmrQaCRBB/kc/5beyi9LuaTQz98mwQ0AZ5FXSdT8lk2Mioj8dkZDvO33IOnrnwGAr f/gHLPVAGjCgwi5rEo0aC3qFRT8UZQ8pkHjJPudDpm+ewaS+kDqBatg5iYIV0K02Jd ZqZ8PgdPHFEIoOtbVo6lrTtcp2v/4DElQi9ycGCKUyDGiAcqsTtU/bq3o7boR+9y7Y QQAk1psva4ejXUxAV5YkN1Ym2KjfEPJAUG5CRnUr69y1YNwheVKfH3CzB+gERetoLP ElGYQIStYwSUg== 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" 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 th= e different traffic. [1] http://patches.dpdk.org/project/dpdk/list/?series=3D12045 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 applic= ation >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 issu= e? > >Thanks >Jan Viktorin > >[1] >https://nam11.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fdoc.dp= dk >.org%2Fguides%2Fprog_guide%2Frte_flow.html%23table-rte-flow-redirect- >queue-5- >3&data=3D02%7C01%7Casafp%40nvidia.com%7C1a46005bec5245e729e708d >85bd24caf%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C6373603060 >73519816&sdata=3DEOF%2Fz62crvBZK8rwzwKIWxj5cVlfPVnU3FLmcL9X2w0%3 >D&reserved=3D0