]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ice: Fix VF link state when it's IFLA_VF_LINK_STATE_AUTO
authorBrett Creeley <brett.creeley@intel.com>
Thu, 12 Dec 2019 11:13:01 +0000 (03:13 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 4 Jan 2020 00:08:33 +0000 (16:08 -0800)
commit26a91525cca8e50854706a9e71ce38795ba1fbcb
tree07caa4a7f27724d6d1a551c6732b56e4b5a2798b
parentf57a683dedbbe80af69708ae862f7ac88a441e5c
ice: Fix VF link state when it's IFLA_VF_LINK_STATE_AUTO

Currently the flow for ice_set_vf_link_state() is not configuring link
the same as all other VF link configuration flows. Fix this by only
setting the necessary VF members in ice_set_vf_link_state() and then
call ice_vc_notify_link_state() to actually configure link for the
VF. This made ice_set_pfe_link_forced() unnecessary, so it was
deleted. Also, this commonizes the link flows for the VF to all call
ice_vc_notify_link_state().

Signed-off-by: Brett Creeley <brett.creeley@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/ice/ice_main.c
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c