]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: remove unnecessary MAC enable in app loopback
authorYufeng Mo <moyufeng@huawei.com>
Wed, 27 May 2020 00:59:16 +0000 (08:59 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2020 21:56:08 +0000 (14:56 -0700)
commit2150336c8898d8aeefb271f5b8b2a9c4cefaee5b
tree2eea007f35b99cfef43a6cb48e1873e0661cf25f
parent340d5988609651bdaad6d6638d0b28afd1e016f7
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>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c