net/qede: fix VF reload
authorManish Chopra <manishc@marvell.com>
Thu, 6 Feb 2020 20:01:45 +0000 (12:01 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 19 Feb 2020 12:51:06 +0000 (13:51 +0100)
commitf44ca48c81e823edda67189220a4bf7659cc22c1
tree0b1d4a1b42c939c2033dae50fbc08d25bcf9e1e8
parent819d0d1d57f17aa40321648e99a50b49adc7bdf6
net/qede: fix VF reload

On ungraceful termination of DPDK application, PMD VF driver
fails to re-load due to PF seeing the VF in unexpected state
during VF acquisition handshake.

This patch fixes it by allowing VF to request the PF for soft
FLR during the load in such cases so that it can get cleanly
re-loaded.

Fixes: 2ea6f76aff40 ("qede: add core driver")
Cc: stable@dpdk.org
Signed-off-by: Manish Chopra <manishc@marvell.com>
Signed-off-by: Shahed Shaikh <shshaikh@marvell.com>
Signed-off-by: Rasesh Mody <rmody@marvell.com>
Acked-by: Rasesh Mody <rmody@marvell.com>
drivers/net/qede/base/ecore_dev.c
drivers/net/qede/base/ecore_dev_api.h
drivers/net/qede/base/ecore_iov_api.h
drivers/net/qede/base/ecore_sriov.c
drivers/net/qede/base/ecore_vf.c
drivers/net/qede/base/ecore_vf.h
drivers/net/qede/base/ecore_vf_api.h
drivers/net/qede/base/ecore_vfpf_if.h
drivers/net/qede/base/mcp_public.h
drivers/net/qede/qede_main.c