]> 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)
commita744bc32b9315dd08b4a213cb86c07bcb4988e5f
tree301bae11cba4a628b3c40ccefe597087d8509fb5
parent7f0bf93f44989536c1e9c8bfff8386edb3e79fbf
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