Skip to content

Commit

Permalink
common/mlx5: fix name for ConnectX VF device ID
Browse files Browse the repository at this point in the history
[ upstream commit 3ea12ca ]

Starting ConnectX-6 Dx, the VF device ID is generic
and not per chip.

https://pci-ids.ucw.cz/v2.2/pci.ids
101e  ConnectX Family mlx5Gen Virtual Function

This means that all will have the same VF device ID.

Fixes: 5fc6663 ("net/mlx5: add ConnectX6-DX device ID")

Signed-off-by: Raslan Darawsheh <rasland@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
  • Loading branch information
raslandarawsheh authored and bluca committed Nov 24, 2020
1 parent 14364ae commit 6de0c15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions drivers/net/mlx5/mlx5.c
Original file line number Diff line number Diff line change
Expand Up @@ -3389,7 +3389,7 @@ mlx5_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,
case PCI_DEVICE_ID_MELLANOX_CONNECTX5EXVF:
case PCI_DEVICE_ID_MELLANOX_CONNECTX5BFVF:
case PCI_DEVICE_ID_MELLANOX_CONNECTX6VF:
case PCI_DEVICE_ID_MELLANOX_CONNECTX6DXVF:
case PCI_DEVICE_ID_MELLANOX_CONNECTXVF:
dev_config.vf = 1;
break;
default:
Expand Down Expand Up @@ -3572,7 +3572,7 @@ static const struct rte_pci_id mlx5_pci_id_map[] = {
},
{
RTE_PCI_DEVICE(PCI_VENDOR_ID_MELLANOX,
PCI_DEVICE_ID_MELLANOX_CONNECTX6DXVF)
PCI_DEVICE_ID_MELLANOX_CONNECTXVF)
},
{
.vendor_id = 0
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/mlx5/mlx5.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ enum {
PCI_DEVICE_ID_MELLANOX_CONNECTX6 = 0x101b,
PCI_DEVICE_ID_MELLANOX_CONNECTX6VF = 0x101c,
PCI_DEVICE_ID_MELLANOX_CONNECTX6DX = 0x101d,
PCI_DEVICE_ID_MELLANOX_CONNECTX6DXVF = 0x101e,
PCI_DEVICE_ID_MELLANOX_CONNECTXVF = 0x101e,
};

/* Request types for IPC. */
Expand Down

0 comments on commit 6de0c15

Please sign in to comment.