net: hns3: Add configure for mac minimal frame size
authorJian Shen <shenjian15@huawei.com>
Fri, 6 Jul 2018 10:28:00 +0000 (11:28 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Jul 2018 02:13:06 +0000 (11:13 +0900)
commit8fc7346c84a4471d21389a9ead1bbc2420d65ea0
treedb0956715b0b0af21627f12cd2731c5593def894
parentead5bd4d35c0a14d5ce1474177718c678dff5205
net: hns3: Add configure for mac minimal frame size

When change the mtu, the minimal frame size of mac will be set
to zero, it is incorrect. This patch fixes it by set it to the
default value.

Signed-off-by: Jian Shen <shenjian15@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/hns3pf/hclge_cmd.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c