Skip to content

Commit 0195220

Browse files
Yufeng Modavem330
authored andcommitted
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 <[email protected]> Signed-off-by: Huazhong Tan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 60c800c commit 0195220

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6583,8 +6583,6 @@ static int hclge_set_app_loopback(struct hclge_dev *hdev, bool en)
65836583
/* 2 Then setup the loopback flag */
65846584
loop_en = le32_to_cpu(req->txrx_pad_fcs_loop_en);
65856585
hnae3_set_bit(loop_en, HCLGE_MAC_APP_LP_B, en ? 1 : 0);
6586-
hnae3_set_bit(loop_en, HCLGE_MAC_TX_EN_B, en ? 1 : 0);
6587-
hnae3_set_bit(loop_en, HCLGE_MAC_RX_EN_B, en ? 1 : 0);
65886586

65896587
req->txrx_pad_fcs_loop_en = cpu_to_le32(loop_en);
65906588

0 commit comments

Comments
 (0)