]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Fix warning message and call stack during rmmod i40e driver
authorKaren Sornek <karen.sornek@intel.com>
Wed, 28 Apr 2021 08:19:41 +0000 (10:19 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 18 Nov 2021 00:20:50 +0000 (16:20 -0800)
commit17defff715bf94c0a02ec34ceff67577f4d7b7bd
treeff70677fe13d848b2966a3d062d0415f26255308
parenta6b2ee7b4c2d07b256b093cafd2c68e509ba109e
i40e: Fix warning message and call stack during rmmod i40e driver

Restore part of reset functionality used when reset is called
from the VF to reset itself. Without this fix warning message
is displayed when VF is being removed via sysfs.

Fix the crash of the VF during reset by ensuring
that the PF receives the reset message successfully.
Refactor code to use one function instead of two.

Fixes: 71cdee64d681 ("i40e: implement virtual device interface")
Signed-off-by: Grzegorz Szczurek <grzegorzx.szczurek@intel.com>
Signed-off-by: Karen Sornek <karen.sornek@intel.com>
Tested-by: Tony Brelinski <tony.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c