net/hns3: fix FLR reset
authorChunsong Feng <fengchunsong@huawei.com>
Fri, 25 Oct 2019 12:37:05 +0000 (20:37 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 25 Oct 2019 17:23:23 +0000 (19:23 +0200)
commitcea37e513329fde070abb8b1f655836f550e54d3
tree3e6da36fa6e3d82785056da2b4081185c6c4938f
parent1a028f2beab8582f814552c61a54b84eaad5f108
net/hns3: fix FLR reset

PF FLR resets the PCIe ECAM space of all VFs under the PF
and does not automatically recover. Therefore, the VF driver
needs to restore the ECAM configuration, including
bus_master_en, msix_enable to avoid FLR reset failure.

Fixes: 2790c6464725 ("net/hns3: support device reset")

Signed-off-by: Chunsong Feng <fengchunsong@huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
drivers/net/hns3/hns3_cmd.c
drivers/net/hns3/hns3_ethdev.c
drivers/net/hns3/hns3_ethdev_vf.c
drivers/net/hns3/hns3_intr.c