]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
nfp: use PCI_DEVICE_ID_NETRONOME_NFP6000_VF for VFs instead
authorDirk van der Merwe <dirk.vandermerwe@netronome.com>
Fri, 11 Mar 2022 10:42:58 +0000 (11:42 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 12 Mar 2022 07:10:21 +0000 (23:10 -0800)
The PCI_DEVICE_ID_NETRONOME_NFP6000_VF is available for use and
should be used instead of the PCI_DEVICE_NFP6000VF. Meanwhile,
PCI_DEVICE_NFP6000VF PCI ID is removed for not being used.

Signed-off-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com>
Signed-off-by: Fei Qin <fei.qin@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/netronome/nfp/nfp_netvf_main.c

index 87f2268b16d6e4f81513f234d269c3134b6c7344..694152016b25062e219cf065df60903a244410da 100644 (file)
@@ -36,9 +36,8 @@ struct nfp_net_vf {
 
 static const char nfp_net_driver_name[] = "nfp_netvf";
 
-#define PCI_DEVICE_NFP6000VF           0x6003
 static const struct pci_device_id nfp_netvf_pci_device_ids[] = {
-       { PCI_VENDOR_ID_NETRONOME, PCI_DEVICE_NFP6000VF,
+       { PCI_VENDOR_ID_NETRONOME, PCI_DEVICE_ID_NETRONOME_NFP6000_VF,
          PCI_VENDOR_ID_NETRONOME, PCI_ANY_ID,
          PCI_ANY_ID, 0,
        },