]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
i40e: Fix failed opcode appearing if handling messages from VF
authorKaren Sornek <karen.sornek@intel.com>
Fri, 14 May 2021 09:43:13 +0000 (11:43 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Thu, 3 Feb 2022 17:57:59 +0000 (18:57 +0100)
commitd5abfd3090e37cfeaac4c6f74a619806628e2eb1
tree90a65c2e7c6652e4ddfa62704a557f19615ef7d8
parentd6f724756dc33d0d8ffa1b1197814b0c1f3271b2
i40e: Fix failed opcode appearing if handling messages from VF

BugLink: https://bugs.launchpad.net/bugs/1957007
commit 61125b8be85dfbc7e9c7fe1cc6c6d631ab603516 upstream.

Fix failed operation code appearing if handling messages from VF.
Implemented by waiting for VF appropriate state if request starts
handle while VF reset.
Without this patch the message handling request while VF is in
a reset state ends with error -5 (I40E_ERR_PARAM).

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.h