i40e: add new pci id for X710/XXV710 N3000 cards
authorAleksandr Loktionov <aleksandr.loktionov@intel.com>
Fri, 29 Mar 2019 22:08:31 +0000 (15:08 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 5 May 2019 00:10:52 +0000 (17:10 -0700)
New device ids are created to support X710/XXV710 N3000 cards.

Signed-off-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_common.c
drivers/net/ethernet/intel/i40e/i40e_devids.h
drivers/net/ethernet/intel/i40e/i40e_main.c

index e7d500f92a9020aa0a1e5525a44305c19c930c8e..8de6e007b4a04de613c5a6db864300899da73f15 100644 (file)
@@ -32,6 +32,8 @@ static i40e_status 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;
                case I40E_DEV_ID_KX_X722:
index 334b05ff685ac937ecfde38afb41176bb66240ac..16be4d5286bdfb9dc98942a56ee211f3832d3ea3 100644 (file)
@@ -5,6 +5,8 @@
 #define _I40E_DEVIDS_H_
 
 /* Device IDs */
+#define I40E_DEV_ID_X710_N3000         0x0CF8
+#define I40E_DEV_ID_XXV710_N3000       0x0D58
 #define I40E_DEV_ID_SFP_XL710          0x1572
 #define I40E_DEV_ID_QEMU               0x1574
 #define I40E_DEV_ID_KX_B               0x1580
index fa1b2cfd359eb82b3287dd75919ddc9021edc440..7d0183c67cfff2c837a8eac2966d754adc9343ae 100644 (file)
@@ -81,6 +81,8 @@ static const struct pci_device_id i40e_pci_tbl[] = {
        {PCI_VDEVICE(INTEL, I40E_DEV_ID_SFP_I_X722), 0},
        {PCI_VDEVICE(INTEL, I40E_DEV_ID_20G_KR2), 0},
        {PCI_VDEVICE(INTEL, I40E_DEV_ID_20G_KR2_A), 0},
+       {PCI_VDEVICE(INTEL, I40E_DEV_ID_X710_N3000), 0},
+       {PCI_VDEVICE(INTEL, I40E_DEV_ID_XXV710_N3000), 0},
        {PCI_VDEVICE(INTEL, I40E_DEV_ID_25G_B), 0},
        {PCI_VDEVICE(INTEL, I40E_DEV_ID_25G_SFP28), 0},
        /* required last entry */