ar71xx: ag71xx: compute the RX buffer size from the maximum frame size
authorGabor Juhos <juhosg@openwrt.org>
Tue, 17 Dec 2013 16:27:46 +0000 (16:27 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Tue, 17 Dec 2013 16:27:46 +0000 (16:27 +0000)
commit47e730db765f81b3b30186ac81615b4c128e93a2
treec8a3cbb21477d263f9e0123037153ba397e7a7b4
parent5202ffb3964e0656a5ada4f557385e5b0551537e
ar71xx: ag71xx: compute the RX buffer size from the maximum frame size

Currently, the AG71XX_RX_PKT_SIZE value limits the received
frame size to 1514/1516 bytes with/without a VLAN header
respectively. However the hardware limit is controlled by
the value the AG71XX_REG_MAC_MFL register which contains
the value of the max_frame_len field.

Compute the RX buffer size from the max_frame_len field
to get rid of the 1514/1516 byte limitation. Also remove
the unused AG71XX_RX_PKT_SIZE definition.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 39121
target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx.h
target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c