OSDN Git Service

nfp: support Corigine PCIE vendor ID
authorYu Xiao <yu.xiao@corigine.com>
Sun, 8 May 2022 17:38:16 +0000 (19:38 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 10 May 2022 01:20:39 +0000 (18:20 -0700)
commit299ba7a32a3ca2ad2955bbad6b30eb88d1ced62d
treee7983d566151c20d7e49f7c0228271fc2bca194d
parent34e244ea150769fed3dbfd1d1cb33a088216d3ac
nfp: support Corigine PCIE vendor ID

Historically the nfp driver has supported NFP chips with Netronome's
PCIE vendor ID. This patch extends the driver to also support NFP
chips, which at this point are assumed to be otherwise identical from
a software perspective, that have Corigine's PCIE vendor ID (0x1da8).

Also, Rename the macro definitions PCI_DEVICE_ID_NERTONEOME_NFPXXXX
to PCI_DEVICE_ID_NFPXXXX, as they are now used in conjunction with two
PCIE vendor IDs.

Signed-off-by: Yu Xiao <yu.xiao@corigine.com>
Signed-off-by: Yinjun Zhang <yinjun.zhang@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_main.c
drivers/net/ethernet/netronome/nfp/nfp_netvf_main.c
drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_dev.h