net: hns: bug fix about the overflow of mss
authorDaode Huang <huangdaode@hisilicon.com>
Tue, 22 Mar 2016 08:06:31 +0000 (16:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Mar 2016 19:45:59 +0000 (15:45 -0400)
commit0b51b1dc7920bb722ee74dab4bb3b8799779e9b8
tree9ecb7e79a9a9caf4a648100c344e199d75d5eee9
parent211b1384030d3b94f962573f9bc5e5726bf79197
net: hns: bug fix about the overflow of mss

When set MTU to the minimum value 68, there are increasing number
of error packets occur, which is caused by the overflowed value of
mss. This patch fix the bug.

Signed-off-by: Daode Huang <huangdaode@hisilicon.com>
Signed-off-by: Yisen Zhuang <Yisen.Zhuang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_enet.c