ar71xx: ag71xx: store descriptor packet length mask in ag71xx struct
authorGabor Juhos <juhosg@openwrt.org>
Fri, 20 Dec 2013 11:41:16 +0000 (11:41 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Fri, 20 Dec 2013 11:41:16 +0000 (11:41 +0000)
commit9be1e508f98abad12d099b26e2087c5e95fe2d64
treed670d216a9f38407e32fab44d3058e5d18c57dc2
parent2b22d909fdc8e8c08b2209536f11db07972fa11a
ar71xx: ag71xx: store descriptor packet length mask in ag71xx struct

The currently used bitmask is not correct for all SoCs.
Introduce a new field in struct ag71xx and store the
bitmask in that. Use the current value for now, it will
be adjusted for each SoCs in further patches.

Aslo use the new field directly in the ag71xx_rx_packets
and ag71xx_hard_start_xmit() functions and remove the
ag71xx_desc_pktlen() helper.

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