]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Fix kernel oops when i40e driver removes VF's
authorEryk Rybak <eryk.roch.rybak@intel.com>
Thu, 18 Feb 2021 11:15:26 +0000 (11:15 +0000)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 25 Mar 2021 19:49:35 +0000 (12:49 -0700)
commitafae4ce091a8d6064342a1d1dae0b30e68a61937
treea04f511c6bbcfe2279a7b7bde3b7859c56c96e01
parentc3b3c85009c6ed1b42082af76272d6472491a2e3
i40e: Fix kernel oops when i40e driver removes VF's

Fix the reason of kernel oops when i40e driver removed VFs.
Added new __I40E_VFS_RELEASING state to signalize releasing
process by PF, that it makes possible to exit of reset VF procedure.
Without this patch, it is possible to suspend the VFs reset by
releasing VFs resources procedure. Retrying the reset after the
timeout works on the freed VF memory causing a kernel oops.

Fixes: 6a37dc2b62fa ("i40e: ensure reset occurs when disabling VF")
Signed-off-by: Eryk Rybak <eryk.roch.rybak@intel.com>
Signed-off-by: Grzegorz Szczurek <grzegorzx.szczurek@intel.com>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/i40e/i40e.h
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c