iavf: use appropriate enum for comparison
authorAleksandr Loktionov <aleksandr.loktionov@intel.com>
Fri, 5 Jun 2020 17:09:44 +0000 (10:09 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 11 Jun 2020 21:53:50 +0000 (14:53 -0700)
commit5071bda2947f61da0b1c271cf0b16be45c9b81e9
treea0c0bf20189726b1305e3c52f5287ef25948adba
parente0ef26fbe2b0c62f42ba7667076dc38b693b6fb8
iavf: use appropriate enum for comparison

adapter->link_speed has type enum virtchnl_link_speed but our comparisons
are against enum iavf_aq_link_speed. Though they are, currently, the same
values, change the comparison to the matching enum virtchnl_link_speed
since that may not always be the case.

Signed-off-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Signed-off-by: Piotr Kwapulinski <piotr.kwapulinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/iavf/iavf_ethtool.c
drivers/net/ethernet/intel/iavf/iavf_main.c
drivers/net/ethernet/intel/iavf/iavf_txrx.c
drivers/net/ethernet/intel/iavf/iavf_virtchnl.c