net/hns3: fix mailbox wait time
authorHuisong Li <lihuisong@huawei.com>
Mon, 17 Jan 2022 02:43:01 +0000 (10:43 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 26 Jan 2022 14:52:09 +0000 (15:52 +0100)
commit5a2b22b40f3052a8898194fd8c235440ad1d85d8
tree55d6515db8d0f2e3a6be966eb86c916aadb04a22
parent96c33cfb06cf59b785439058190060bde120f030
net/hns3: fix mailbox wait time

The mailbox wait time can be specified at runtime. But the variable that
controls this time are not initialized when the variable isn't designated
or is specified as an invalid value, which will fail to initialize device
in the case where no device is bound to initialize the device.

Fixes: 2fc3e696a7f1 ("net/hns3: add runtime config for mailbox limit time")
Cc: stable@dpdk.org
Signed-off-by: Huisong Li <lihuisong@huawei.com>
drivers/net/hns3/hns3_common.c