net/hinic/base: fix PF firmware hot-active problem
authorXiaoyun Wang <cloud.wangxiaoyun@huawei.com>
Fri, 10 Apr 2020 09:21:45 +0000 (17:21 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:07 +0000 (13:57 +0200)
commit036b61d85e4d1c45ac497a367c765ad463d2debf
tree4d7434fa4203ebd7e10228c4052f6124faf6bf98
parentf51ecf2fe0013fd209b848894fa718fecdf8190c
net/hinic/base: fix PF firmware hot-active problem

When FW is hotactive which means updating the FW but not needs
to reboot OS, FW returns HINIC_DEV_BUSY_ACTIVE_FW for pf driver
because firmware is being reinitialized, at which point the cmdq
initialization that relies on the fw channel will fail, so driver
should reinit the cmdq when port start.

Fixes: 0194313b2df6 ("net/hinic/base: fix port start during FW hot update")
Cc: stable@dpdk.org
Signed-off-by: Xiaoyun Wang <cloud.wangxiaoyun@huawei.com>
drivers/net/hinic/base/hinic_pmd_cmdq.c
drivers/net/hinic/base/hinic_pmd_hwdev.c
drivers/net/hinic/base/hinic_pmd_mgmt.c
drivers/net/hinic/base/hinic_pmd_mgmt.h
drivers/net/hinic/base/hinic_pmd_nicio.c
drivers/net/hinic/hinic_pmd_ethdev.c