]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Check all VFs for MDD activity, don't disable
authorMitch Williams <mitch.a.williams@intel.com>
Tue, 16 Apr 2019 17:30:45 +0000 (10:30 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 29 May 2019 09:50:46 +0000 (02:50 -0700)
commitc015d658a24b626d4f09323a542acf395bf2d53c
tree2bdd234ee8bbf34520bf6f18c54b3312de45fb58
parent6025415c920cc4b9f004ceaead5be97c18bea1d4
ice: Check all VFs for MDD activity, don't disable

Don't use the mdd_detected variable as an exit condition for this loop;
the first VF to NOT have an MDD event will cause the loop to terminate.

Instead just look at all of the VFs, but don't disable them. This
prevents proper release of resources if the VFs are rebooted or the VF
driver reloaded. Instead, just log a message and call out repeat
offenders.

To make it clear what we are doing, use a differently-named variable in
the loop.

Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@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_main.c