Skip to content

Commit

Permalink
net/hns3: remove read when enabling TM QCN error event
Browse files Browse the repository at this point in the history
[ upstream commit 3903c05 ]

According to the HW manual, the read operation is unnecessary when
enabling TM QCN error event, so remove it.

Fixes: f53a793 ("net/hns3: add more hardware error types")

Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
  • Loading branch information
fengchengwen authored and steevenlee committed Jun 8, 2021
1 parent 29da2a8 commit 5d84f2b
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions drivers/net/hns3/hns3_intr.c
Expand Up @@ -1345,14 +1345,7 @@ enable_tm_err_intr(struct hns3_adapter *hns, bool en)
}

/* configure TM QCN hw errors */
hns3_cmd_setup_basic_desc(&desc, HNS3_OPC_TM_QCN_MEM_INT_CFG, true);
ret = hns3_cmd_send(hw, &desc, 1);
if (ret) {
hns3_err(hw, "fail to read TM QCN CFG status, ret = %d\n", ret);
return ret;
}

hns3_cmd_reuse_desc(&desc, false);
hns3_cmd_setup_basic_desc(&desc, HNS3_OPC_TM_QCN_MEM_INT_CFG, false);
if (en)
desc.data[1] = rte_cpu_to_le_32(HNS3_TM_QCN_MEM_ERR_INT_EN);

Expand Down

0 comments on commit 5d84f2b

Please sign in to comment.