net/iavf/base: update device IDs
authorQi Zhang <qi.z.zhang@intel.com>
Tue, 3 Dec 2019 07:03:05 +0000 (15:03 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:46:01 +0000 (19:46 +0100)
Add all supported device id.

Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/iavf/base/iavf_common.c
drivers/net/iavf/base/iavf_devids.h

index 5df4410..026dc47 100644 (file)
@@ -23,9 +23,11 @@ enum iavf_status iavf_set_mac_type(struct iavf_hw *hw)
 
        if (hw->vendor_id == IAVF_INTEL_VENDOR_ID) {
                switch (hw->device_id) {
-       /* TODO: remove undefined device ID now, need to think how to
-        * remove them in share code
-        */
+               case IAVF_DEV_ID_X722_VF:
+                       hw->mac.type = IAVF_MAC_X722_VF;
+                       break;
+               case IAVF_DEV_ID_VF:
+               case IAVF_DEV_ID_VF_HV:
                case IAVF_DEV_ID_ADAPTIVE_VF:
                        hw->mac.type = IAVF_MAC_VF;
                        break;
index 2cd88d6..cd92631 100644 (file)
@@ -8,7 +8,10 @@
 /* Vendor ID */
 #define IAVF_INTEL_VENDOR_ID           0x8086
 
-/* Device IDs */
+/* Device IDs for the VF driver */
+#define IAVF_DEV_ID_VF                 0x154C
+#define IAVF_DEV_ID_VF_HV              0x1571
 #define IAVF_DEV_ID_ADAPTIVE_VF                0x1889
+#define IAVF_DEV_ID_X722_VF            0x37CD
 
 #endif /* _IAVF_DEVIDS_H_ */