[PATCH] fix VLAN support for ns83820

From: Stephan von Krawczynski
Date: Wed Jan 07 2004 - 03:40:18 EST


Hello,

attached patch fixes the usual vlan issue with too small buffers in driver ns83820.

Regards,
Stephan

--- linux/drivers/net/ns83820.c-orig 2004-01-07 10:57:23.000000000 +0100
+++ linux/drivers/net/ns83820.c 2004-01-07 10:58:23.000000000 +0100
@@ -141,7 +141,7 @@
#define NR_TX_DESC 128

/* not tunable */
-#define REAL_RX_BUF_SIZE (RX_BUF_SIZE + 14) /* rx/tx mac addr + type */
+#define REAL_RX_BUF_SIZE (RX_BUF_SIZE + 14 + 4) /* rx/tx mac addr + type + vlan */

#define MIN_TX_DESC_FREE 8

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/