kni: add i354 support
authorIntel <intel.com>
Fri, 8 Nov 2013 02:00:00 +0000 (03:00 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 24 Nov 2013 20:31:36 +0000 (21:31 +0100)
Signed-off-by: Intel
lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_api.c
lib/librte_eal/linuxapp/kni/ethtool/igb/e1000_hw.h
lib/librte_eal/linuxapp/kni/ethtool/igb/igb_main.c

index 57a5440..cb6edba 100644 (file)
@@ -182,6 +182,12 @@ s32 e1000_set_mac_type(struct e1000_hw *hw)
        case E1000_DEV_ID_I350_DA4:
                mac->type = e1000_i350;
                break;
+       case E1000_DEV_ID_I354_BACKPLANE_1GBPS:
+       case E1000_DEV_ID_I354_SGMII:
+       case E1000_DEV_ID_I354_BACKPLANE_2_5GBPS:
+               mac->type = e1000_i354;
+               break;
+
        default:
                /* Should never have loaded on this device */
                ret_val = -E1000_ERR_MAC_INIT;
index 800a13b..47f50c5 100644 (file)
@@ -56,6 +56,9 @@ struct e1000_hw;
 #define E1000_DEV_ID_I350_SERDES               0x1523
 #define E1000_DEV_ID_I350_SGMII                        0x1524
 #define E1000_DEV_ID_I350_DA4                  0x1546
+#define E1000_DEV_ID_I354_BACKPLANE_1GBPS       0x1F40
+#define E1000_DEV_ID_I354_SGMII                 0x1F41
+#define E1000_DEV_ID_I354_BACKPLANE_2_5GBPS     0x1F45
 #define E1000_DEV_ID_DH89XXCC_SGMII            0x0438
 #define E1000_DEV_ID_DH89XXCC_SERDES           0x043A
 #define E1000_DEV_ID_DH89XXCC_BACKPLANE                0x043C
@@ -82,6 +85,7 @@ enum e1000_mac_type {
        e1000_82576,
        e1000_82580,
        e1000_i350,
+       e1000_i354,
        e1000_num_macs  /* List is 1-based, so subtract 1 for true count. */
 };
 
index c2c1dde..b92a492 100644 (file)
@@ -75,6 +75,9 @@ static DEFINE_PCI_DEVICE_TABLE(igb_pci_tbl) = {
        { PCI_VDEVICE(INTEL, E1000_DEV_ID_I350_FIBER) },
        { PCI_VDEVICE(INTEL, E1000_DEV_ID_I350_SERDES) },
        { PCI_VDEVICE(INTEL, E1000_DEV_ID_I350_SGMII) },
+       { PCI_VDEVICE(INTEL, E1000_DEV_ID_I354_BACKPLANE_1GBPS) },
+       { PCI_VDEVICE(INTEL, E1000_DEV_ID_I354_SGMII) },
+       { PCI_VDEVICE(INTEL, E1000_DEV_ID_I354_BACKPLANE_2_5GBPS) },
        { PCI_VDEVICE(INTEL, E1000_DEV_ID_82580_COPPER) },
        { PCI_VDEVICE(INTEL, E1000_DEV_ID_82580_FIBER) },
        { PCI_VDEVICE(INTEL, E1000_DEV_ID_82580_QUAD_FIBER) },