net/hinic/base: fix port start during FW hot update
authorXiaoyun Wang <cloud.wangxiaoyun@huawei.com>
Tue, 17 Mar 2020 15:01:12 +0000 (23:01 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:04 +0000 (13:57 +0200)
commit0194313b2df66d9308c79f501d1018a99b32098b
treeca147d61b6e5a5c71e7f57c8b6a9236bcd81c04c
parent9d02f40d650305935f8c407795fec02d8e9f01ec
net/hinic/base: fix port start during FW hot update

When repeatedly hotupdate firmware and start/stop port at the same time,
port start may be failed when cmdq reinit failed at the FW active phase,
so if cmdq fails, then reinit the cmdq when port start.

Fixes: d9ce1917941c ("net/hinic/base: add hardware operation")
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_cmdq.h
drivers/net/hinic/base/hinic_pmd_nicio.c