net/i40e: add device id for X710/XXV710 of ipn3ke
authorRosen Xu <rosen.xu@intel.com>
Sun, 5 May 2019 03:27:02 +0000 (11:27 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 7 May 2019 10:01:49 +0000 (12:01 +0200)
New PCI device ids are created to support X710/XXV710 of Intel FPGA
Programmable Acceleration card N3000, also called ipn3ke.

Signed-off-by: Rosen Xu <rosen.xu@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/i40e/base/i40e_common.c
drivers/net/i40e/base/i40e_devids.h
drivers/net/i40e/i40e_ethdev.c

index 8a98aff..fc1ac66 100644 (file)
@@ -42,6 +42,8 @@ STATIC enum i40e_status_code i40e_set_mac_type(struct i40e_hw *hw)
                case I40E_DEV_ID_20G_KR2_A:
                case I40E_DEV_ID_25G_B:
                case I40E_DEV_ID_25G_SFP28:
+               case I40E_DEV_ID_X710_N3000:
+               case I40E_DEV_ID_XXV710_N3000:
                        hw->mac.type = I40E_MAC_XL710;
                        break;
 #ifdef X722_A0_SUPPORT
index 8b667c2..ab3f33b 100644 (file)
@@ -22,6 +22,8 @@
 #define I40E_DEV_ID_10G_BASE_T4                0x1589
 #define I40E_DEV_ID_25G_B              0x158A
 #define I40E_DEV_ID_25G_SFP28          0x158B
+#define I40E_DEV_ID_X710_N3000      0x0CF8
+#define I40E_DEV_ID_XXV710_N3000       0x0D58
 #ifdef CARLSVILLE_HW
 #define I40E_DEV_ID_10G_BASE_T_BC      0x15FF
 #endif
index 2eea523..cab440f 100644 (file)
@@ -433,6 +433,8 @@ static const struct rte_pci_id pci_id_i40e_map[] = {
        { RTE_PCI_DEVICE(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_1G_BASE_T_X722) },
        { RTE_PCI_DEVICE(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_10G_BASE_T_X722) },
        { RTE_PCI_DEVICE(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_SFP_I_X722) },
+       { RTE_PCI_DEVICE(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_X710_N3000) },
+       { RTE_PCI_DEVICE(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_XXV710_N3000) },
        { .vendor_id = 0, /* sentinel */ },
 };