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 7F854A04BC; Fri, 9 Oct 2020 15:56:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 058C01D6B5; Fri, 9 Oct 2020 15:56:01 +0200 (CEST) Received: from nat-hk.nvidia.com (nat-hk.nvidia.com [203.18.50.4]) by dpdk.org (Postfix) with ESMTP id B83F11D6B0 for ; Fri, 9 Oct 2020 15:55:58 +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 ; Fri, 09 Oct 2020 21:55:57 +0800 Received: from HKMAIL104.nvidia.com (10.18.16.13) by HKMAIL104.nvidia.com (10.18.16.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 9 Oct 2020 13:55:52 +0000 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.176) by HKMAIL104.nvidia.com (10.18.16.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Fri, 9 Oct 2020 13:55:51 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ddYO/kJ14K+0OKpiRSjIuTA+t1aPyDIPN4KSm4uD3zA7XLxtUJFoLheH5kNOVhqWwfhPuMHuhz++lBblRDXCazQcDsiwm+jI6cT8lQU6bWgru8ci/OAVK9zGAYeH6G7BbdEibaeN7wOEOgVQQXfFCbn4K9UW++G+bHRQ8fLpkBi2pNAF268vegibhh3bUIvCkgUDePxwSrzlKNljvP2S09J8E+1J9ZAWom2FlOrGl5HnFgj3GU/sVUHgctax1HUWI4AG9zJp65sRup1LmuJHQwRcosDMGRG49IyDRTrTXgrZ4O3W8MEHm9rbqqaGrI+tKqGLhJJ5FTw9QfljL3E4Yw== 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=neV0AzRJgpdPT/dDciaK6LEAVqUbwiwIBM3Kr8CS+cs=; b=VuuJSs2/0QoZUPwUlEM7ojh66Tg3vyo/ljnJpP8hS+8cYkf3FEpZK/GCqFJS+4cywt8eqcfBikhw1DDGVyA5J0kmUMVPTmwzqvFz2Ilq0p9WDldBNXiSqXg3zEFyt5fBJtoV86PtdnnXRFUrTI9Uk5MA73Hjz+SDHwbX3UwbriKkWCaMNlM0mXmcOc/RnCGT0pXoVHJnfE8SHQW05L41NHPHnRujkKuhBFpiKcpfaCs9IyInOFFKL3udiZ3ZlBk04saDmQyZclgVIPvEmIJmbrlb6yw07uUP8xfW/oqXNH6Z2WCSbQ/H4YrWrE4mmhW1QERaa6S+H4e54jvbR0CFjg== 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 MN2PR12MB4535.namprd12.prod.outlook.com (2603:10b6:208:267::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3455.25; Fri, 9 Oct 2020 13:55:49 +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.3455.024; Fri, 9 Oct 2020 13:55:49 +0000 From: "Jiawei(Jonny) Wang" To: "Jiawei(Jonny) Wang" , Ori Kam , Slava Ovsiienko , Matan Azrad , NBU-Contact-Thomas Monjalon , "ferruh.yigit@intel.com" , "marko.kovacevic@intel.com" , "arybchenko@solarflare.com" CC: "dev@dpdk.org" , Raslan Darawsheh , "ian.stokes@intel.com" , "fbl@redhat.com" , Asaf Penso Thread-Topic: [dpdk-dev] [PATCH v9 0/3] support the flow-based traffic sampling Thread-Index: AQHWnkKVQiQsFr9ZSEm6tHNKh8frlKmPSlIg Date: Fri, 9 Oct 2020 13:55:48 +0000 Message-ID: References: <1601187539-112694-1-git-send-email-jiaweiw@nvidia.com> <1602251166-269265-1-git-send-email-jiaweiw@nvidia.com> In-Reply-To: <1602251166-269265-1-git-send-email-jiaweiw@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [163.125.179.154] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ca9cf0ce-e056-4e3a-5a87-08d86c5b0744 x-ms-traffictypediagnostic: MN2PR12MB4535: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr 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: zfhfS73K7UpW7qY80NHcbKfqPhyDzgy6PHM23ufCWOSGx4sptImoNP0hLDXcUmOVISesyfhv9Zf/+AG4xlur44B2N6PenK6qJ2NCkJu28xbz6o+O7RGRyEgRt3/AToaUKyoEmZKxJKrseNb+6B3mF5IDVfPvkC4XgiMiK01bJDgYRiITfrwoqmG9nm4f0dnEUzbCwQmBG+q8ZE5twGq+HgFE1bczYpVPMJhyi/meSN6M6rPOg04jEZiMLSzZ4wrsderF0BVgjXcp1ftbA9TF3qSHj9+Z3DhICFsqv6dR0I2U91fgtMhFKF99eM0Ai32Hz3pRcu+38RDvHKBpDANdaBNp3pzQYv+4T1XQuqUooCmHE2xDNmmuGRyPYLhFJ2cylROHdCkJotzBDTHctjSjoQ== 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)(376002)(396003)(136003)(346002)(39860400002)(366004)(107886003)(66556008)(478600001)(2906002)(4326008)(55016002)(7696005)(316002)(54906003)(8676002)(9686003)(110136005)(6506007)(8936002)(53546011)(26005)(186003)(86362001)(66946007)(64756008)(33656002)(76116006)(66476007)(966005)(5660300002)(52536014)(83380400001)(71200400001)(66446008)(83080400001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: jLgyuKlv9xrhTN6WD5n7b91Bz9/MapV2+KYSO0/AZHwsik/53QRuO81UAjkuFEmSrkPjnaJQqmOkJg/kxB0RAGXQ+tERPg1Zi7J7goMZ8K725UcGbvgmjTzPrezBW+nugAUDHH6D98BZ/x95Y2yd9QD+AYS3iVyqsNDRrLNkKNck8unJa0yrtWv2KOKwo7i5SKim3qAggXgQAakV6HydAIzX4ytbW9lmBM5q6x/N8IBlVfgbVCWTSDBZ7spG4lUO0DA3DMOlKql/K7QT8Xw+Cfs3USlrDEU5GmRKzhaIirREyZRdAF37k+LIbfnVwv7/upVBFVAbrVEYaiL994//EO5Vzy3varZKDGeU5/yCwQagdVxThAYaCyMAy4w8srnS3oFB3uR33ny1iwmA1mkNn/bIxDXDvaabM3EwffV005xQXi3lvpkNaVbFIDEFKrCgeMMEWu6wfrkLhyIEkseSlxMsM4FGMhJpjAEyTKkMGmJ4rruVztRxcHKrpPOzvfUCmrxMltiberq1qaWREhfnq6SdJFKRXhpjPP8j5Ym8VEcUwbJwHzODN2UD6GQ6NxFU6vFfCLq1WvVhhLsP0Q+xGxEV463NOz37x3CpbtrwFK/xikpDqic79WHzU+WarJTfQegUy0FyP8rBkD84R1xm8w== 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: ca9cf0ce-e056-4e3a-5a87-08d86c5b0744 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Oct 2020 13:55:49.1469 (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: mhiTD2FcMtt5eMhDSNN9e4XISwlAZTtKlcB35gOahwpTCfg+D4LueTvbkBN56YoigZEl+PQmCJakS+hokiY06A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4535 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1602251757; bh=neV0AzRJgpdPT/dDciaK6LEAVqUbwiwIBM3Kr8CS+cs=; 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-ld-processed: 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=naggWud1oANLi67fd/+1DnuUnJEoEbkaPZ3ZMgvTXo1/3nkfoh5B1+/BT2wxBohbG kaignZS4vmrexhuIdRpNtvmwORfsoiuhU2ia2yqVaa4GFvO9dC7wXaWP0LPEp2lKkD K5u0o9SZokBNhSU8iidYPjUr/sr0Vi/z+72s7krHS71pJNZI4Fs91VoU4naK6CbxlW 0c2LUTgxjtKjNyLspNckC2ba1Pf1tdc4Q4VBadp6IMBjquh5ZftwN75Jyn9JZG5qxT Y73pmpiMyMuht+5V9UaG6rDo34su0ubn/VRefIhJl2at9LmM1X0pDSKmBYk3tDCp9D 7Kq7MSEKMdgVw== Subject: Re: [dpdk-dev] [PATCH v9 0/3] support the flow-based traffic sampling 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" For MLX5 PMD patch set that implements the flow-based sampling, please see:= https://patchwork.dpdk.org/project/dpdk/list/?series=3D12829 Thanks. Jonny > -----Original Message----- > From: dev On Behalf Of Jiawei Wang > Sent: Friday, October 9, 2020 9:46 PM > To: Ori Kam ; Slava Ovsiienko ; > Matan Azrad ; NBU-Contact-Thomas Monjalon > ; ferruh.yigit@intel.com; > marko.kovacevic@intel.com; arybchenko@solarflare.com > Cc: dev@dpdk.org; Raslan Darawsheh ; > ian.stokes@intel.com; fbl@redhat.com; Asaf Penso > Subject: [dpdk-dev] [PATCH v9 0/3] support the flow-based traffic samplin= g >=20 > This patch set implement the flow-based traffic sampling. >=20 > The solution is introduced a new rte_flow action that will sample the > incoming traffic and send a duplicated traffic with the specified ratio t= o the > application, while the original packet will continue to the target destin= ation. >=20 > If the sample ratio value be set to 1, means that the packets would be > completely mirrored. The sample packet can be assigned with different set= of > actions from the original packet. >=20 >=20 > v9: > * Rebase patches based on the latest code. > * Separate the MLX5 PMD changes into another patches. >=20 > v8: > * Rebase patches based on the latest code. > * Update the offloads dependencies document for sample flow. > * Update sample flow limitation document. >=20 > v7: > * Removed change in [PATCH 12/12] net/mlx5: support the native port id > actions for mirroring, should use sample action. > * Update the PMD code to match the new rdma-core API for mirroring. > * Optimize the sample flow split routine. > * Update code changes and commit log based on the review. > * Add E-Switch sample flow limitation document. >=20 > v6: > * Update the function that restore vport through metadata register c0 for > FDB sampler. > * Add multiple destination support. > * Support the remote mirroring with different encapsulation header. > * Fix coverity error. >=20 > v5: > * Add the release note. > * Remove Make changes since it's deprecated. >=20 > v4: > * Rebase. > * Fix the coding style issue. >=20 > v3: > * Remove 'const' of ratio field. > * Update description and commit messages. >=20 > v2: > * Rebase patches based on the latest code. > * Update rte_flow and release documents. > * Fix the compile error. > * Removed unnecessary change in [PATCH 7/8] net/mlx5: update the > metadata register c0 support since FDB will use 5-tuple to do match. > * Update changes based on the comments. >=20 > Jiawei Wang (3): > ethdev: introduce sample action for rte flow > app/testpmd: add testpmd command for sample action > app/testpmd: add port and encap support for sample action >=20 > app/test-pmd/cmdline_flow.c | 301 > ++++++++++++++++++++++++++++++++- > doc/guides/prog_guide/rte_flow.rst | 25 +++ > doc/guides/rel_notes/release_20_11.rst | 6 + > lib/librte_ethdev/rte_flow.c | 1 + > lib/librte_ethdev/rte_flow.h | 30 ++++ > 5 files changed, 354 insertions(+), 9 deletions(-) >=20 > -- > 1.8.3.1