i40e: refactor repeated link state reporting code
authorAleksandr Loktionov <aleksandr.loktionov@intel.com>
Wed, 27 Jan 2021 10:58:36 +0000 (10:58 +0000)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 23 Apr 2021 16:03:56 +0000 (09:03 -0700)
commit6d2c322cce04c177d96baafdbd9bad5c49456719
tree60881835652be9732b48fa6cd0672e21f599d691
parentcad4162a90aeff737a16c0286987f51e927f003a
i40e: refactor repeated link state reporting code

Refactor repeated link state reporting code into a separate helper
functions: i40e_set_vf_link_state() i40e_vc_link_speed2mbps().
Add support of VIRTCHNL_VF_CAP_ADV_LINK_SPEED;

Signed-off-by: Arkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>
Signed-off-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c