Skip to content

Commit

Permalink
net/hns3: use new opcode for clearing hardware resource
Browse files Browse the repository at this point in the history
[ upstream commit e5d1790 ]

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

Fixes: 223d9ec ("net/hns3: clear residual hardware configurations on init")

Signed-off-by: Hongbo Zheng <zhenghongbo3@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
  • Loading branch information
Hongbo Zheng authored and bluca committed Feb 4, 2021
1 parent c74bd44 commit 61f236f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/hns3/hns3_cmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 61f236f

Please sign in to comment.