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 DFC34A2EDB for ; Sun, 29 Sep 2019 13:47:38 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EC2FE2D13; Sun, 29 Sep 2019 13:47:37 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140074.outbound.protection.outlook.com [40.107.14.74]) by dpdk.org (Postfix) with ESMTP id E58322B88 for ; Sun, 29 Sep 2019 13:47:36 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GN+l6MOLBpW0v9wAO+mGIHATb5oioioJaaO1PS9TblHzc8BLVctJhhVUYJd/PpRNO8gotWTgqBk2yaceLtbq8mrSUAiWwE+xwSujawYw513khZvMXM6ZJ+3U1sU+0HaCUzc3nBPo9ojqFx4UMG8VOEbiogjzIPsOz9NDykkTIVCd9Iqb5GpXamb0ioc9hMy+4nks2m2AWdltmLOWI4q0p1EtuLi/sgYsEfjSZeIahd2VGV3TOpM5QeHIbmbxcHXeZraUqr9qfyNYWHYnCgHp06BEYUqOebycvbf/+qy2jq/EC6a/uRTxMkU8GiKYInO6Jk3+4kFMgTJDs/kyOXdRxw== 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=h336ebp8YL/OpNzgIV06IWRKwdmtDzgsQEgX9U3+t+c=; b=JtQ55/KKJ19tgJhEugbXZb1NhBWhfGYQ/DasACE1ABWY2k/CZx5pOKraH9x1LWR5BPTQuXYOxE+IXMnl8U75k0zRCwW12uVOzO4UCNdHz1tx0SPSangF3v1Nzaz35dLA3HHdQU+L8oWE/QWWjnX/SalyvED6m48Svk2w0jFV5LW7NNfA3OFAQN8nPydM2n8Ax7rV5sdZPGQ7unXD7Wz1M4xXaMhYqa60Ubic7KXJuhRJYDFr2pUioMzraRBdRYrSWJk7jicRkXSmO67NFiE/Q0dshuvPF+JBKKjRmtMN9zAUQoDFqI3/HfuCt5myxnNGaZtR0iFN76W5kMas5ywO/A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=h336ebp8YL/OpNzgIV06IWRKwdmtDzgsQEgX9U3+t+c=; b=Qji7p1Sqp8CkTRKzWSBknZ8aa5hDEoG48keg7KV7jCTnApSQZ0lZ/zsaDM3NX1QKbjG6IVKwti8vCP0RLZUBJIQ9eA/mQ7PNKFoI83oLrLIuGok9uTeMi4Murj4vTM/ZEndQzHhWuN6C+fOe03MPGQxkcbccFTWMYPLC0FfBJyU= Received: from DB3PR0502MB3964.eurprd05.prod.outlook.com (52.134.65.161) by DB3PR0502MB4043.eurprd05.prod.outlook.com (52.134.68.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2305.20; Sun, 29 Sep 2019 11:47:36 +0000 Received: from DB3PR0502MB3964.eurprd05.prod.outlook.com ([fe80::7052:8a7e:3a07:858d]) by DB3PR0502MB3964.eurprd05.prod.outlook.com ([fe80::7052:8a7e:3a07:858d%4]) with mapi id 15.20.2284.028; Sun, 29 Sep 2019 11:47:36 +0000 From: Raslan Darawsheh To: Slava Ovsiienko , "dev@dpdk.org" CC: Matan Azrad Thread-Topic: [PATCH 00/12] net/mlx5: add bonding configuration support Thread-Index: AQHVc3ZhZLu8zu7uBU2skycBJbQAoqdCkFsg Date: Sun, 29 Sep 2019 11:47:35 +0000 Message-ID: References: <1569398015-6027-1-git-send-email-viacheslavo@mellanox.com> In-Reply-To: <1569398015-6027-1-git-send-email-viacheslavo@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=rasland@mellanox.com; x-originating-ip: [212.29.221.74] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e092884f-2ab7-4b9b-a58a-08d744d2d273 x-ms-office365-filtering-ht: Tenant x-ms-traffictypediagnostic: DB3PR0502MB4043:|DB3PR0502MB4043: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 017589626D x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(346002)(376002)(136003)(39860400002)(366004)(396003)(189003)(199004)(13464003)(110136005)(7736002)(14454004)(66446008)(8936002)(8676002)(229853002)(6116002)(3846002)(2906002)(9686003)(81166006)(64756008)(446003)(6436002)(66556008)(66476007)(66946007)(305945005)(476003)(11346002)(76116006)(81156014)(486006)(478600001)(316002)(2501003)(14444005)(186003)(76176011)(26005)(66066001)(6246003)(99286004)(52536014)(102836004)(86362001)(7696005)(5660300002)(256004)(74316002)(55016002)(33656002)(71200400001)(71190400001)(4326008)(6506007)(107886003)(25786009)(53546011); DIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR0502MB4043; H:DB3PR0502MB3964.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: sgbbt7lujdXF2yybtSAJhsmiLxsrDibPTkcReufUq1xkasLzAW0XnnfEq+wCTXkD3kmQVmWHmoKXcaLirhw0uTc0mp4Qx8U6yqZ9UNa9LOqDgW+zLdH8tFgEH3G8xUy0lBdqY/k7gLgJdEVLlHeIhBQqgCEAYPBL1HNnVD8L2gvjX7JAFOt6ucXozVb4eopNvknHjdpbY0TVl5/tnIhDkYUgSX15MCIVkg9wyL6mtJfPcEQBG9F4Cgv/CtacggDrLnt3p8szu3WZ5/XLVnAvQ8fgfAYeX6G+sWsYARQRa1N/6zfDf5xzuFEADbGpb+Lic5n8Z4dhy0w0HrOtDJf4oaGf86sI158N3vBBPdaBSLt4+DBf+Hbyht1qdfw21N8BiFdpX7wn6HgMpoLdqI1/t8rxCMd7BxKG1BkXOm7HY8M= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: e092884f-2ab7-4b9b-a58a-08d744d2d273 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Sep 2019 11:47:35.9210 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: TYGQR4uZdCa7lK3tLl+jOZtjoUGLRgmxwOqDCHG9hr93g6Ek6iMrQGidCCi7+UHHmMBAfk1y5Ixj4vdsyEUkKg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0502MB4043 Subject: Re: [dpdk-dev] [PATCH 00/12] net/mlx5: add bonding configuration support 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: Viacheslav Ovsiienko > Sent: Wednesday, September 25, 2019 10:53 AM > To: dev@dpdk.org > Cc: Matan Azrad ; Raslan Darawsheh > > Subject: [PATCH 00/12] net/mlx5: add bonding configuration support >=20 > Multiport Mellanox NICs may support the bonding configurations internally= . > Let's suppose there is ConnectX-5 NIC with two physical ports, on the hos= t it > presents two PCI physical functions: >=20 > - PF0, say with PCI address 0000:82:00.0 and net interface ens1f0 > - PF1, say with PCI address 0000:82:00.1 and net interface ens1f1 >=20 > Also, let's suppose SR-IOV feature is enabled, swithdev mode is engaged, > and there is some set virtual PCI functions and their representor interfa= ces. > The physical interfaces may be combined into single bond interface, > supported by NIC HW/FW means directly with standard script: >=20 > modprobe bonding miimon=3D100 mode=3D4 # 100 ms link check interval, m= ode > - LACP > ip link set ens3f0 master bond0 > ip link set ens3f0 master bond1 >=20 > The dedicated Infiniband devices for single ports is destroyed, the new > multiport Infiniband device is created for bond interface and all represe= ntors > for both PFs. The unified E-Switch is created either, and all representor= ports > belong to the same unified switch domain. >=20 > To use the created bond interface with DPDK application both slave PCI > devices must be specified (in whitelist, if any): >=20 > -w 82:00.0,representor=3D[0-4] > -w 82:00.1,representor=3D[0-7] >=20 > Representor enumerations follows the VF enumerations in the same way as > for single device. The two PCI devices will be probed, but eth ports for = only > one master device and for all representors will be created. > This ports may reference to different rte_pci_dev but share the same swit= ch > domain ID. >=20 > The extra devargs specifying configurations must be compatible (otherwise > error on probing will be arisen). For example, it is not allowed to speci= fy > different values of dv_flow_en parameter for different PCI devices. >=20 > Signed-off-by: Viacheslav Ovsiienko >=20 > Viacheslav Ovsiienko (12): > net/mlx5: move backing PCI device to private context > net/mlx5: update PCI address retrieving routine > net/mlx5: allocate device list explicitly > net/mlx5: add VF LAG mode bonding device recognition > net/mlx5: generate bonding device name > net/mlx5: check the kernel support for VF LAG bonding > net/mlx5: query vport index match mode and parameters > net/mlx5: elaborate E-Switch port parameters query > net/mlx5: update source and destination vport translations > net/mlx5: extend switch domain searching range > net/mlx5: update switch port ID in bonding configuration > net/mlx5: check sibling device configurations mismatch >=20 > drivers/net/mlx5/Makefile | 5 + > drivers/net/mlx5/meson.build | 2 + > drivers/net/mlx5/mlx5.c | 359 > +++++++++++++++++++++++++++++++++++++--- > drivers/net/mlx5/mlx5.h | 23 ++- > drivers/net/mlx5/mlx5_defs.h | 4 + > drivers/net/mlx5/mlx5_ethdev.c | 128 +++++++------- > drivers/net/mlx5/mlx5_flow_dv.c | 98 +++++++---- > drivers/net/mlx5/mlx5_prm.h | 9 +- > drivers/net/mlx5/mlx5_txq.c | 2 +- > 9 files changed, 506 insertions(+), 124 deletions(-) >=20 > -- > 1.8.3.1 Series pushed to next-net-mlx, Kindest regards, Raslan Darawsheh