aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorYufeng Mo <moyufeng@huawei.com>2020-05-27 08:59:16 +0800
committerDavid S. Miller <davem@davemloft.net>2020-05-27 14:56:08 -0700
commit01952206e17ee34b5fe32f211619ac59ec043990 (patch)
tree2eea007f35b99cfef43a6cb48e1873e0661cf25f
parentnet: hns3: change the order of reinitializing RoCE and NIC client during reset (diff)
downloadwireguard-linux-01952206e17ee34b5fe32f211619ac59ec043990.tar.xz
wireguard-linux-01952206e17ee34b5fe32f211619ac59ec043990.zip
net: hns3: remove unnecessary MAC enable in app loopback
Packets will not pass through MAC during app loopback. Therefore, it is meaningless to enable MAC while doing app loopback. This patch removes this unnecessary action. Signed-off-by: Yufeng Mo <moyufeng@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
index 6e1e2cf385c8..7c9f2ba1f272 100644
--- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
+++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
@@ -6583,8 +6583,6 @@ static int hclge_set_app_loopback(struct hclge_dev *hdev, bool en)
/* 2 Then setup the loopback flag */
loop_en = le32_to_cpu(req->txrx_pad_fcs_loop_en);
hnae3_set_bit(loop_en, HCLGE_MAC_APP_LP_B, en ? 1 : 0);
- hnae3_set_bit(loop_en, HCLGE_MAC_TX_EN_B, en ? 1 : 0);
- hnae3_set_bit(loop_en, HCLGE_MAC_RX_EN_B, en ? 1 : 0);
req->txrx_pad_fcs_loop_en = cpu_to_le32(loop_en);