net/hns3: use new opcode for clearing hardware resource
authorHongbo Zheng <zhenghongbo3@huawei.com>
Thu, 14 Jan 2021 13:33:33 +0000 (21:33 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 19 Jan 2021 02:30:32 +0000 (03:30 +0100)
The original command opcode '0x700A' may cause firmware error,
so '0x700A' is deserted, now use '0x700B' to replace it.

Fixes: 223d9eceaeee ("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>
drivers/net/hns3/hns3_cmd.h

index 194c3a7..e40293b 100644 (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,