From: Hongbo Zheng Date: Thu, 14 Jan 2021 13:33:33 +0000 (+0800) Subject: net/hns3: use new opcode for clearing hardware resource X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e5d179078b611035395317c80a9285c8a2de18a2;p=dpdk.git 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: 223d9eceaeee ("net/hns3: clear residual hardware configurations on init") Cc: stable@dpdk.org Signed-off-by: Hongbo Zheng Signed-off-by: Lijun Ou --- diff --git a/drivers/net/hns3/hns3_cmd.h b/drivers/net/hns3/hns3_cmd.h index 194c3a731b..e40293b309 100644 --- a/drivers/net/hns3/hns3_cmd.h +++ b/drivers/net/hns3/hns3_cmd.h @@ -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,