openwrtv4/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx
Gabor Juhos 35d601f974 ar71xx: ag71xx: calculate max frame len register value from the MTU
Set the MAX_FRAME_LEN register to zero in ag71xx_hw_init()
and write the correct value into that from the ag71xx_open()
and ag71xx_fast_reset() functions.

Also recalculate the RX buffer size based on the actual
maximum frame length value to optimize memory allocation.
Additionaly, disallow to change the MTU value while the
interface it running.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39147
2013-12-20 11:41:20 +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: use mdio bus name in ar7240_probe messages 2013-12-17 15:12:52 +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: calculate max frame len register value from the MTU 2013-12-20 11:41:20 +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