use correct macros and frame size in ag71xx
authorMatteo Croce <rootkit85@yahoo.it>
Sat, 14 May 2011 23:10:06 +0000 (23:10 +0000)
committerMatteo Croce <rootkit85@yahoo.it>
Sat, 14 May 2011 23:10:06 +0000 (23:10 +0000)
SVN-Revision: 26890

target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h

index 3bcb89609d63bf5622ae319bb2018ef4d4617625..342d121860bb3c969061b2890da9685e91fb9471 100644 (file)
@@ -25,6 +25,7 @@
 #include <linux/platform_device.h>
 #include <linux/ethtool.h>
 #include <linux/etherdevice.h>
+#include <linux/if_vlan.h>
 #include <linux/phy.h>
 #include <linux/skbuff.h>
 #include <linux/dma-mapping.h>
@@ -35,8 +36,6 @@
 #include <asm/mach-ar71xx/ar71xx.h>
 #include <asm/mach-ar71xx/platform.h>
 
-#define ETH_FCS_LEN    4
-
 #define AG71XX_DRV_NAME                "ag71xx"
 #define AG71XX_DRV_VERSION     "0.5.35"
 
@@ -54,7 +53,7 @@
 #define AG71XX_TX_MTU_LEN      1540
 #define AG71XX_RX_PKT_RESERVE  64
 #define AG71XX_RX_PKT_SIZE     \
-       (AG71XX_RX_PKT_RESERVE + ETH_HLEN + ETH_FRAME_LEN + ETH_FCS_LEN)
+       (AG71XX_RX_PKT_RESERVE + ETH_FRAME_LEN + ETH_FCS_LEN + VLAN_HLEN)
 
 #define AG71XX_TX_RING_SIZE    64
 #define AG71XX_TX_THRES_STOP   (AG71XX_TX_RING_SIZE - 4)