]> asedeno.scripts.mit.edu Git - linux.git/commit
net: hns3: prevent change MTU when resetting
authorHuazhong Tan <tanhuazhong@huawei.com>
Thu, 4 Apr 2019 08:17:57 +0000 (16:17 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Apr 2019 17:20:39 +0000 (10:20 -0700)
commit6ff7ed8049ebf932643eee8680bb1d75691fa801
tree537d9923b01447d5a08f50eab2c520b3f11b244a
parentc4e401e5a934bb0798ebbba98e08dab129695eff
net: hns3: prevent change MTU when resetting

When resetting, the changing of MTU is not allowed, so this patch
adds checking reset status in hns3_nic_change_mtu() to do that.

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c