summaryrefslogtreecommitdiff
path: root/cleopatre/linux-2.6.25.10-spc300/drivers
diff options
context:
space:
mode:
authorJérémy Dufour2012-02-16 15:01:45 +0100
committerNicolas Schodet2012-03-30 14:12:38 +0200
commitbdbb9cdd9f0abdab355734f85c86ef51e3498a0a (patch)
tree9dbbb541a6559f4b62f06c2cb27b8853e0f3fc09 /cleopatre/linux-2.6.25.10-spc300/drivers
parent0675f408ec1d730f0bf403bdeafae340b6b589ec (diff)
cleo/linux/driver/net: redefine PKT_BUF_SZ using linux defines
Diffstat (limited to 'cleopatre/linux-2.6.25.10-spc300/drivers')
-rw-r--r--cleopatre/linux-2.6.25.10-spc300/drivers/net/arm/synop3504.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/cleopatre/linux-2.6.25.10-spc300/drivers/net/arm/synop3504.c b/cleopatre/linux-2.6.25.10-spc300/drivers/net/arm/synop3504.c
index fd1967958a..3cef43f8fa 100644
--- a/cleopatre/linux-2.6.25.10-spc300/drivers/net/arm/synop3504.c
+++ b/cleopatre/linux-2.6.25.10-spc300/drivers/net/arm/synop3504.c
@@ -53,13 +53,15 @@
#include <linux/dma-mapping.h>
#include <linux/kthread.h>
#include <net/seq_check.h>
+#include <linux/if_vlan.h>
#include "synop3504_hw.h"
#include "synop3504.h"
-/** Max size of a eth frame (size for rx buffer) must be align on 4 bytes */
-#define PKT_BUF_SZ 1524
+/** Max size of a eth frame with double VLAN (size for rx buffer) must be
+ * align on 4 bytes */
+#define PKT_BUF_SZ ALIGN (ETH_FRAME_LEN + 2 * VLAN_HLEN, 4)
/** NAPI budget */
#define NAPI_BUDGET 64