]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Prevent unintended multiple chain resets
authorDave Ertman <david.m.ertman@intel.com>
Wed, 13 Feb 2019 18:51:08 +0000 (10:51 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 25 Mar 2019 17:12:21 +0000 (10:12 -0700)
commit785f4283294f806e6a093b312e4e8bf1df017d44
tree9dba3b17190f0d6772c8e8baca61824f91082ddd
parentd056a45450392877c564ea8f98449646e90c2310
ice: Prevent unintended multiple chain resets

In the current implementation of ice_reset_subtask, if multiple reset
types are set in the pf->state, the most intrusive one is meant to be
performed only, but the bits requesting the other types are not being
cleared. This would lead to another reset being performed the next time
the service task is scheduled.

Change the flow of ice_reset_subtask so that all reset request bits in
pf->state are cleared, and we still perform the most intrusive of the
resets requested.

Signed-off-by: Dave Ertman <david.m.ertman@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