From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id ACB4BA034F; Wed, 31 Mar 2021 09:27:09 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2F1E54069E; Wed, 31 Mar 2021 09:27:09 +0200 (CEST) Received: from NAM04-SN1-obe.outbound.protection.outlook.com (mail-eopbgr700068.outbound.protection.outlook.com [40.107.70.68]) by mails.dpdk.org (Postfix) with ESMTP id E21B940141 for ; Wed, 31 Mar 2021 09:27:06 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EPSwJt5w6THQyqzKR009N/RaJPcR/ZXeObv7r+sZWuYeT7Ef1DMje9tIjOf1ajbEepnxJtMpVKbZ+mLpr+ex5ltRpQbSH8DZmsjC3PmqLcMCgvkA+GPofQ7lYtqXF3bkshvoov0ycHx5UJ7s/jWPdStNTvLmzPh7Xw3W5LOBdCRcBtESgA/mQVCT8/BGASNWXobKf1SR6uFRKiTZn1H5cenH/ZtmnIL1is/dY/Jgv9co5tPI49uQxCzRXa117uWHga5YCif4XUdkHjzZSCE0UqZf7W5lk0flwsk+ZP0SxxPQ8EufRstbjwbBgXuc9nRCpisWqUFI1wSfG3eHtSB/wA== 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=588eVdMVJlx9rLSAqjLD+v7lKX2tjd0/AJTfaesGTdU=; b=kN/FTnvtExn7Za2ZFX3RbUir2eKFajNRgDwgVMEic3bOaKaWyg5PGfMLj4TeaoqaDEIrptuneeUtYZQmRKv7gWvP2H6p2juvghhbvr7naB/VVCp1n9T5hKl2dzIwRM9le33+GMQhQeNXINtp2/S4V+8ZO+rYbLcmD25Pi/JGM6eW394uRU5Ghp4IaK80cMiLRUSzAneMb2FmmiwZ5+YuMK2PKpcV9YbBzEvgoD5gV1epbzpP/eyPzClBU5JaczcAlV1DvJHhMnkem8XTaFId8PBUNlm7fD8QUwvN7bx1kb/4ce4Ij6bw8mZWco75SYIQ/IZ9FonGhItLonhPf9G9Kg== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=588eVdMVJlx9rLSAqjLD+v7lKX2tjd0/AJTfaesGTdU=; b=ElgrSiEUb1W0TmrvK9y5QzG58JHkM/v8l2EC0Kk8hmfmOsg4oTZ2KXkWgAYl6oMXng8RWV2w8B9ceAH9lMOcdc1x/tk9O6xVe2UcxieamGNcomKFvyNeAC/OSOjvyq5h/4wUSJCSkutfMlr7L3elkwQzmWX0q1WcdIR913PYLVnJLWy40gtaDSM6u4b9d9XqGsTQEcSG2eUFETqv1wdLCxMSc+a1VkQFmhvJErBIx0GnYCr58w/Yc4y8nJLWO0F6BUFrfO1NeZRdd1pJwV7XlOrYiwyMZGsUkAFN0YFGc8Gt373gp9pjYPGZm74XeauzrJ8aqXixgBKYLAQbboIUsA== Received: from BY5PR12MB4324.namprd12.prod.outlook.com (2603:10b6:a03:209::10) by BY5PR12MB4036.namprd12.prod.outlook.com (2603:10b6:a03:210::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.26; Wed, 31 Mar 2021 07:27:05 +0000 Received: from BY5PR12MB4324.namprd12.prod.outlook.com ([fe80::b919:53f4:6757:331c]) by BY5PR12MB4324.namprd12.prod.outlook.com ([fe80::b919:53f4:6757:331c%5]) with mapi id 15.20.3977.033; Wed, 31 Mar 2021 07:27:05 +0000 From: "Xueming(Steven) Li" To: Raslan Darawsheh , Slava Ovsiienko CC: "dev@dpdk.org" , Asaf Penso Thread-Topic: [dpdk-dev] [PATCH v5 0/9] net/mlx5: support SubFunction representor Thread-Index: AQHXI9kWb672EgAyg0miw8Za6/VdWaqdtQkAgAABrtA= Date: Wed, 31 Mar 2021 07:27:05 +0000 Message-ID: References: <1608304614-13908-2-git-send-email-xuemingl@nvidia.com> <1616939297-15627-1-git-send-email-xuemingl@nvidia.com> In-Reply-To: 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: [207.244.67.150] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 20d7d070-c76c-400b-35fc-08d8f41662ac x-ms-traffictypediagnostic: BY5PR12MB4036: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: nxOvMoTjzs3a3OYymKv9HSIVGO9V31PXLcrWMyDSAAEca1HGXhkqOOidj+LJ1PpTpOqm2VkTClRLUP7elQMN8w2pUIzEyrpTAXvXcYA4aitGNul1z7sWYKYSYZ6Ad9hMfLIhmBEzW/Isysln9N2A2UkdLX/T2ONE3S2GwvMxjsWbgzhz+k2iZSCYEW6c03x30cyLeOhSTvscvju8ccTYHPb999tXzRSz1C0eP5a3nKyBg4xPW+mUHRBfXq76j+XzRheiYUWnFnISxZb6XABzsuo9x2isIdbsyJ+YO25cNwVIz20H88ZkG7G4uTE3WC1MtIuDvdMLGe1x2GUjqElSizpIs2hX4bJffoYJJ7SgiPkjdPX8Guxz9RssuJlwcZj/UedNP9nOkP5DKJSoTm1MIIdEqddg7VaXGrR281idNTCmeTIYZgURBatU53JOgIDkfBVLImxYOIRiMB7+7btuO/DS0ObqQBxgF0Md8+RURzs5YoanFkXC2g1D3zRGImcKZTL8hp8y7tFKr9X/sfTQTcCp+EHVgoA2cU2SGtKH3QhpOZMYUTpGBMv1V9JQeJOfqKi/73cJbAjZ7JvUZay4UM3OGRBxOjOhXJP6tKG/aZugrsyx2lECgQuqMm5dgIlgS5wcfVBBfpouAl3kftxnOfGE4zemLiJOr6RWGolBTvySc8ubS6umsMJLIMXIg3vZJKqDaHqFIQeaMtMKInStIZRuL2odDH9qCtOi8AZ9wdJJkkKPbcv3B8HhZSdQ3/1N x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY5PR12MB4324.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(136003)(346002)(376002)(366004)(396003)(71200400001)(966005)(83380400001)(5660300002)(38100700001)(54906003)(7696005)(6506007)(52536014)(66946007)(2906002)(4326008)(8676002)(55016002)(478600001)(110136005)(45080400002)(66556008)(76116006)(6636002)(316002)(66446008)(86362001)(8936002)(107886003)(186003)(66476007)(33656002)(9686003)(53546011)(26005)(55236004)(64756008); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?ezi8oG+Rtjjrld/oM8yJXKv5kdl0Q2bjVfibTS/OT9gscJkOGp+golf2GCX5?= =?us-ascii?Q?rokaAr+VJc62O5rKj8KJF1p9hAG4X31bvum9xvMl1xfxKAlU+mwK7SAcsJNf?= =?us-ascii?Q?GY4aG1PHD32yIV0xyb7CqojPt63LCE8OpCSFS5SW1QyGL/j3MHiWlFEZtCde?= =?us-ascii?Q?7C6yIWbNi7qWX7BGLcHbEaXZrT+FJJhJY2qEOC6LP06IlidKOcd44kzSGfQx?= =?us-ascii?Q?xyewtLFG4DayawH2o24n98mlYc2fbgWQD9jGux3QtZUMgD9rE7MOglCB8fer?= =?us-ascii?Q?Iy7NPe+KCC0kAV7IfeLGF0zXffgGSH1ZXFBsFZPehxaX7W9tu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d8s0+zGCCtQhdeFVVuOKmqe39R4Nc168M1pwi9N?= =?us-ascii?Q?UuIdwKxvdgABcgy6HopTUua7vMQksDzPrUB5sqkx07uHfvc8BMp4piciI7RS?= =?us-ascii?Q?3DEPOGZO5VGtNiKaqyOBpUZ8?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BY5PR12MB4324.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 20d7d070-c76c-400b-35fc-08d8f41662ac X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Mar 2021 07:27:05.3591 (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: fSfwiPkPGPxdZ2uUGnYsSErMRDmZirZxw7HE7B0T/AuylffeX9OjT+qhIEnIfkRxWGY23FyW7IEtV2kWV7x8JQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4036 Subject: Re: [dpdk-dev] [PATCH v5 0/9] net/mlx5: support SubFunction representor X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" Thanks! >-----Original Message----- >From: Raslan Darawsheh >Sent: Wednesday, March 31, 2021 3:21 PM >To: Xueming(Steven) Li ; Slava Ovsiienko >Cc: dev@dpdk.org; Xueming(Steven) Li ; Asaf Penso >Subject: RE: [dpdk-dev] [PATCH v5 0/9] net/mlx5: support SubFunction repre= sentor > >Hi, > >> -----Original Message----- >> From: dev On Behalf Of Xueming Li >> Sent: Sunday, March 28, 2021 4:48 PM >> To: Slava Ovsiienko >> Cc: dev@dpdk.org; Xueming(Steven) Li ; Asaf Penso >> >> Subject: [dpdk-dev] [PATCH v5 0/9] net/mlx5: support SubFunction >> representor >> >> SubFunction [1] is a portion of the PCI device, a SF netdev has its >> own dedicated queues(txq, rxq). A SF netdev supports E-Switch >> representation offload similar to existing PF and VF representors. A >> SF shares PCI level resources with other SFs and/or with its parent PCI = function. >> >> This patch set introduces SubFunction representor support for mlx5 PMD >> driver. >> >> Version history: >> RFC: >> initial version [2] >> V2: >> - support bonding representor probe with new pf#vf# devargs >> - adapt EAL api V2 [3] changes >> - update document >> V3: >> - support list of representor PF section for bonding device: >> example: representor=3Dpf[0,1]vf[0-3] >> - add bonding information to shared PMD data >> - fix setting VF MAC through representor >> - fix bonding xstats, sum xstats from PF members. >> V4: >> - combine unexpected patch, thanks Slava >> V5: >> - support new ethdev ops api to return representor info >> - new api to encode and decode representor ID >> - new patch to allow BF2 HPF(-1) probe with sf-1 >> >> [1] SubFunction in kernel: >> https://lore.kernel.org/netdev/20201112192424.2742-1-parav@nvidia.com/ >> >> [2] RFC: >> https://nam11.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fpatch >> work.dpdk.org%2Fproject%2Fdpdk%2Flist%2F%3Fseries%3D14376&dat >> a=3D04%7C01%7Crasland%40nvidia.com%7Ccc705f353dda416b4ba808d8f1f0 >> 3a83%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C1%7C63752536137 >> 3102759%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV >> 2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=3D1V%2BbE >> nDeyTxdKWgtniUBvn7hJJbREo%2Fh6FqKAV7geFA%3D&reserved=3D0 >> >> [3] V2: >> https://nam11.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fpatch >> work.dpdk.org%2Fproject%2Fdpdk%2Flist%2F%3Fseries%3D14560&dat >> a=3D04%7C01%7Crasland%40nvidia.com%7Ccc705f353dda416b4ba808d8f1f0 >> 3a83%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C1%7C63752536137 >> 3102759%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV >> 2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=3DDDGSVykr >> 2CsyCm5%2BEnQViGKJKWI4b4dQyByr5zDILwc%3D&reserved=3D0 >> >> [3] V3: >> https://nam11.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fpatch >> work.dpdk.org%2Fproject%2Fdpdk%2Flist%2F%3Fseries%3D14810&dat >> a=3D04%7C01%7Crasland%40nvidia.com%7Ccc705f353dda416b4ba808d8f1f0 >> 3a83%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C1%7C63752536137 >> 3102759%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV >> 2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=3DtYBHZ0PBI >> cdpTSZ3EedX3SpKz7hlbWIxdwCPwEw8nE8%3D&reserved=3D0 >> >> [3] V4: >> https://nam11.safelinks.protection.outlook.com/?url=3Dhttp%3A%2F%2Fpatch >> work.dpdk.org%2Fproject%2Fdpdk%2Flist%2F%3Fseries%3D14836&dat >> a=3D04%7C01%7Crasland%40nvidia.com%7Ccc705f353dda416b4ba808d8f1f0 >> 3a83%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C1%7C63752536137 >> 3102759%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV >> 2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=3DCneNa%2 >> BwMG5dzos%2F98%2BlouEKi7ex1CO5Zb52xTlxy1Dw%3D&reserved=3D0 >> >> >> Xueming Li (9): >> common/mlx5: sub-function representor port name parsing >> net/mlx5: support representor of sub function >> net/mlx5: revert setting bonding representor to first PF >> net/mlx5: refactor bonding representor probe >> net/mlx5: support list value of representor PF >> net/mlx5: save bonding member ports information >> net/mlx5: fix setting VF default MAC through representor >> net/mlx5: improve xstats of bonding port >> net/mlx5: probe host PF representor with SubFunction >> >> doc/guides/nics/mlx5.rst | 62 +++- >> drivers/common/mlx5/linux/mlx5_common_os.c | 32 +- >> drivers/common/mlx5/linux/mlx5_nl.c | 3 + >> drivers/common/mlx5/mlx5_common.h | 2 + >> drivers/net/mlx5/linux/mlx5_ethdev_os.c | 136 +++++-- >> drivers/net/mlx5/linux/mlx5_os.c | 395 ++++++++++++++------- >> drivers/net/mlx5/mlx5.c | 24 +- >> drivers/net/mlx5/mlx5.h | 35 +- >> drivers/net/mlx5/mlx5_defs.h | 4 - >> drivers/net/mlx5/mlx5_ethdev.c | 149 ++++++-- >> drivers/net/mlx5/mlx5_mac.c | 23 +- >> 11 files changed, 652 insertions(+), 213 deletions(-) >> >> -- >> 2.25.1 > >Series applied to next-net-mlx, > >Kindest regards, >Raslan Darawsheh