net/hns3: fix an unreasonable memset
Fixes: bba636698316 ("net/hns3: support Rx/Tx and related operations") Cc: stable@dpdk.org Signed-off-by: Huisong Li <lihuisong@huawei.com> Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
This commit is contained in:
parent
67d0103469
commit
ea1ef0b937
@ -773,7 +773,7 @@ hns3vf_reset_all_tqps(struct hns3_hw *hw)
|
||||
int ret;
|
||||
uint16_t i;
|
||||
|
||||
memset(msg_data, 0, sizeof(uint16_t));
|
||||
memset(msg_data, 0, sizeof(msg_data));
|
||||
ret = hns3_send_mbx_msg(hw, HNS3_MBX_QUEUE_RESET, 0, msg_data,
|
||||
sizeof(msg_data), true, &reset_status,
|
||||
sizeof(reset_status));
|
||||
|
Loading…
x
Reference in New Issue
Block a user