net/mlx5: add bluefield vf support

Message ID 1535896559-114522-1-git-send-email-orika@mellanox.com (mailing list archive)
State Accepted, archived
Delegated to: Shahaf Shuler
Headers
Series net/mlx5: add bluefield vf support |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Ori Kam Sept. 2, 2018, 1:55 p.m. UTC
  Signed-off-by: Ori Kam <orika@mellanox.com>
---
 drivers/net/mlx5/mlx5.c | 4 ++++
 drivers/net/mlx5/mlx5.h | 1 +
 2 files changed, 5 insertions(+)
  

Comments

Yongseok Koh Sept. 11, 2018, 5:48 p.m. UTC | #1
> On Sep 2, 2018, at 6:55 AM, Ori Kam <orika@mellanox.com> wrote:
> 
> Signed-off-by: Ori Kam <orika@mellanox.com>
> ---
Acked-by: Yongseok Koh <yskoh@mellanox.com>
 
Thanks

> drivers/net/mlx5/mlx5.c | 4 ++++
> drivers/net/mlx5/mlx5.h | 1 +
> 2 files changed, 5 insertions(+)
> 
> diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c
> index 30d4e70..fd89e2a 100644
> --- a/drivers/net/mlx5/mlx5.c
> +++ b/drivers/net/mlx5/mlx5.c
> @@ -1489,6 +1489,10 @@ struct mlx5_dev_spawn_data {
> 			       PCI_DEVICE_ID_MELLANOX_CONNECTX5BF)
> 	},
> 	{
> +		RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX,
> +			       PCI_DEVICE_ID_MELLANOX_CONNECTX5BFVF)
> +	},
> +	{
> 		.vendor_id = 0
> 	}
> };
> diff --git a/drivers/net/mlx5/mlx5.h b/drivers/net/mlx5/mlx5.h
> index 35a196e..4d3e9f3 100644
> --- a/drivers/net/mlx5/mlx5.h
> +++ b/drivers/net/mlx5/mlx5.h
> @@ -51,6 +51,7 @@ enum {
> 	PCI_DEVICE_ID_MELLANOX_CONNECTX5EX = 0x1019,
> 	PCI_DEVICE_ID_MELLANOX_CONNECTX5EXVF = 0x101a,
> 	PCI_DEVICE_ID_MELLANOX_CONNECTX5BF = 0xa2d2,
> +	PCI_DEVICE_ID_MELLANOX_CONNECTX5BFVF = 0xa2d3,
> };
> 
> /** Switch information returned by mlx5_nl_switch_info(). */
> -- 
> 1.8.3.1
>
  
Shahaf Shuler Sept. 16, 2018, 9:01 a.m. UTC | #2
Tuesday, September 11, 2018 8:49 PM, Yongseok Koh:
> Subject: Re: [PATCH] net/mlx5: add bluefield vf support
> 
> 
> > On Sep 2, 2018, at 6:55 AM, Ori Kam <orika@mellanox.com> wrote:
> >
> > Signed-off-by: Ori Kam <orika@mellanox.com>
> > ---
> Acked-by: Yongseok Koh <yskoh@mellanox.com>

Applied to next-net-mlx, thanks.
  

Patch

diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c
index 30d4e70..fd89e2a 100644
--- a/drivers/net/mlx5/mlx5.c
+++ b/drivers/net/mlx5/mlx5.c
@@ -1489,6 +1489,10 @@  struct mlx5_dev_spawn_data {
 			       PCI_DEVICE_ID_MELLANOX_CONNECTX5BF)
 	},
 	{
+		RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX,
+			       PCI_DEVICE_ID_MELLANOX_CONNECTX5BFVF)
+	},
+	{
 		.vendor_id = 0
 	}
 };
diff --git a/drivers/net/mlx5/mlx5.h b/drivers/net/mlx5/mlx5.h
index 35a196e..4d3e9f3 100644
--- a/drivers/net/mlx5/mlx5.h
+++ b/drivers/net/mlx5/mlx5.h
@@ -51,6 +51,7 @@  enum {
 	PCI_DEVICE_ID_MELLANOX_CONNECTX5EX = 0x1019,
 	PCI_DEVICE_ID_MELLANOX_CONNECTX5EXVF = 0x101a,
 	PCI_DEVICE_ID_MELLANOX_CONNECTX5BF = 0xa2d2,
+	PCI_DEVICE_ID_MELLANOX_CONNECTX5BFVF = 0xa2d3,
 };
 
 /** Switch information returned by mlx5_nl_switch_info(). */