openwrtv3/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx
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
..
ag71xx.h ar71xx: ag71xx: store descriptor packet length mask in ag71xx struct 2013-12-20 11:41:16 +00:00
ag71xx_ar7240.c ar71xx: ag71xx: fix max frame length setup of the built-in switches 2013-12-20 11:41:22 +00:00
ag71xx_ar8216.c ar71xx: merge files-3.2 to files 2012-02-10 08:19:31 +00:00
ag71xx_debugfs.c ag71xx: ag71xx: use device name for debugfs entry 2013-12-17 15:12:50 +00:00
ag71xx_ethtool.c ar71xx: merge files-3.2 to files 2012-02-10 08:19:31 +00:00
ag71xx_main.c ar71xx: ag71xx: increase calculated max frame length value 2014-01-11 11:15:30 +00:00
ag71xx_mdio.c ar71xx: implement callback in mdio reset 2013-12-17 22:14:10 +00:00
ag71xx_phy.c ar71xx: ag71xx: fix a race involving netdev registration 2013-11-08 08:17:54 +00:00
Kconfig ar71xx: merge files-3.2 to files 2012-02-10 08:19:31 +00:00
Makefile ar71xx: merge files-3.2 to files 2012-02-10 08:19:31 +00:00