Openwrt/target/linux
Gabor Juhos 30ebad2dee ar71xx: ag71xx: increase calculated max frame length value
The r39147 commit introduces a regression: at lease on some routers
with ar8216 switch large packets get lost if 802.1q tagged port is
used on the interface connected to the aforementioned switch.

The r39147 changes code in the way so interface is set to accept
packets no longer than max ethernet frame length for a given mtu.

Unfortunately ar8216 has a feature: it sends two additional bytes
as a packet header and those this header needs to be added to the
max frame length. Otherwise long enough packets get lost.

The problem only manuifests itself if interface is used in vlan
tagged mode. If interface is untagged then ar8216's header fits
into space used by 802.1q tag and not packets are lost.

Include two additional bytes in the max frame length calculation
to fix the issue.

This patch is tested and works with Trendnet TEW-632BRP.

Signed-off-by Nikolay Martynov <mar.kolya@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/4656/
[juhosg:
  - simplify the patch to include the additional bytes of the
    switch header unconditionally,
  - change subject and update commit message]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39219
2014-01-11 11:15:30 +00:00
..
adm5120
adm8668
amazon
ar7
ar71xx ar71xx: ag71xx: increase calculated max frame length value 2014-01-11 11:15:30 +00:00
at91
atheros
au1000
avr32
bcm53xx bcm53xx: make the l2x0 L2 cache controller work 2014-01-04 23:46:44 +00:00
brcm47xx brcm47xx: fix cpu wait for BCM4706 2013-12-26 23:30:10 +00:00
brcm63xx
brcm2708
cns3xxx
cns21xx
cobalt
ep93xx
gemini
generic bcm53xx: update the ethernet core hacks 2014-01-04 18:27:09 +00:00
imx6 imx6: refresh patches 2013-12-19 02:03:26 +00:00
iop32x
ixp4xx ixp4xx: upgrade: don't copy extra binaries 2013-12-30 23:49:25 +00:00
kirkwood kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
lantiq
malta
mcs814x
mpc52xx
mpc83xx
mpc85xx
mvebu
mxs
octeon
omap don't fail if there are no dtbs 2013-12-20 05:50:24 +00:00
omap24xx
orion
ppc40x
ppc44x
pxa
ramips ralink: fix tso regression in the ethernet driver 2013-12-27 21:14:49 +00:00
rb532
realview
sibyte
sparc
sunxi sunxi: add/refresh patches for cubieboard2 2014-01-10 10:47:41 +00:00
uml
x86 move most of the x86 image generation options to the main file 2014-01-07 10:18:55 +00:00
x86_64 add x86_64 target support 2014-01-07 12:23:35 +00:00
xburst
Makefile