net/mlx5: add ConnectX-6 Lx's device ID

Message ID 20200708091404.4187-1-alialnu@mellanox.com (mailing list archive)
State Accepted, archived
Delegated to: Raslan Darawsheh
Headers
Series net/mlx5: add ConnectX-6 Lx's device ID |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/travis-robot success Travis build: passed
ci/iol-broadcom-Performance success Performance Testing PASS
ci/Intel-compilation success Compilation OK
ci/iol-testing success Testing PASS
ci/iol-intel-Performance success Performance Testing PASS

Commit Message

Ali Alnubani July 8, 2020, 9:14 a.m. UTC
  This adds the ConnectX-6 Lx device id to the list of supported
Mellanox devices that run the MLX5 PMD.
The device is still in development stage.

Signed-off-by: Ali Alnubani <alialnu@mellanox.com>
Acked-by: Raslan Darawsheh <rasland@mellanox.com>
---
 drivers/common/mlx5/mlx5_common.h | 1 +
 drivers/net/mlx5/mlx5.c           | 4 ++++
 2 files changed, 5 insertions(+)
  

Comments

Raslan Darawsheh July 9, 2020, 12:01 p.m. UTC | #1
Hi,

> -----Original Message-----
> From: Ali Alnubani <alialnu@mellanox.com>
> Sent: Wednesday, July 8, 2020 12:14 PM
> To: dev@dpdk.org
> Cc: Raslan Darawsheh <rasland@mellanox.com>
> Subject: [PATCH] net/mlx5: add ConnectX-6 Lx's device ID
> 
> This adds the ConnectX-6 Lx device id to the list of supported
> Mellanox devices that run the MLX5 PMD.
> The device is still in development stage.
> 
> Signed-off-by: Ali Alnubani <alialnu@mellanox.com>
> Acked-by: Raslan Darawsheh <rasland@mellanox.com>
> ---
>  drivers/common/mlx5/mlx5_common.h | 1 +
>  drivers/net/mlx5/mlx5.c           | 4 ++++
>  2 files changed, 5 insertions(+)
> 
> diff --git a/drivers/common/mlx5/mlx5_common.h
> b/drivers/common/mlx5/mlx5_common.h
> index da01ffa1c..285150705 100644
> --- a/drivers/common/mlx5/mlx5_common.h
> +++ b/drivers/common/mlx5/mlx5_common.h
> @@ -130,6 +130,7 @@ enum {
>  	PCI_DEVICE_ID_MELLANOX_CONNECTX6DX = 0x101d,
>  	PCI_DEVICE_ID_MELLANOX_CONNECTX6DXVF = 0x101e,
>  	PCI_DEVICE_ID_MELLANOX_CONNECTX6DXBF = 0xa2d6,
> +	PCI_DEVICE_ID_MELLANOX_CONNECTX6LX = 0x101f,
>  };
> 
>  /* Maximum number of simultaneous unicast MAC addresses. */
> diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c
> index 86b7671b4..0c654ed8b 100644
> --- a/drivers/net/mlx5/mlx5.c
> +++ b/drivers/net/mlx5/mlx5.c
> @@ -1885,6 +1885,10 @@ static const struct rte_pci_id mlx5_pci_id_map[] =
> {
>  		RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX,
> 
> 	PCI_DEVICE_ID_MELLANOX_CONNECTX6DXBF)
>  	},
> +	{
> +		RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX,
> +				PCI_DEVICE_ID_MELLANOX_CONNECTX6LX)
> +	},
>  	{
>  		.vendor_id = 0
>  	}
> --
> 2.27.0


Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh
  

Patch

diff --git a/drivers/common/mlx5/mlx5_common.h b/drivers/common/mlx5/mlx5_common.h
index da01ffa1c..285150705 100644
--- a/drivers/common/mlx5/mlx5_common.h
+++ b/drivers/common/mlx5/mlx5_common.h
@@ -130,6 +130,7 @@  enum {
 	PCI_DEVICE_ID_MELLANOX_CONNECTX6DX = 0x101d,
 	PCI_DEVICE_ID_MELLANOX_CONNECTX6DXVF = 0x101e,
 	PCI_DEVICE_ID_MELLANOX_CONNECTX6DXBF = 0xa2d6,
+	PCI_DEVICE_ID_MELLANOX_CONNECTX6LX = 0x101f,
 };
 
 /* Maximum number of simultaneous unicast MAC addresses. */
diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c
index 86b7671b4..0c654ed8b 100644
--- a/drivers/net/mlx5/mlx5.c
+++ b/drivers/net/mlx5/mlx5.c
@@ -1885,6 +1885,10 @@  static const struct rte_pci_id mlx5_pci_id_map[] = {
 		RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX,
 				PCI_DEVICE_ID_MELLANOX_CONNECTX6DXBF)
 	},
+	{
+		RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX,
+				PCI_DEVICE_ID_MELLANOX_CONNECTX6LX)
+	},
 	{
 		.vendor_id = 0
 	}