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)
commit0b6c6a8bb6d541aad9e0f3bb2307316707aec723
tree3a01c51096d60e71bace6dad1240ea38cc436b86
parentb093841f9ac916ce233cb59c74bf4a70a2febb2c
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