net/hns3: fix taskqueue pair reset command
authorChengchang Tang <tangchengchang@huawei.com>
Mon, 30 Aug 2021 08:26:50 +0000 (16:26 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 9 Sep 2021 17:35:40 +0000 (19:35 +0200)
This new taskqueue pair reset command is used incorrectly, resulting in
the new command not taking effect.

This patch fixes the incorrect use.

Fixes: 6911e7c22c61 ("net/hns3: fix long task queue pairs reset time")
Cc: stable@dpdk.org
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_rxtx.c

index 0f222b3..481872e 100644 (file)
@@ -697,7 +697,7 @@ hns3_reset_rcb_cmd(struct hns3_hw *hw, uint8_t *reset_status)
 
        hns3_cmd_setup_basic_desc(&desc, HNS3_OPC_CFG_RST_TRIGGER, false);
        req = (struct hns3_reset_cmd *)desc.data;
-       hns3_set_bit(req->mac_func_reset, HNS3_CFG_RESET_RCB_B, 1);
+       hns3_set_bit(req->fun_reset_rcb, HNS3_CFG_RESET_RCB_B, 1);
 
        /*
         * The start qid should be the global qid of the first tqp of the