diff options
author | 2018-08-27 09:59:30 +0800 | |
---|---|---|
committer | 2018-08-29 18:08:20 -0700 | |
commit | 455c4401fe7a538facaffb35b906ce19f1ece474 (patch) | |
tree | 1d0e8330fda26f8dfe73346cec46f01f159bdbe9 /tools/lib/traceevent/plugin_function.c | |
parent | net: hns: add the code for cleaning pkt in chip (diff) | |
download | linux-dev-455c4401fe7a538facaffb35b906ce19f1ece474.tar.xz linux-dev-455c4401fe7a538facaffb35b906ce19f1ece474.zip |
net: hns: add netif_carrier_off before change speed and duplex
If there are packets in hardware when changing the speed
or duplex, it may cause hardware hang up.
This patch adds netif_carrier_off before change speed and
duplex in ethtool_ops.set_link_ksettings, and adds
netif_carrier_on after complete the change.
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/lib/traceevent/plugin_function.c')
0 files changed, 0 insertions, 0 deletions