[dpdk-dev] [PATCH] net/mlx5: add bluefield device ID
Nélio Laranjeiro
nelio.laranjeiro at 6wind.com
Mon Feb 26 09:11:20 CET 2018
On Sun, Feb 25, 2018 at 09:20:49AM +0200, Shahaf Shuler wrote:
> Signed-off-by: Shahaf Shuler <shahafs at mellanox.com>
> ---
> 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 61cb93101..5345bc46f 100644
> --- a/drivers/net/mlx5/mlx5.c
> +++ b/drivers/net/mlx5/mlx5.c
> @@ -1027,6 +1027,10 @@ static const struct rte_pci_id mlx5_pci_id_map[] = {
> PCI_DEVICE_ID_MELLANOX_CONNECTX5EXVF)
> },
> {
> + RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX,
> + PCI_DEVICE_ID_MELLANOX_BLUEFIELD)
> + },
> + {
> .vendor_id = 0
> }
> };
> diff --git a/drivers/net/mlx5/mlx5.h b/drivers/net/mlx5/mlx5.h
> index 3e2d96abc..1c9845503 100644
> --- a/drivers/net/mlx5/mlx5.h
> +++ b/drivers/net/mlx5/mlx5.h
> @@ -49,6 +49,7 @@ enum {
> PCI_DEVICE_ID_MELLANOX_CONNECTX5VF = 0x1018,
> PCI_DEVICE_ID_MELLANOX_CONNECTX5EX = 0x1019,
> PCI_DEVICE_ID_MELLANOX_CONNECTX5EXVF = 0x101a,
> + PCI_DEVICE_ID_MELLANOX_BLUEFIELD = 0xa2d2,
> };
>
> struct mlx5_xstats_ctrl {
> --
> 2.12.0
Please also update:
- config/common_base
- doc/guides/nics/mlx5.rst
- doc/guides/rel_notes/release_18_05.rst
In the same commit, as it was done for
commit 528a9fbec6de ("net/mlx5: support ConnectX-5 devices")
Thanks,
--
Nélio Laranjeiro
6WIND
More information about the dev
mailing list