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 0A6D9A034E; Thu, 7 Nov 2019 10:25:10 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 51FD81E95F; Thu, 7 Nov 2019 10:25:09 +0100 (CET) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60058.outbound.protection.outlook.com [40.107.6.58]) by dpdk.org (Postfix) with ESMTP id 061E81E95C for ; Thu, 7 Nov 2019 10:25:08 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kL1J0m6CAx9JoJZOp1sfjq40Cfs00vTRjPGdpR0j75ZIO48s99R9AA2BtDsW2S8atwuz6wvwi9f4OEzld1yThjGiMKaI7y5CH9YIopb87oItRwql/hiVIFcLLJKgbKSpxyf5GwNqNAPXhs0eSKLuwgqJHgkD3+aOYudLaOQQXl0YOhxvCIP5T9kD+AB7jc5m1b8p3hBK0kNA3q2nNS/w10k3brMjZewFBI2Spef0BsHJUFs+CtzujqLLLiQRFxK7bm5rSkf5YX2iaVX/1JYALq95GxafQDGyX3w000lJ8dWdfcL1Z1VyIp2vS6mk4dRXFn5pm5dG93bVRe/EcCWv9A== 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=kST36op47zVjG04sks9e9PFUFWNk4HH9w7TpuK94IXg=; b=fJlMzWrGQj0LgE5VyGK5VWR1sVGqb1J9BKNmp5ZOtyxa+T4UUo3k0Vutfl21L9dKywIRXy4ULpv1CMw/awsEVj/Vha1mb3n3i7M8Vw4oRXFqpS9pu3s52WFdDJBPDBlm9Yus8mGTpAczDzvConIuqfwK3v1gDIDS1SY/Y37JXHVUqyEuRiyrQTPskpuyvX3n3zbojDuXFMaiyAFBP8gwtEM/Vhha4JRQxF014YLMrLAr7x+g/HGrVXejvCo0YEhFRqFYPAjgfdyr/VIJ129N+aLFycVxJmtnCTbiJrrykEthUNaUhSBlsBBIB0+YnCk3itVUIKYN3e38AG2hHwfDgQ== 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=kST36op47zVjG04sks9e9PFUFWNk4HH9w7TpuK94IXg=; b=GrgYL9qlobli8q7FMWiGwFKkfr/GDYS76Jz6fJ1Xu9r2XERdksc7MmaQIlNDrPE32f0YzL+vHqMKPIBA0kY9Awi/XsU+foG+pp0klFOSsMv6bf9FZ93BWtrgGZlBb2T29x6mdWz4OmQxtNAriEUiXH1qtm3BsDjzeE13dxfyvGQ= Received: from DB3PR0502MB3964.eurprd05.prod.outlook.com (52.134.65.161) by DB3PR0502MB3947.eurprd05.prod.outlook.com (52.134.71.159) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2408.24; Thu, 7 Nov 2019 09:25:06 +0000 Received: from DB3PR0502MB3964.eurprd05.prod.outlook.com ([fe80::a850:bac9:c90f:f2f5]) by DB3PR0502MB3964.eurprd05.prod.outlook.com ([fe80::a850:bac9:c90f:f2f5%6]) with mapi id 15.20.2408.024; Thu, 7 Nov 2019 09:25:06 +0000 From: Raslan Darawsheh To: Slava Ovsiienko CC: "dev@dpdk.org" , Asaf Penso , Wisam Monther Thread-Topic: [PATCH v2] net/mlx5: add ConnectX6-DX device id Thread-Index: AQHVlU0+4p0bLOfETE+kTDfugmpkUQ== Date: Thu, 7 Nov 2019 09:25:06 +0000 Message-ID: <1573118700-2542-1-git-send-email-rasland@mellanox.com> References: <1573116011-1610-1-git-send-email-rasland@mellanox.com> In-Reply-To: <1573116011-1610-1-git-send-email-rasland@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: PR0P264CA0233.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1e::29) To DB3PR0502MB3964.eurprd05.prod.outlook.com (2603:10a6:8:3::33) authentication-results: spf=none (sender IP is ) smtp.mailfrom=rasland@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [82.213.2.186] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: c0eed4a3-5e8d-44e8-b31d-08d76364609d x-ms-traffictypediagnostic: DB3PR0502MB3947:|DB3PR0502MB3947: x-ms-exchange-purlcount: 1 x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2331; x-forefront-prvs: 0214EB3F68 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(376002)(346002)(39860400002)(366004)(136003)(396003)(199004)(189003)(2616005)(14444005)(3846002)(6506007)(186003)(6636002)(256004)(6116002)(8676002)(81156014)(6862004)(4326008)(86362001)(486006)(476003)(50226002)(5660300002)(66556008)(66476007)(107886003)(8936002)(305945005)(478600001)(64756008)(66946007)(7736002)(25786009)(446003)(36756003)(66446008)(99286004)(6512007)(81166006)(66066001)(71200400001)(11346002)(52116002)(6436002)(6486002)(2906002)(26005)(76176011)(37006003)(14454004)(54906003)(71190400001)(102836004)(386003)(6306002)(316002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR0502MB3947; H:DB3PR0502MB3964.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX: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: 856bEJiGiq8JSVKPTW5/HIStqh1uFvLdJqysDPTaqOQ5Nscz+gasgPhQH1hJJm8jLwg/WXPeUJVQKjKr77Oyh9SoAsC57n+amAv2bKhJjeeBVgRbc5dt5mzHWM1GxLg37Qslkf+fevg/F3EY3w2Uvqiv2yQ0boFEfp36M8eruiGL0F2rO07GISbYvWg+mipk0w18JhBIg7GuwzKfW7I1Lq+4fIOci5sUlv4TZbIrnEUoSJBsfjgC2CQg55K1Q0D7eGbaRVN6kDIWWRCeP5boIDF6uqxcRIKiQFmYEY6PmyWIJobNCKz+LSCJdKMaKqmTvvwxJPv7fTBM3Q8rQqsx6xxAkS+rQplZWyzyeSCWDul3gJwIB6URSZCQ8Ngew17iKTkRRN0SV/PUQaz3/+EcEq+PG5wQxbuSO9m1zP8NwFv1AgwE/eHqo5LKEMOGaRA19/WMLXM6adbDIDAc+1XHJMkMYAPNd78opjts+0YNxcg= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: c0eed4a3-5e8d-44e8-b31d-08d76364609d X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Nov 2019 09:25:06.7030 (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: d2go0dOOb38cTgrfxtaakj4I3h+Lawtt9uxIFqeDx+Ds/KuXh6wvv1y/LagVLlt6nlYMrTgrmKFC0Xp8B4UlYA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0502MB3947 Subject: [dpdk-dev] [PATCH v2] net/mlx5: add ConnectX6-DX device id 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" This adds new device id to the list of Mellanox devices that runs mlx5 PMD. - ConnectX-6DX device ID - ConnectX-6DX SRIOV device ID Signed-off-by: Raslan Darawsheh --- v2: add missing documentation and update pci id map --- doc/guides/nics/mlx5.rst | 36 +++++++++++++++++++++---------= ---- doc/guides/rel_notes/release_19_11.rst | 1 + drivers/net/mlx5/mlx5.c | 10 ++++++++++ drivers/net/mlx5/mlx5.h | 2 ++ 4 files changed, 35 insertions(+), 14 deletions(-) diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst index 4f1093f..0dec788 100644 --- a/doc/guides/nics/mlx5.rst +++ b/doc/guides/nics/mlx5.rst @@ -7,9 +7,9 @@ MLX5 poll mode driver =20 The MLX5 poll mode driver library (**librte_pmd_mlx5**) provides support for **Mellanox ConnectX-4**, **Mellanox ConnectX-4 Lx** , **Mellanox -ConnectX-5**, **Mellanox ConnectX-6** and **Mellanox BlueField** families -of 10/25/40/50/100/200 Gb/s adapters as well as their virtual functions (V= F) -in SR-IOV context. +ConnectX-5**, **Mellanox ConnectX-6**, **Mellanox ConnectX-6DX** and +**Mellanox BlueField** families of 10/25/40/50/100/200 Gb/s adapters +as well as their virtual functions (VF) in SR-IOV context. =20 Information and documentation about these adapters can be found on the `Mellanox website `__. Help is also provided by t= he @@ -313,8 +313,10 @@ Run-time configuration =20 Supported on: =20 - - x86_64 with ConnectX-4, ConnectX-4 LX, ConnectX-5, ConnectX-6 and Blue= Field. - - POWER9 and ARMv8 with ConnectX-4 LX, ConnectX-5, ConnectX-6 and BlueFi= eld. + - x86_64 with ConnectX-4, ConnectX-4 LX, ConnectX-5, ConnectX-6, Connect= X-6 DX + and BlueField. + - POWER9 and ARMv8 with ConnectX-4 LX, ConnectX-5, ConnectX-6, ConnectX-= 6 DX + and BlueField. =20 - ``rxq_cqe_pad_en`` parameter [int] =20 @@ -344,8 +346,10 @@ Run-time configuration =20 Supported on: =20 - - x86_64 with ConnectX-4, ConnectX-4 LX, ConnectX-5, ConnectX-6 and Blue= Field. - - POWER8 and ARMv8 with ConnectX-4 LX, ConnectX-5, ConnectX-6 and BlueFi= eld. + - x86_64 with ConnectX-4, ConnectX-4 LX, ConnectX-5, ConnectX-6, Connect= X-6 DX + and BlueField. + - POWER8 and ARMv8 with ConnectX-4 LX, ConnectX-5, ConnectX-6, ConnectX-= 6 DX + and BlueField. =20 - ``mprq_en`` parameter [int] =20 @@ -537,11 +541,11 @@ Run-time configuration - ``txq_mpw_en`` parameter [int] =20 A nonzero value enables Enhanced Multi-Packet Write (eMPW) for ConnectX-= 5, - ConnectX-6 and BlueField. eMPW allows the TX burst function to pack up m= ultiple - packets in a single descriptor session in order to save PCI bandwidth an= d improve - performance at the cost of a slightly higher CPU usage. When ``txq_inlin= e_mpw`` - is set along with ``txq_mpw_en``, TX burst function copies entire packet - data on to TX descriptor instead of including pointer of packet. + ConnectX-6, ConnectX-6 DX and BlueField. eMPW allows the TX burst functi= on to pack + up multiple packets in a single descriptor session in order to save PCI = bandwidth + and improve performance at the cost of a slightly higher CPU usage. When + ``txq_inline_mpw`` is set along with ``txq_mpw_en``, TX burst function c= opies + entire packet data on to TX descriptor instead of including pointer of p= acket. =20 The Enhanced Multi-Packet Write feature is enabled by default if NIC sup= ports it, can be disabled by explicit specifying 0 value for ``txq_mpw_en`` op= tion. @@ -550,8 +554,8 @@ Run-time configuration =20 - ``tx_vec_en`` parameter [int] =20 - A nonzero value enables Tx vector on ConnectX-5, ConnectX-6 and BlueFiel= d - NICs if the number of global Tx queues on the port is less than + A nonzero value enables Tx vector on ConnectX-5, ConnectX-6, ConnectX-6 = DX + and BlueField NICs if the number of global Tx queues on the port is less= than ``txqs_max_vec``. The parameter is deprecated and ignored. =20 - ``rx_vec_en`` parameter [int] @@ -794,6 +798,7 @@ Mellanox OFED/EN - ConnectX-5: **16.21.1000** and above. - ConnectX-5 Ex: **16.21.1000** and above. - ConnectX-6: **20.99.5374** and above. + - ConnectX-6 DX: **22.27.0090** and above. - BlueField: **18.25.1010** and above. =20 While these libraries and kernel modules are available on OpenFabrics @@ -837,6 +842,9 @@ Supported NICs * Mellanox(R) ConnectX(R)-4 Lx 25G MCX4121A-ACAT (2x25G) * Mellanox(R) ConnectX(R)-5 100G MCX556A-ECAT (2x100G) * Mellanox(R) ConnectX(R)-5 Ex EN 100G MCX516A-CDAT (2x100G) +* Mellanox(R) ConnectX(R)-6 200G MCX654106A-HCAT (4x200G) +* Mellanox(R) ConnectX(R)-6DX EN 100G MCX623106AN-CDAT (2*100g) +* Mellanox(R) ConnectX(R)-6DX EN 200G MCX623105AN-VDAT (1*200g) =20 Quick Start Guide on OFED/EN ---------------------------- diff --git a/doc/guides/rel_notes/release_19_11.rst b/doc/guides/rel_notes/= release_19_11.rst index 23182d1..2920fa2 100644 --- a/doc/guides/rel_notes/release_19_11.rst +++ b/doc/guides/rel_notes/release_19_11.rst @@ -169,6 +169,7 @@ New Features * Added support for VLAN set VID offload command. * Added support for matching on packets withe Geneve tunnel header. * Added hairpin support. + * Added ConnectX6-DX support. =20 * **Updated the AF_XDP PMD.** =20 diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c index 72c30bf..594fac1 100644 --- a/drivers/net/mlx5/mlx5.c +++ b/drivers/net/mlx5/mlx5.c @@ -2891,6 +2891,8 @@ mlx5_pci_probe(struct rte_pci_driver *pci_drv __rte_u= nused, case PCI_DEVICE_ID_MELLANOX_CONNECTX5EXVF: case PCI_DEVICE_ID_MELLANOX_CONNECTX5BFVF: case PCI_DEVICE_ID_MELLANOX_CONNECTX6VF: + case PCI_DEVICE_ID_MELLANOX_CONNECTX6DX: + case PCI_DEVICE_ID_MELLANOX_CONNECTX6DXVF: dev_config.vf =3D 1; break; default: @@ -3061,6 +3063,14 @@ static const struct rte_pci_id mlx5_pci_id_map[] =3D= { PCI_DEVICE_ID_MELLANOX_CONNECTX6VF) }, { + RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX, + PCI_DEVICE_ID_MELLANOX_CONNECTX6DX) + }, + { + RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX, + PCI_DEVICE_ID_MELLANOX_CONNECTX6DXVF) + }, + { .vendor_id =3D 0 } }; diff --git a/drivers/net/mlx5/mlx5.h b/drivers/net/mlx5/mlx5.h index f644998..b56dae1 100644 --- a/drivers/net/mlx5/mlx5.h +++ b/drivers/net/mlx5/mlx5.h @@ -55,6 +55,8 @@ enum { PCI_DEVICE_ID_MELLANOX_CONNECTX5BFVF =3D 0xa2d3, PCI_DEVICE_ID_MELLANOX_CONNECTX6 =3D 0x101b, PCI_DEVICE_ID_MELLANOX_CONNECTX6VF =3D 0x101c, + PCI_DEVICE_ID_MELLANOX_CONNECTX6DX =3D 0x101d, + PCI_DEVICE_ID_MELLANOX_CONNECTX6DXVF =3D 0x101e, }; =20 /* Request types for IPC. */ --=20 2.7.4