i40e: fix 'Unknown bps' in dmesg for 2.5Gb/5Gb speeds
authorAleksandr Loktionov <aleksandr.loktionov@intel.com>
Tue, 28 May 2019 17:59:15 +0000 (10:59 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 26 Jun 2019 16:18:54 +0000 (09:18 -0700)
commit4ae4916b56435d1d5066616120f9ff907bd96b86
tree5c4dbe0cac8a2ca1bf4e21ed9dbf648f29499b94
parente0f0be7dee97dfa01d5c90ab45c1302600604bda
i40e: fix 'Unknown bps' in dmesg for 2.5Gb/5Gb speeds

This patch fixes 'NIC Link is Up, Unknown bps' message in dmesg
for 2.5Gb/5Gb speeds. This problem is fixed by adding constants
for VIRTCHNL_LINK_SPEED_2_5GB and VIRTCHNL_LINK_SPEED_5GB cases
in the i40e_virtchnl_link_speed() function.

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_prototype.h
include/linux/avf/virtchnl.h