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 242B2A034F; Wed, 31 Mar 2021 09:20:50 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BB7CB4069E; Wed, 31 Mar 2021 09:20:49 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2057.outbound.protection.outlook.com [40.107.220.57]) by mails.dpdk.org (Postfix) with ESMTP id EEAFB40141 for ; Wed, 31 Mar 2021 09:20:48 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Jxo5nqvmzTM0XcFgd7kdKh+Uq3jx6vOK+CQPPggfRae48ZNm8jFwRiYziai+A+DDWIAm9gWllrAMWUB7dHPQhG8QeV8MQnJHCln6P8Z1rvu6812kb0H2zEnuR6bWnS/7oXHKSJcYt3J+foVEhb6l75rsXlEqvqe1oEGRaa1FgpNxAzPuacZrKbDHZt4cXA39afYbeBCJjULD5ZTgbpb5HZ7wELW0iUkZAF2CPR38rN/ZKnFEBSWCLWAyXdE2tPJ0HFlbmnkL72SHJbvUvQD1nYoDORqMPx9jZTp7BtuZBFNl5py5IqwZY86y5UxIZxcfb2AJgPmNuUtsVenRpMmf4A== 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=yA6wdT6W2taBEuKCRt8pwRD+WTW5xwVPesAwuhi24Xo=; b=Gw+16UjZ6oqvK50p3E3lCcjc7NglJPz88VYlDkJo6lK5TCQ/Fhrh+M846lHOjteFF9c7njtrmb7Gk/f5nyJdiXBmQVBiyKqQHOglqPykaQWmebF7d79tvYWvD1LLfR1QM+7Tpug5lK8Vfu7YKBbnAD70+E/HwPreHc/q+4tca4K99Xfw4S/2LI0AIwvmy5+2ObLbWA61mBTj+BRjj7r3lWl4lLfeybBAk3AT/7YNyi1CjNVvFFaQFSCfdj2cGERXQZ+QT5TO6iIEk+8rh2Y0YR6ovQfSZX03GyMNQEZO+LsuTQ4rWN57KAYxblZVS+wt/cMqHoefiVI5psxij38iQw== 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=yA6wdT6W2taBEuKCRt8pwRD+WTW5xwVPesAwuhi24Xo=; b=AEayos9vm/1XTtdyjzDPX2t1DIGz7Ev4IxVT6knHiZsPbY5EWOHEPbNVNO0ie/dVEwS0pq5EqN3RVm0uuXCPUUwZLV5FuzeILslLE/gB9a0dYq9W9W5eCy2GtfqrP2cjCiWPteslbt8KF0s72Ni2B4e7WEAb5Pt7ieGrTfa1VkUlT7afR4taflCWj53XkHAnSELdVP7Ws8AMDt+wEINTtjxxeBTrIB/t66/mdV5PbiYklrvWkNE2tqxK8A8GAnSiBajJtDC7xmEyBqNX6LaWRUkIkO8f+pNrpw9H9Br5m3qqLNejLmr0xhjxg2I/pBt4J6Mc8U+v6AmcsWnlaiDf5A== Received: from DM6PR12MB2748.namprd12.prod.outlook.com (2603:10b6:5:43::28) by DM6PR12MB4028.namprd12.prod.outlook.com (2603:10b6:5:1ce::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.27; Wed, 31 Mar 2021 07:20:47 +0000 Received: from DM6PR12MB2748.namprd12.prod.outlook.com ([fe80::3d94:1f7f:178f:aba2]) by DM6PR12MB2748.namprd12.prod.outlook.com ([fe80::3d94:1f7f:178f:aba2%6]) with mapi id 15.20.3912.031; Wed, 31 Mar 2021 07:20:46 +0000 From: Raslan Darawsheh To: "Xueming(Steven) Li" , Slava Ovsiienko CC: "dev@dpdk.org" , "Xueming(Steven) Li" , Asaf Penso Thread-Topic: [dpdk-dev] [PATCH v5 0/9] net/mlx5: support SubFunction representor Thread-Index: AQHXI9kZSIQEr2YEb0yBNnxm9uWrzaqdtH/A Date: Wed, 31 Mar 2021 07:20:46 +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: <1616939297-15627-1-git-send-email-xuemingl@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: [213.179.129.39] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: bce04b96-c1e1-4f41-68a0-08d8f4158105 x-ms-traffictypediagnostic: DM6PR12MB4028: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5516; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: PTwnBV8RB/mocj+MrHH7JKnQs2k5Yj6FuQBdnda5rITI9zd6Um1wSraIy2RHH3MYJes658VdicT9CD7DhCO/5at9X61v4tAlAEexez8bFtjkxA7By5r7I0VdC7g8W/6dVhCfkHdvsfUGCd3Ukz7PzSViRwlI59AhysY1hOdE4NMTtWeZjIHtBxzWo/16++Vk+0uPv4ykNRyJZvTNGzYCD9LYxcYo9T1hBXRmfPJKKE+q7R+nMVYERVOBQGWYuGHBr6Q4Gk1GIor5WkomE9ZqnNj7yauDcJlwQaJZ4SHDze+pqg0nnVEuXoWOc45VA/LcY6dAWf4eohbxn+SdcbHIUmbHqhzdyvX5JzWlU/5Thc8AZbAZc87FJtvY1sbBLsf1H74ENcQEEAwHPD48XgOGtRxXqtuigNU80yW0VhGWnQxfYvhzQveHEB0rzKhDQwUK6IE24VN6Kfr0kPXmpyZtTU2pThBH+E7ioCVShdyiK17THyHGFBqPcIUvIs/7Px+2maKLbvQOXcBPZuwcaa2F7z+sqeT8TmAlsPXSHtqewrb6E5Er2Je51qH04VeqCj7X9e9gpBPFt8sRRkM4i4a6bCLj0B/Raubj+kTjBNZjmv4yfcg0GuL6sWL95p9qkKC2RFZ+J8nL5OLCL2UwSeoSGRJoW3QXcr+lHbkXP7ic29ljkmq3/YJQCIXcbh1UL4ooUySz4XmpzZwYE+ChF6MOJpbD0xapfwYJDz5nnGKYZyHbW41b81U1HU217wKelJUh 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)(396003)(346002)(376002)(136003)(366004)(107886003)(26005)(186003)(53546011)(6506007)(4326008)(86362001)(7696005)(55016002)(45080400002)(6636002)(83380400001)(9686003)(966005)(38100700001)(478600001)(316002)(52536014)(110136005)(54906003)(66446008)(66476007)(8936002)(76116006)(71200400001)(64756008)(8676002)(66946007)(66556008)(2906002)(5660300002)(33656002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?sF+h4UN9/8T4UOWF64S/To88u9aYMH0ae9X1dN3oZoYoU4BsOUrVPU4w/KpC?= =?us-ascii?Q?yYG56Jz9iWvmGOqiuEer2UmU7h24RnrKT4PQsejSg78Xx4/5RVasm8yPcED1?= =?us-ascii?Q?B/7DldoOjknGe+MNJzgrXPb5CMcG1dnwms+L2GMp/LQihpsNOL8jxAEwL7v4?= =?us-ascii?Q?5I38aysqylV+jjZj2PoWVdVcyfSIJiYpD7xdiMkfPIEGFhkScnNvEG7mM1oq?= =?us-ascii?Q?2FstZ7vm5pvNzuMYJImrl3RhagSXDHoHDRqmngN2/fYGdp6WH9HHCo+jIkv0?= =?us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fxJdkAguF9QEjJuZK4+C+3i?= =?us-ascii?Q?Of+xF0wMf22f9DKyOoe+uiDf/+pIz1yb9dJ8l36oiMpaBa5bO/6z/IDYiDPi?= =?us-ascii?Q?gmgHm1b+n0YuQ/TSCWSmZf2tOTvsZSq9OvAuf0ji2iotuchWgKD2Vog71JZx?= =?us-ascii?Q?s33h5Ryz2qe3/qbn3oTDihhs?= 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: DM6PR12MB2748.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: bce04b96-c1e1-4f41-68a0-08d8f4158105 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Mar 2021 07:20:46.7621 (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: fpa84qxWqporfzPhyoGIoaNq7l2sS0GXWgY7Unn019ADcuNL1cY19GniE/mANBBpCAzMGSX3hNvel8vu24JSYg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4028 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" 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 >=20 > 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. >=20 > This patch set introduces SubFunction representor support for mlx5 > PMD driver. >=20 > 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 >=20 > [1] SubFunction in kernel: > https://lore.kernel.org/netdev/20201112192424.2742-1-parav@nvidia.com/ >=20 > [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 >=20 > [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 >=20 > [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 >=20 > [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 >=20 >=20 > 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 >=20 > 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(-) >=20 > -- > 2.25.1 Series applied to next-net-mlx, Kindest regards, Raslan Darawsheh