From: Qi Zhang Date: Tue, 3 Dec 2019 07:03:05 +0000 (+0800) Subject: net/iavf/base: update device IDs X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=eb385183edac790eeccf86e7318b762d5a151577;p=dpdk.git net/iavf/base: update device IDs Add all supported device id. Signed-off-by: Paul M Stillwell Jr Signed-off-by: Qi Zhang Acked-by: Qiming Yang --- diff --git a/drivers/net/iavf/base/iavf_common.c b/drivers/net/iavf/base/iavf_common.c index 5df4410e02..026dc47564 100644 --- a/drivers/net/iavf/base/iavf_common.c +++ b/drivers/net/iavf/base/iavf_common.c @@ -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; diff --git a/drivers/net/iavf/base/iavf_devids.h b/drivers/net/iavf/base/iavf_devids.h index 2cd88d62f0..cd92631f44 100644 --- a/drivers/net/iavf/base/iavf_devids.h +++ b/drivers/net/iavf/base/iavf_devids.h @@ -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_ */