wifipineapple-openwrt/target/linux/ar71xx
Gabor Juhos 95b66c3111 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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39219 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-11 11:15:30 +00:00
..
base-files ar71xx: add userspace support for WD My Net N750 2013-12-16 07:16:43 +00:00
files ar71xx: ag71xx: increase calculated max frame length value 2014-01-11 11:15:30 +00:00
generic ar71xx: enable images for WD My Net N750 2013-12-17 22:14:13 +00:00
image ar71xx: enable images for WD My Net N750 2013-12-17 22:14:13 +00:00
mikrotik ar71xx: add initial support for the Mikrotik RB911G/RB912UAG boards 2013-12-16 18:08:51 +00:00
nand ar71xx: move WNDR4300 profile to the nand subtarget 2013-11-04 18:37:09 +00:00
patches-3.10 ar71xx: add a helper function for external LNA GPIO setup 2014-01-10 09:37:57 +00:00
Makefile kernel: update kernel 3.10 to 3.10.24 2013-12-15 19:16:30 +00:00
base-files.mk ar71xx: drop procd_init console hack 2013-06-21 16:53:11 +00:00
config-3.10 ar71xx: add initial support for the Mikrotik RB911G/RB912UAG boards 2013-12-16 18:08:51 +00:00
modules.mk ar71xx: always enable hw ecc support for the ar934x-nfc module 2013-11-01 18:33:18 +00:00