]> git.baikalelectronics.ru Git - kernel.git/commit
iavf: Fix reporting 2.5 Gb and 5Gb speeds
authorBrett Creeley <brett.creeley@intel.com>
Fri, 5 Jun 2020 17:09:45 +0000 (10:09 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 11 Jun 2020 22:11:42 +0000 (15:11 -0700)
commitfd0b620b2fef3daf8fc5ccdbc4fadffbe0c9511c
treea5bb64f52f8acb582ee632eead0b3a3d44ea4077
parent65cfeebe680240c398638c8b6f890bc4fa7e4cc0
iavf: Fix reporting 2.5 Gb and 5Gb speeds

Commit 9540da74d9d7 ("i40e: fix 'Unknown bps' in dmesg for 2.5Gb/5Gb
speeds") added the ability for the PF to report 2.5 and 5Gb speeds,
however, the iavf driver does not recognize those speeds as the values were
not added there. Add the proper enums and values so that iavf can properly
deal with those speeds.

Fixes: 9540da74d9d7 ("i40e: fix 'Unknown bps' in dmesg for 2.5Gb/5Gb speeds")
Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Signed-off-by: Witold Fijalkowski <witoldx.fijalkowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@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_virtchnl.c