net: hns3: up/down netdev in hclge module when setting mtu
authorYunsheng Lin <linyunsheng@huawei.com>
Sun, 18 Nov 2018 03:19:14 +0000 (03:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Nov 2018 05:57:29 +0000 (21:57 -0800)
commitcdca4c485d0c6467211f7181710122100552b4b9
treeda753102a0e8d902c8631f7aedade639fcceef38
parent818f167587f402aedcf406ba57d0caff739dcad8
net: hns3: up/down netdev in hclge module when setting mtu

Currently netdev is down in enet module, and it is before
mtu range checking in hclge module, which may be cause
netdev being down unnecessarily.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Jian Shen <shenjian15@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_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c