]> git.baikalelectronics.ru Git - kernel.git/commit
iavf: Fix deadlock occurrence during resetting VF interface
authorJedrzej Jagielski <jedrzej.jagielski@intel.com>
Tue, 7 Sep 2021 09:25:40 +0000 (09:25 +0000)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 19 Nov 2021 17:26:41 +0000 (09:26 -0800)
commit649bcdc47402ab3ea42eec7486caa766fe969139
tree8d62fc6c36363660486ed8074188f726ea553bbd
parentb927ac5800d428d2577b8b6eeeebb60491217ea1
iavf: Fix deadlock occurrence during resetting VF interface

System hangs if close the interface is called from the kernel during
the interface is in resetting state.
During resetting operation the link is closing but kernel didn't
know it and it tried to close this interface again what sometimes
led to deadlock.
Inform kernel about current state of interface
and turn off the flag IFF_UP when interface is closing until reset
is finished.
Previously it was most likely to hang the system when kernel
(network manager) tried to close the interface in the same time
when interface was in resetting state because of deadlock.

Fixes: ab4bf9f8848f ("i40vf: don't stop me now")
Signed-off-by: Jaroslaw Gawin <jaroslawx.gawin@intel.com>
Signed-off-by: Jedrzej Jagielski <jedrzej.jagielski@intel.com>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/iavf/iavf_main.c