]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Report VF link status with opcode to get resources
authorAkeem G Abodunrin <akeem.g.abodunrin@intel.com>
Tue, 3 Sep 2019 08:31:03 +0000 (01:31 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 5 Sep 2019 15:13:41 +0000 (08:13 -0700)
commit99fc1f60d616288e7a05beea156a6174d0187fc3
tree9ab061e43c5cd5dee23bed1839434d0136aaa8dc
parent9a554a82752a51792a972f0f35d9d28cc98a1997
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>
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c