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 228C6A0613 for ; Wed, 25 Sep 2019 12:29:30 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A25E42BEA; Wed, 25 Sep 2019 12:29:28 +0200 (CEST) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70049.outbound.protection.outlook.com [40.107.7.49]) by dpdk.org (Postfix) with ESMTP id 742732BE6 for ; Wed, 25 Sep 2019 12:29:27 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=M+YgvjPx8aRVkszZu8k4Cvik+vuu6T21c3Mr7EUV608AI3rCyvlLLDH9ochiMNctdgbLitERMnKsyemiwrCyNDU91nUaYAZXsj+tykUWTANx82A1igmsELDwp8ExUUjgPaGeKZWs17FTlGWAI39KK+cL9R5rWJwcZxRaRWbhQlsCIreyy0pPHw4prym3WBrWvspGhrv5C4G4DmJzq/1qADVP4DUwBNFzzEjrAD2GcKdR+zVPFKDf45dVM0lGwXmm72LQPLucSq/hvQ2L/bGmZ5Tj3iKxCzBJeJvIRl6p5J5dlzBACJoBQlIJ1J+OPM04zSNPePqQcFYjcS7L9ikhtQ== 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=Mi177xtQHm72KYE/A2Iu6zEydxJ420OwW/0izAiuE2o=; b=AavPcfJzz+HMIU05FgLfDdjzvaJmQXMwi3qVgFJWA9okL2LmN4yfwuY7gSR8gJpPjkZg2C9urhPsxOjWjGRJdgSS2wbd5xKjKrKVrannyNABdaXIXAZ8Ash9mXlzy3US7wu86kCG3nWEDOigdw7Zjf+djIqjzO/91uaS4/9t5AJ2rXFGnuidIYiI41ncrR0jO5pI5eEfEhR51ivXz7LQRQ+UGTPiHhY+bK2nepTBTS2Sg1bZk0U81Tar4MdJ2hSWwzGgdchKoKikwFxYHiQ+wtOIXMvv5asqo89hTQgF1o0qs4l+MNXqOLOsaF+Fsjz7StIYUkKglsBtXlWEcW2r7Q== 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=Mi177xtQHm72KYE/A2Iu6zEydxJ420OwW/0izAiuE2o=; b=U7xwqsJ0XReFbVVuyHZG4m0yWktacjDunD6uDSQJbYmS1zvmARTdpYzk7wTMSPWXjKyVpwsVIh3z0aP5UtIPnqz5BzgOJ/Aq+J9NBvvSRFkqsVsPJwjfRvqPTKuQIP7Lj2Zo+Gq9owV2R3UpWPmStvZ//ar2DJxCSuN3/YdVQ2c= Received: from AM0PR0502MB4019.eurprd05.prod.outlook.com (52.133.39.139) by AM0PR0502MB3969.eurprd05.prod.outlook.com (52.133.36.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2284.26; Wed, 25 Sep 2019 10:29:24 +0000 Received: from AM0PR0502MB4019.eurprd05.prod.outlook.com ([fe80::5063:45e1:a411:8302]) by AM0PR0502MB4019.eurprd05.prod.outlook.com ([fe80::5063:45e1:a411:8302%6]) with mapi id 15.20.2284.023; Wed, 25 Sep 2019 10:29:24 +0000 From: Matan Azrad To: Slava Ovsiienko , "dev@dpdk.org" CC: Raslan Darawsheh Thread-Topic: [PATCH 00/12] net/mlx5: add bonding configuration support Thread-Index: AQHVc3Zkz8OAXPUqtkCwH3/PmsAepKc8MQbA Date: Wed, 25 Sep 2019 10:29:24 +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, he-IL Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=matan@mellanox.com; x-originating-ip: [193.47.165.251] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: cecb6a4a-609c-49df-5277-08d741a33c79 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600167)(711020)(4605104)(1401327)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:AM0PR0502MB3969; x-ms-traffictypediagnostic: AM0PR0502MB3969:|AM0PR0502MB3969: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 01713B2841 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(346002)(366004)(396003)(136003)(376002)(39860400002)(189003)(199004)(25786009)(71190400001)(7696005)(2906002)(110136005)(71200400001)(478600001)(8936002)(8676002)(14454004)(86362001)(81156014)(81166006)(316002)(256004)(14444005)(99286004)(4326008)(305945005)(7736002)(102836004)(76176011)(6506007)(26005)(33656002)(107886003)(476003)(6246003)(446003)(52536014)(6116002)(3846002)(11346002)(66556008)(66476007)(74316002)(486006)(66946007)(64756008)(66446008)(186003)(9686003)(66066001)(5660300002)(55016002)(76116006)(2501003)(6436002)(229853002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0502MB3969; H:AM0PR0502MB4019.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-message-info: hjkHO9m/RDs9y3eEvlTr4zg9sxqw0mbd/n+oLsid4dDJB1ZWIOOr4qZeOLV2eV2w3F9hgrmknmrt0OrgylXqB4rLFRZpaUsDWk+g/upMfTqukkM6PfcwQiP8TLTrraA8ubV2toHiRbbueDzpfidFJUmSOH/lgQgfDtWmGBlZd+W9b2ZrPBJj3wMufdNRgUMlgf+ScILbJkhg4IOONBCF/zpralCOxdQhYW4wGxo6mx+Mo1vfnHhNvhBYZCFNHkTwNtpBwrYMh3kJ9KSvcrgDA7ddMIFAkPGlLc2rUFfM5TaaHMX0hUDuSzFxISW4Fyj1lQlzfzsYZlCuySFC1ADamQYwcPJ+EzL1QEkr4czb3OqAn2fjD/bBfN/8O5ylSqamjxLPJ4a9mQu11BKtQ0AiT0OwSWHXyYNOqz1ZZHg2cR8= 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: cecb6a4a-609c-49df-5277-08d741a33c79 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Sep 2019 10:29:24.4134 (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: OZLsfjUviqeal2pjPi4g48oRzsWXTz905Zfm5SMEh2kpHPTSaTrcuWbzpdY5L0ykmNTn7Fz+NJtxGppX9nAnzQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0502MB3969 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" From: Viacheslav Ovsiienko > 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 For all the series: Acked-by: Matan Azrad