summaryrefslogtreecommitdiff
path: root/lib/nodemask.c
diff options
context:
space:
mode:
authorFuyun Liang <liangfuyun1@huawei.com>2018-01-05 13:18:19 +0300
committerDavid S. Miller <davem@davemloft.net>2018-01-08 22:06:19 +0300
commit2866ccb2b8f8df48c73f2fcc76454cac6c7cc557 (patch)
tree700d87a17dfffebf89be6fa2a075b7e18ed1fee2 /lib/nodemask.c
parent40173a2ec70c6386f5b342dfd612c26453a3f6b4 (diff)
downloadlinux-2866ccb2b8f8df48c73f2fcc76454cac6c7cc557.tar.xz
net: hns3: fix for setting MTU
When setting MTU, actually what we do is configuring the max frame size for the hardware. ETH_HLEN、ETH_FCS_LEN and VLAN_HLEN must need to be considered. And the frame size which is less than the default value should not be set to the hardware. Because in the hardware, the the max frame size not only controls the RX packet size, but also controls the TX packet size. the RX packets whose size are greater than the setting value will be dropped. This patch fixes the bug setting a error max frame size to hardware. Fixes: 46a3df9f9718 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support") Signed-off-by: Fuyun Liang <liangfuyun1@huawei.com> Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/nodemask.c')
0 files changed, 0 insertions, 0 deletions