]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Add mac loopback selftest support in hns3 driver
authorYunsheng Lin <linyunsheng@huawei.com>
Fri, 20 Oct 2017 02:19:22 +0000 (10:19 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Oct 2017 01:16:26 +0000 (02:16 +0100)
commitb598c1a72a4cc4be2bed18acf4705d662a191519
tree301bae11cba4a628b3c40ccefe597087d8509fb5
parentbc4f4ce5617f5df6251942416369e47f212a8536
net: hns3: Add mac loopback selftest support in hns3 driver

This patch adds mac loopback selftest support for ethtool cmd
by checking if a transmitted packet can be received correctly
when mac loopback is enabled.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_ethtool.c