]> git.baikalelectronics.ru Git - kernel.git/commit
hinic: fix sending pkts from core while self testing
authorLuo bin <luobin9@huawei.com>
Fri, 18 Sep 2020 04:09:38 +0000 (12:09 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Sep 2020 21:11:01 +0000 (14:11 -0700)
commitd90e19f9f113453918bdbdf082b302243fb6370b
treef4a2c4e4b482128c39b293f00b38f5aa39ebbae3
parent02331682d5d72c6f3baf80bd6d70a86d86d255c0
hinic: fix sending pkts from core while self testing

Call netif_tx_disable firstly before starting doing self-test to
avoid sending packet from networking core and self-test packet
simultaneously which may cause self-test failure or hw abnormal.

Fixes: 767206181f11 ("hinic: add self test support")
Signed-off-by: Luo bin <luobin9@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/huawei/hinic/hinic_ethtool.c
drivers/net/ethernet/huawei/hinic/hinic_tx.c