diff options
author | Grygorii Strashko <grygorii.strashko@ti.com> | 2017-11-15 09:46:35 -0600 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-16 10:49:00 +0900 |
commit | 9421c90150470512bd5d0fc49eaa108a0b195358 (patch) | |
tree | 43de83ada741d5f5acdd5bffe66d51669373fd62 /fs/jbd2/commit.c | |
parent | 6ab6a0dd228220bd00d745f8eb8ca497e522f4b6 (diff) |
net: ethernet: ti: cpsw: fix min eth packet size
Now CPSW driver configures min eth packet size to 60 octets (ETH_ZLEN)
which works in most of cases, but when port VLAN is configured on some
switch port, it also can be configured to force all egress packets to be
VLAN untagged. And in this case, CPSW driver will pad small packets to 60
octets, but final packet size on port egress can became less than 60 octets
due to VLAN tag removal and packet will be dropped.
Hence, fix it by accounting VLAN header in CPSW min eth packet size. While
here, use proper defines for CPSW_MAX_PACKET_SIZE also, instead of open
coding.
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions