]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Add helper to determine if VF link is up
authorBrett Creeley <brett.creeley@intel.com>
Wed, 22 Jan 2020 15:21:26 +0000 (07:21 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 16 Feb 2020 00:29:49 +0000 (16:29 -0800)
commit37dbb708a1719b3737cd3c3e7ff65dcbf9e330be
tree3a01c51096d60e71bace6dad1240ea38cc436b86
parenta3e8c04ca99e42d53fadd7e5d4d6d9ea3fd9a21a
ice: Add helper to determine if VF link is up

The check for vf->link_up is incorrect because this field is only valid if
vf->link_forced is true. Fix this by adding the helper ice_is_vf_link_up()
to determine if the VF's link is up.

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_virtchnl_pf.c