Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ice: Report VF link status with opcode to get resources

This patch changes how and when the driver report link status, instead of
waiting till the call to enable queues for VF, we should report link
status earlier with opcode to get VF resources - So as to avoid reporting
erroneous information, especially when queues have not been configured.
In addition, we can also make a call to get and report link status change
after when queue is enabled, at least to report netdev or PHY link status.
This is in accordance to how link speed is being reported for PF...

Signed-off-by: Akeem G Abodunrin <akeem.g.abodunrin@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>

authored by

Akeem G Abodunrin and committed by
Jeff Kirsher
dfc62400 80739b57

+1
+1
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c
··· 2934 2934 break; 2935 2935 case VIRTCHNL_OP_GET_VF_RESOURCES: 2936 2936 err = ice_vc_get_vf_res_msg(vf, msg); 2937 + ice_vc_notify_vf_link_state(vf); 2937 2938 break; 2938 2939 case VIRTCHNL_OP_RESET_VF: 2939 2940 ice_vc_reset_vf_msg(vf);