]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Fix ping exited problem when doing lp selftest
authorYunsheng Lin <linyunsheng@huawei.com>
Mon, 3 Sep 2018 10:21:51 +0000 (11:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Sep 2018 05:04:45 +0000 (22:04 -0700)
commit72064b7b873d25e543a0eb4e6d68f5a976135429
tree8d8e62f057629f642e035f279645fed64cb39f67
parentb4c3b89d33f1da40ae316202956c1850d3429120
net: hns3: Fix ping exited problem when doing lp selftest

When ping is runnig and user executes the loopback selftest, the
ping cmd will stop and exit.

This patch fixes it by using the hns3_nic_net_open/stop to offline
the netdev when doing loopback selftest.

Fixes: b598c1a72a4c ("net: hns3: Add mac loopback selftest support in hns3 driver")
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c