]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commitc39c4d98dc658f5d44b96982333f3611d9cc2be7
tree301bae11cba4a628b3c40ccefe597087d8509fb5
parentd43e5aca8780e4084cad0969c71669cf99dc6030
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