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)
commitf1088176b503ab69a16c45e449a30459e8883798
tree145ed86bb462b0e94e50e84d4bcaa8fb4a23811d
parent1b92904ab275471c455665f0651f8d80860894c8
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