]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3de862b1ffd92e75f08a680e0a62f25a1c7b2e9c
treedb0956715b0b0af21627f12cd2731c5593def894
parent7bd63b9b670a2394bc1ca91c05dffa0c004dac24
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