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 D6A52A04B7; Wed, 14 Oct 2020 13:06:24 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 68F4F1DDFE; Wed, 14 Oct 2020 13:06:22 +0200 (CEST) Received: from nat-hk.nvidia.com (nat-hk.nvidia.com [203.18.50.4]) by dpdk.org (Postfix) with ESMTP id 980071DDC4 for ; Wed, 14 Oct 2020 13:06:20 +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 ; Wed, 14 Oct 2020 19:06:18 +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; Wed, 14 Oct 2020 11:06:17 +0000 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.172) by HKMAIL103.nvidia.com (10.18.16.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Wed, 14 Oct 2020 11:06:17 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dMnGnea5RrkYN84fjiGmzV4vVHQS2TyK/0HiPzxZvcKDSTqm3KKmIpCKuRofX9Mk6jPReS2w3Y2rvWkFY8G6M/tkr2BD8a3Db6V1X/yStwWEOzs3u5ftOyp90y67tNZTGh94S48A6I5kWlzqq8I+xvYIPHFm+N6xEJt5akzKULN/0E4gJzbQZBEaAMt+H1VG4yXiis8EIcESbze/Jfe7ucWieBcX8mqRuRqtlx2IhxFEpebx90cY933hX/aBmyS6tnOe7qL4JeArgRnsTSHo07AMKShMczPvpdRfvotGb9UKVfHS4y4AH1jVeN01p+WyAdDVQvm3cTD1ap/2vGa3Fw== 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=RLTnCt7x3U8y1lxDNkJc+kzDr+zemVpR1ZOuw0K+WWU=; b=LSU6DMcWapdw6351Ov3si3g9u4RHDaxHJLYIuFpn+pNnME2AySIexaSyo1mAYaSAunGvqLbBwj1ifi7FPwudnoecOxzj1fjt6RbgPGk3tuQlrvsV95zQ8BkOucDY/G5+DF/kCCkK9vPQJ3zw/oJVRtt7ZIxP7tOuH2OCG4t6P980kJ2gzh16lAXgKinfeBuhuqschW1404yqV/lSo6037ICxhWKhCpqYm0neQWo0cK9iXu0dtO/HWUA2Dvq6sup84wIIUE5DJYHVIVCRDkNuGaRlhsy4qfVQK+VRix4Pmg6v0QFX3UQes2UIQsuHHGNeHUkYhO/dQhzVtQnzIWzXwg== 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 DM6PR12MB2748.namprd12.prod.outlook.com (2603:10b6:5:43::28) by DM6PR12MB2969.namprd12.prod.outlook.com (2603:10b6:5:115::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3455.28; Wed, 14 Oct 2020 11:06:15 +0000 Received: from DM6PR12MB2748.namprd12.prod.outlook.com ([fe80::f506:4af8:281b:cdeb]) by DM6PR12MB2748.namprd12.prod.outlook.com ([fe80::f506:4af8:281b:cdeb%7]) with mapi id 15.20.3455.030; Wed, 14 Oct 2020 11:06:15 +0000 From: Raslan Darawsheh To: "Jiawei(Jonny) Wang" , Ori Kam , Slava Ovsiienko , Matan Azrad , NBU-Contact-Thomas Monjalon CC: "dev@dpdk.org" , Asaf Penso Thread-Topic: [PATCH v3 00/10] Add sampling and mirroring support in MLX5 PMD Thread-Index: AQHWoWrs4L5IjFkahk2mBsH0HVfthKmW8RSA Date: Wed, 14 Oct 2020 11:06:15 +0000 Message-ID: References: <1602577050-178398-1-git-send-email-jiaweiw@nvidia.com> <1602598312-342265-1-git-send-email-jiaweiw@nvidia.com> In-Reply-To: <1602598312-342265-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: [212.29.221.74] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7374aff7-36dc-41da-2748-08d870312b50 x-ms-traffictypediagnostic: DM6PR12MB2969: 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:6108; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ITa/loT3gjgRdf7jOomQ71WlXv1/fhJW/NOc8ly4VlQoSArFM7Ta37uJ3GKkSeY2k+hO7xO6iIpF0EUpApY8/DWN11XkSRl1+MPwL0BCdg5wUjsHDlUe2d5/vz1Us33v64DnIUdUUF3k8BjGNPN8ZbPLtXZdsczl3WKWpPQHrCjQ2t0ft7aMX05Wxi5zgkfWBuvSHH4H0k9ZgtPhrf5kEpNm6UdYGYiKzyFmeez9atGVr0jgOQL+CBvjkPQMnhIpV/IBquy/SDpfllJF+tKkD4ael2qegZvBwht8I9XoxcJqD3FIlyDdx/PYlHhxaqVpPZD0ZD/g3T6W2mslnMd3Yg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB2748.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(346002)(366004)(136003)(376002)(396003)(8676002)(83380400001)(2906002)(66446008)(316002)(107886003)(54906003)(33656002)(86362001)(9686003)(110136005)(6506007)(52536014)(53546011)(5660300002)(64756008)(26005)(66946007)(8936002)(66556008)(66476007)(4326008)(76116006)(55016002)(7696005)(478600001)(186003)(71200400001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: 8pUiFJVcVr7WbdFdPyj5Zo1ABzaMQZHoa7DgvJKlK+vR1BHwxci0/PKWw7phTzxQnC4KfXzDgnCOXkCdHFBul/jl6Cu1C2VNtH9aktKj29rI1fAFEHhxzJAA49hQGfOo4tIGGS8AkKx6wskGzVueGyTJdDUeEqR6saIDTOdgXcppN5cO0imbIbvJ1ZF19u0oSFvcMPbkCR7vspP+y71m2HMl5L2K20amkZElxocIjBKPZMXFExqH433R3kpCRxDnoqG0AX0efQeqADJDbY7USNJOOPiMB2/CXSGpp4VVUvnITcv27GBXAbUGRqJYnCXBKM4J47dYazK2QpZjtG7N5InglMtpwrli8qxU1gh+ksZYpTgaVkY7NsRB+crb2btk7by4ZcOSEROaR8dxauVY5nhAhi/V3FL28O8gQhbMsyBo7wYk7v+3CxIed11rwmIoK4MuKKjTblWnP59/LOUXi/d8+x6thoH9PXmcOpyGDgN+LniyR2iV0iwc/GZhHF4Aer6d7MSPsCJrav8FEuohXOQ5q1GsXkuABcU8fVvfr9yi77gyZx9YZ0/TtyDy9yBdb1xFNCWKPuJXyQ4JnW/1B63OrED5QQvwH7dq1/IYpkjLfLuf/8E5S+Oa/XYGR6ywoP53fHwEeYsFE8AeUZnDaw== 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: DM6PR12MB2748.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7374aff7-36dc-41da-2748-08d870312b50 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Oct 2020 11:06:15.3667 (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: ZQTI18epibb7O19Cd27u8s/SVMxHqWwWpsKYw6pDYcUsvb05sYCfn7g/BLrk1ffyV8m9/8X1W0HDN7IbMtCdLQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB2969 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1602673578; bh=RLTnCt7x3U8y1lxDNkJc+kzDr+zemVpR1ZOuw0K+WWU=; 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=iDlD7jCbQ+fvVisVTXlmwM/4NPJvLWqA1uFTfKWXI2eYgZPEZd1SVRNnp6a/9tvY0 zvM37/cEdZaWBWB6N+Eya13A93Svcl1gE3D7+rgPClbZznU4P5aDVkiOgnhJjcoHne tyE8vn9VZEs1y1aI6lF/fB2+4p4y3qHDoznlGLH0A8ll07EMpPGBMu7TcR1BW7f5Zk 9HKlwIf49Wfm0Z6VkjVV/27OPUIwUTcJ4LzEj4JSZ0b2pVezlRx4HwK0LxE/o/G2Ol 2MnZujDDsLYIQOcsAwJyHg7RRBOKmEwVIK22t6wKHp8ZQZVhEQcRZO84WHoabMH3HW q+f5C64jier4Q== Subject: Re: [dpdk-dev] [PATCH v3 00/10] Add sampling and mirroring support in MLX5 PMD 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, > -----Original Message----- > From: Jiawei Wang > Sent: Tuesday, October 13, 2020 5:12 PM > To: Ori Kam ; Slava Ovsiienko > ; Matan Azrad ; NBU- > Contact-Thomas Monjalon > Cc: dev@dpdk.org; Raslan Darawsheh ; Asaf Penso > > Subject: [PATCH v3 00/10] Add sampling and mirroring support in MLX5 PMD >=20 > This patch set implement the flow sampling and mirroring for mlx5 driver. > MLX5 PMD driver will be responsible for validate and translate the sample > action while creating a flow. >=20 > Depends-on: series-12828 ("support the flow-based traffic sampling") >=20 > v3: > * Use C11 atomic builtins for sampling and mirroring resource register an= d > release. >=20 > v2: > * Fix incorrect check for E-Switch sample split flow. >=20 > Jiawei Wang (10): > common/mlx5: glue for sample action > common/mlx5: query sampler object capability via DevX > net/mlx5: add the validate sample action > net/mlx5: split sample flow into two sub flows > net/mlx5: update translate function for sample action > common/mlx5: add glue function for mirroring > net/mlx5: update validation for mirroring flow > net/mlx5: update translate function for mirror > doc: add the sample flow limitation description > doc: update offload dependencies document >=20 > doc/guides/nics/mlx5.rst | 11 + > drivers/common/mlx5/linux/meson.build | 4 + > drivers/common/mlx5/linux/mlx5_glue.c | 37 ++ > drivers/common/mlx5/linux/mlx5_glue.h | 35 + > drivers/common/mlx5/mlx5_devx_cmds.c | 27 + > drivers/common/mlx5/mlx5_devx_cmds.h | 1 + > drivers/common/mlx5/mlx5_prm.h | 61 ++ > drivers/net/mlx5/linux/mlx5_os.c | 14 + > drivers/net/mlx5/mlx5.c | 22 + > drivers/net/mlx5/mlx5.h | 6 + > drivers/net/mlx5/mlx5_flow.c | 400 +++++++++++- > drivers/net/mlx5/mlx5_flow.h | 61 ++ > drivers/net/mlx5/mlx5_flow_dv.c | 1130 > ++++++++++++++++++++++++++++++++- > 13 files changed, 1773 insertions(+), 36 deletions(-) >=20 > -- > 1.8.3.1 Series applied to next-net-mlx, Kindest regards, Raslan Darawsheh