You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
11 years ago
..
adm5120 kernel: remove obsolete yaffs options from target configs 11 years ago
adm8668 targets: prepare for supporting normal and initramfs images 11 years ago
amazon target: don't build jffs2 nor images by default 11 years ago
ar7 kernel: update kernel 3.10 to 3.10.24 11 years ago
ar71xx ar71xx: ag71xx: increase calculated max frame length value 11 years ago
at91 at91: fix typo in network file 11 years ago
atheros kernel: update 3.10 to 3.10.17 11 years ago
au1000 au1000: make sysupgrade compatible with all file system types 11 years ago
avr32 kernel: update kernel 3.10 to 3.10.24 11 years ago
bcm53xx bcm53xx: make the l2x0 L2 cache controller work 11 years ago
brcm47xx brcm47xx: fix cpu wait for BCM4706 11 years ago
brcm63xx kernel: update kernel 3.10 to 3.10.24 11 years ago
brcm2708 kernel: update kernel 3.10 to 3.10.24 11 years ago
cns3xxx add uImage image build 11 years ago
cns21xx kernel: update kernel 3.10 to 3.10.24 11 years ago
cobalt cobalt: do not build userland with support for mips1 11 years ago
ep93xx ep93xx: fix kmod-input-keyboard-ep93xx dependencies 11 years ago
gemini build: unify arm target cflags 11 years ago
generic bcm53xx: update the ethernet core hacks 11 years ago
imx6 imx6: refresh patches 11 years ago
iop32x targets: prepare for supporting normal and initramfs images 11 years ago
ixp4xx ixp4xx: upgrade: don't copy extra binaries 11 years ago
kirkwood kernel: update kernel 3.10 to 3.10.24 11 years ago
lantiq kernel: update kernel 3.10 to 3.10.24 11 years ago
malta kernel: update kernel 3.10 to 3.10.24 11 years ago
mcs814x build: unify arm target cflags 11 years ago
mpc52xx build: unify powerpc target cflags 11 years ago
mpc83xx kernel: remove obsolete yaffs options from target configs 11 years ago
mpc85xx kernel: update kernel 3.10 to 3.10.24 11 years ago
mvebu kernel: update kernel 3.10 to 3.10.24 11 years ago
mxs upgrade 3.12 targets to 3.12.5 11 years ago
octeon kernel: update kernel 3.10 to 3.10.24 11 years ago
omap don't fail if there are no dtbs 11 years ago
omap24xx build: unify arm target cflags 11 years ago
orion build: unify arm target cflags 11 years ago
ppc40x kernel: update kernel 3.10 to 3.10.24 11 years ago
ppc44x kernel: update kernel 3.10 to 3.10.24 11 years ago
pxa targets: prepare for supporting normal and initramfs images 11 years ago
ramips ralink: fix tso regression in the ethernet driver 11 years ago
rb532 kernel: remove obsolete yaffs options from target configs 11 years ago
realview kernel: update kernel 3.10 to 3.10.24 11 years ago
sibyte build: unify mips target cflags 11 years ago
sparc kernel: update kernel 3.10 to 3.10.24 11 years ago
sunxi sunxi: add/refresh patches for cubieboard2 11 years ago
uml uml: work around mangled parameter handling for ubd 11 years ago
x86 move most of the x86 image generation options to the main file 11 years ago
x86_64 add x86_64 target support 11 years ago
xburst kernel: update kernel 3.10 to 3.10.24 11 years ago
Makefile Add kernel_nconfig make target 14 years ago