diff options
author | Andrew Lunn <andrew@lunn.ch> | 2017-07-30 19:36:05 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-30 19:26:01 -0700 |
commit | fbbeefdd21049fcf9437c809da3828b210577f36 (patch) | |
tree | dd870eece57bef8d256ea8fbc9d746697130e0e5 /net/ipv6/exthdrs_core.c | |
parent | 9558df3a8251f1c636eaf3d2222b6da2eb5d1086 (diff) |
net: fec: Allow reception of frames bigger than 1522 bytes
The FEC Receive Control Register has a 14 bit field indicating the
longest frame that may be received. It is being set to 1522. Frames
longer than this are discarded, but counted as being in error.
When using DSA, frames from the switch has an additional header,
either 4 or 8 bytes if a Marvell switch is used. Thus a full MTU frame
of 1522 bytes received by the switch on a port becomes 1530 bytes when
passed to the host via the FEC interface.
Change the maximum receive size to 2048 - 64, where 64 is the maximum
rx_alignment applied on the receive buffer for AVB capable FEC
cores. Use this value also for the maximum receive buffer size. The
driver is already allocating a receive SKB of 2048 bytes, so this
change should not have any significant effects.
Tested on imx51, imx6, vf610.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/exthdrs_core.c')
0 files changed, 0 insertions, 0 deletions