]> asedeno.scripts.mit.edu Git - linux.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)
commit23c0112246b454e408fb0579b3f9089353d4d327
tree2bdd234ee8bbf34520bf6f18c54b3312de45fb58
parentcbe66bfee6a0b781a7b334003f6d48a92a601164
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