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 kernel: remove obsolete yaffs options from target configs 2013-12-16 07:51:21 +00:00
adm8668 targets: prepare for supporting normal and initramfs images 2013-06-27 19:58:31 +00:00
amazon target: don't build jffs2 nor images by default 2013-06-05 20:58:59 +00:00
ar7 kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
ar71xx ar71xx: ag71xx: increase calculated max frame length value 2014-01-11 11:15:30 +00:00
at91 at91: fix typo in network file 2013-11-17 17:14:32 +00:00
atheros kernel: update 3.10 to 3.10.17 2013-10-23 12:51:05 +00:00
au1000 au1000: make sysupgrade compatible with all file system types 2013-11-07 12:46:16 +00:00
avr32 kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
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 kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
brcm2708 kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
cns3xxx add uImage image build 2013-11-10 09:57:07 +00:00
cns21xx kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
cobalt cobalt: do not build userland with support for mips1 2013-10-13 22:10:57 +00:00
ep93xx ep93xx: fix kmod-input-keyboard-ep93xx dependencies 2013-10-01 22:39:28 +00:00
gemini build: unify arm target cflags 2013-09-26 17:53:20 +00:00
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 targets: prepare for supporting normal and initramfs images 2013-06-27 19:58:31 +00:00
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 kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
malta kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
mcs814x build: unify arm target cflags 2013-09-26 17:53:20 +00:00
mpc52xx build: unify powerpc target cflags 2013-09-26 17:53:28 +00:00
mpc83xx kernel: remove obsolete yaffs options from target configs 2013-12-16 07:51:21 +00:00
mpc85xx kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
mvebu kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
mxs upgrade 3.12 targets to 3.12.5 2013-12-14 17:37:14 +00:00
octeon kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
omap don't fail if there are no dtbs 2013-12-20 05:50:24 +00:00
omap24xx build: unify arm target cflags 2013-09-26 17:53:20 +00:00
orion build: unify arm target cflags 2013-09-26 17:53:20 +00:00
ppc40x kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
ppc44x kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
pxa targets: prepare for supporting normal and initramfs images 2013-06-27 19:58:31 +00:00
ramips ralink: fix tso regression in the ethernet driver 2013-12-27 21:14:49 +00:00
rb532 kernel: remove obsolete yaffs options from target configs 2013-12-16 07:51:21 +00:00
realview kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
sibyte build: unify mips target cflags 2013-09-26 17:53:14 +00:00
sparc kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
sunxi sunxi: add/refresh patches for cubieboard2 2014-01-10 10:47:41 +00:00
uml uml: work around mangled parameter handling for ubd 2013-09-24 13:36:42 +00:00
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 kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
Makefile Add kernel_nconfig make target 2010-08-06 21:36:35 +00:00