]> git.baikalelectronics.ru Git - kernel.git/commit
ice: report link down for VF when PF's queues are not enabled
authorLukasz Czapnik <lukasz.czapnik@intel.com>
Tue, 3 Sep 2019 08:31:01 +0000 (01:31 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 5 Sep 2019 15:13:41 +0000 (08:13 -0700)
commit997810a55dc358ad8fed3425ab2dd1487aa7c7a6
tree728ea439d3c77393a596a400c2bd9831fceb7578
parent9dfd73b050d697414ed6ed1fcd385f9548c7368c
ice: report link down for VF when PF's queues are not enabled

This is port of a fix from i40e commit 4c32a69188a0 ("i40e: don't
report link up for a VF who hasn't enabled queues")

Older VF drivers do not respond well to receiving a link
up notification before queues are enabled. This can cause their state
machine to think that it is safe to send traffic. This results in a Tx
hang on the VF.

Record whether the PF has actually enabled queues for the VF. When
reporting link status, always report link down if the queues aren't
enabled. In this way, the VF driver will never receive a link up
notification until after its queues are enabled.

Signed-off-by: Lukasz Czapnik <lukasz.czapnik@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