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 54D83A0C47; Tue, 26 Oct 2021 13:27:02 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1814740E0F; Tue, 26 Oct 2021 13:27:02 +0200 (CEST) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2053.outbound.protection.outlook.com [40.107.236.53]) by mails.dpdk.org (Postfix) with ESMTP id D72BB406B4 for ; Tue, 26 Oct 2021 13:27:00 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GEsT5gq8GSynV9FvjvA4Af7K0FVJatfFQYLMDC9KqgsbSEi7lz0aHujm0Yqw0MlkJKEx7RtyBPiOQ8Y94HY591qIgc32wnh8CLaimP497+TulBHVze7IC258LAYsbybVQ9dKhvo9iDJbtKwUx0ziuAZDZKt2yO6FA5Q1Boe64ZAa2qSt61KN10NLz4lkBPiyzK9o7TnwEPpNzzu3pDcEdz5+6r1BkbFHUfevoUBaIH+Z0qhrCHQ1O2ogI4savVpVWLEnYfdGhRCcK2MbYlNwsgwLYcBnCdgP3npWMLCtYMldSEfSn9lwYl8v3ZrZtzRJLftFICkVfM3Qtt7YBsdK8A== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=auzO3CmVt5MtdrSeTwErWtSE81o/S4cq2vydboixX4Q=; b=JfDfKSQvL2t2h2BSxXnM29vu/urN4LQSypj+PO1qgM3vIr5k95ew6DV/hVLgc0k/wlTR1lfcnvyryVOatmVs6dmb7bHRshe5+LbRtqoq3TqMgxct6NvYvWMptj6Nf0uefUajTnI7Fg8hHDvDXDF6sY2o1DU7RYEUbAo/xhZ7hBXErXOWq1aVdTjkIMa9uEoXftENM7URWM0y1pIQ3HHxSfHs121Gl578AZJuWDbnVVYitjCE9atP5Z2UPLU9Em6FAcd0bYqf+HGvpfo3yatXWI+ljcoDsItLG3GYUWUoDoVIFmPKVTPoFGHdhVT/Nix9ZU3p6yeQoGGo/AsDNUNTjA== 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=auzO3CmVt5MtdrSeTwErWtSE81o/S4cq2vydboixX4Q=; b=SFpS2vlN8vzlLlpftHxRuEYpE8JwvCOp0s4xFrZ1yFAavClFFinkv/E2IZeOb0s6Ca7RMv4qga71gMIhQBUgkmS2/JiPaHXrxgbe8yD4GLS4DBFn4GK8KMKhJ8APQ0TCMK2FMctoCERAII6RxeFBtxmCYivWHatVsxaGDlBoJXfsT7duPCvGyERoLabsUsIng1e7PX3aZRhTZFdOA9GqWtvSjTr+dZUpy6wyeuT5326zudzOUUKZJ6nrF5jSPqnhkq9sGkrGk7koLk7Cs2l6fQcdwUGO/KhvJb8FuRcjXzyx9mi4W/lrPTTmJ8pdGXnboWAqaLJX2pJtJWizQooZ1w== Received: from DM4PR12MB5312.namprd12.prod.outlook.com (2603:10b6:5:39d::20) by DM4PR12MB5245.namprd12.prod.outlook.com (2603:10b6:5:398::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.18; Tue, 26 Oct 2021 11:26:59 +0000 Received: from DM4PR12MB5312.namprd12.prod.outlook.com ([fe80::a4bc:7da3:32e5:1665]) by DM4PR12MB5312.namprd12.prod.outlook.com ([fe80::a4bc:7da3:32e5:1665%9]) with mapi id 15.20.4628.020; Tue, 26 Oct 2021 11:26:59 +0000 From: Raslan Darawsheh To: Rongwei Liu , Matan Azrad , Slava Ovsiienko , Ori Kam , NBU-Contact-Thomas Monjalon CC: "dev@dpdk.org" Thread-Topic: [PATCH v5 2/2] net/mlx5: support socket direct mode bonding Thread-Index: AQHXykZTQ9CqH5hPyk+oRlASz3G+hqvlI+sw Date: Tue, 26 Oct 2021 11:26:59 +0000 Message-ID: References: <20211026084830.440951-1-rongweil@nvidia.com> <20211026084830.440951-3-rongweil@nvidia.com> In-Reply-To: <20211026084830.440951-3-rongweil@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-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: fc88b87f-a9b5-40a1-8670-08d9987386ae x-ms-traffictypediagnostic: DM4PR12MB5245: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4502; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: pV9rTRJJSAoELtnwhW3DjX8fwgkIUMKuIqG+xihg28R2Fd5Zu546rqeuNyLe6CRmAEUgice8ifj9ergSAH4okQodlUMJSxnT4UtzPu8Dfgg29YS+0Q7cm0UeFe2THOIlh76cYjYZXJoSyHY2rsu9tfy72q5cL1rGjCZjmqp1zXKFna+h/xL5Y6Q34cbYH0bTyNDnVSf0pF0IBGcOAdHAKvQfzF0qp/UQ0yNiJCIyWz27vsKg1WCLDxKaNLNp39v6DsqSwdWGbAQFDYVU8adn10SjYntsV5iQmy7sqCNAQRRYjlzQu3IrMGe88+Fk8BtgY2mpPdwh3+8oGjh1FjwUmF4ITGX9NIJodqisuGcOAx8uiLWEmJKDmrF1sd3JAYpra7/9SCZmeNNck6XWIxXoDHjBuc3GCtDMm9gjt/w6P8BdoxeICqiIQjQ5yjlUO+IlJRY1EsTim+UvV/8Cf1M6l12zdEFEOtCcW8BfK0nGodrkFXD/DC5KkMT+Vdo9Wqgd5SSJB7MFaSVYFQLoF8DnDFYxHX6hs5hbXd8o6FpB+EoHyKLEeyZorXTjU4GmO2ni1o00g6qtS0d0BfIOWEdl095vPAqo9mc2p20RpcVxgzDNdy4HZXx0XGMPvhHBC8UTdXUhdqfOo8ZC3apljsDWCATdxf4t0SXc7MLvFPsQzElRn9pXrnflJkW0V8xVkDrHkmatO+NGft3B53DkHa9exA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5312.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(71200400001)(8936002)(316002)(38070700005)(52536014)(55016002)(66946007)(4326008)(508600001)(6506007)(122000001)(76116006)(7696005)(5660300002)(2906002)(66446008)(186003)(66476007)(66556008)(64756008)(53546011)(83380400001)(8676002)(26005)(86362001)(33656002)(9686003)(110136005)(38100700002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?9s9XqRRghaYe4j2UtCXagV9wRcjOAQaBjYsWL/GEqTEJ15/ZPqc7f3V0/ND8?= =?us-ascii?Q?HcLMt9nbGEurAHUTxet1Qql/+k7X/mMFoSSPRlwlFLMd5J2L3kfzI4totJCR?= =?us-ascii?Q?fYRf/5KbEafRoKaYYKQA9g5oImRFpaywFB5KxxISKM4UB74n66PK/ORpppB7?= =?us-ascii?Q?H4Z0JrQuQVmh/a2wa8huXZYbkXrV39kIZR7SziaczZV52HQlCWaJltQ6s/y7?= =?us-ascii?Q?GCGg9PyxfRFv98s0628J+SM7pai2wxC0wULv+Qey9IDucGR8EB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cxzW2xR40evNIWDeohUP0TbdgX4UlWDlFrQJO?= =?us-ascii?Q?GfNptISRpnehWEkkK4NIYv/oImLBYxOz+ZWXDadT7lJ+VwHq3Y67uqglfZQy?= =?us-ascii?Q?x23SdNUj+9wPXZjoPQULI2LgfOkcaZDtuAOwJmXW4FhQy8pLLmUnbKYOK09r?= =?us-ascii?Q?HRO14/mCD71l+YmCiWvX1qZkhGNtSisFoBuZf8RtbjvrZcAu/2x+GYgvm3Pi?= =?us-ascii?Q?MeoJ2uv6TSKwkhOsFhGePLJmlmGVHNjkNwWBdia+8dFOdKhbH0TGxXP5uSAF?= =?us-ascii?Q?p9EwwF3MDDjhU21crGWFXmvffT7R6YydicczmjR2a/Cp5bkVeHXph2JKRliF?= =?us-ascii?Q?tBCFxdupYTjb5aEZ/X1zY2QzQFxjlj3V4ighkKWC74izu5w8mhoXYV+TwP3z?= =?us-ascii?Q?Va2hN7Y5VuLwOVbjRhAHG6itlNIIHtqnOCO/lsTkbDfIaC8O/HcgC+ccEwSo?= =?us-ascii?Q?6c3hAj3H+YwbUj6j0YOJvfs=3D?= 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: DM4PR12MB5312.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: fc88b87f-a9b5-40a1-8670-08d9987386ae X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Oct 2021 11:26:59.5910 (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: qD4aG/c9jwmGroSPac4XElnLKvmC241TxtfVhkIRuss9pO2a9UOYHWaMS+joA/QTQrzw1Ix2LPMPfm1TlIoO5Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5245 Subject: Re: [dpdk-dev] [PATCH v5 2/2] net/mlx5: support socket direct mode bonding 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: Rongwei Liu > Sent: Tuesday, October 26, 2021 11:49 AM > To: Matan Azrad ; Slava Ovsiienko > ; Ori Kam ; NBU-Contact- > Thomas Monjalon > Cc: dev@dpdk.org; Raslan Darawsheh > Subject: [PATCH v5 2/2] net/mlx5: support socket direct mode bonding >=20 > In socket direct mode, it's possible to bind any two (maybe four in futur= e) > PCIe devices with IDs like xxxx:xx:xx.x and yyyy:yy:yy.y. Bonding member > interfaces are unnecessary to have the same PCIe domain/bus/device ID > anymore, >=20 > Kernel driver uses "system_image_guid" to identify if devices can be boun= d > together or not. Sysfs "phys_switch_id" is used to get "system_image_guid= " > of each network interface. >=20 > OFED 5.4+ is required to support "phys_switch_id". >=20 > Signed-off-by: Rongwei Liu > Acked-by: Viacheslav Ovsiienko > --- > doc/guides/nics/mlx5.rst | 4 +++ > doc/guides/rel_notes/release_21_11.rst | 4 +++ > drivers/net/mlx5/linux/mlx5_os.c | 43 ++++++++++++++++++++------ > 3 files changed, 42 insertions(+), 9 deletions(-) >=20 > diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst index > 47709d93b3..45f44c97d7 100644 > --- a/doc/guides/nics/mlx5.rst > +++ b/doc/guides/nics/mlx5.rst > @@ -468,6 +468,10 @@ Limitations >=20 > - TXQ affinity subjects to HW hash once enabled. >=20 > +- Bonding under socket direct mode > + > + - Needs OFED 5.4+. > + > Statistics > ---------- >=20 > diff --git a/doc/guides/rel_notes/release_21_11.rst > b/doc/guides/rel_notes/release_21_11.rst > index 1ccac87b73..2f46b27709 100644 > --- a/doc/guides/rel_notes/release_21_11.rst > +++ b/doc/guides/rel_notes/release_21_11.rst > @@ -217,6 +217,10 @@ New Features > * Added PDCP short MAC-I support. > * Added raw vector datapath API support. >=20 > +* **Updated Mellanox mlx5 driver.** > + > + * Added socket direct mode bonding support. This part needs to be in the previously added update in the release notes. Will fix during integration, Kindest regards Raslan Darawsheh