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)
commit3a3b311e3881172fc8e019b6508f04bc40c92d9d
treeff70677fe13d848b2966a3d062d0415f26255308
parent9e0a603cb7dce2a19d98116d42de84b6db26d716
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: 5c3c48ac6bf5 ("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