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)
commit121c26751ee7e4f6495843824e70e5026318eaa8
tree145ed86bb462b0e94e50e84d4bcaa8fb4a23811d
parentd9ffbf2d506e20f05daf403d9da7a61b8fb8cf03
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39144 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx.h
target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c