net/hns3: use new opcode for clearing hardware resource

The original command opcode '0x700A' may cause firmware error,
so '0x700A' is deserted, now use '0x700B' to replace it.

Fixes: 223d9eceae ("net/hns3: clear residual hardware configurations on init")
Cc: stable@dpdk.org

Signed-off-by: Hongbo Zheng <zhenghongbo3@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
This commit is contained in:
Hongbo Zheng 2021-01-14 21:33:33 +08:00 committed by Ferruh Yigit
parent de63cf0d90
commit e5d179078b

View File

@ -203,7 +203,7 @@ enum hns3_opcode_type {
HNS3_OPC_FD_COUNTER_OP = 0x1205,
/* Clear hardware state command */
HNS3_OPC_CLEAR_HW_STATE = 0x700A,
HNS3_OPC_CLEAR_HW_STATE = 0x700B,
/* SFP command */
HNS3_OPC_SFP_GET_SPEED = 0x7104,