summaryrefslogtreecommitdiffstats
path: root/drivers/net/sis900.h
diff options
context:
space:
mode:
authorDaniele Venzano <venza@brownhat.org>2006-04-17 10:28:06 +0200
committerJeff Garzik <jeff@garzik.org>2006-04-20 17:29:43 -0400
commitd269a69fbbbb7ddd2081af7a768feac754b8357a (patch)
tree339e4e580ef66551a3f090bf6f6481755db1b59a /drivers/net/sis900.h
parent5ad05b990062c1b7a797f0ca293f6bdde62a50d9 (diff)
downloadlinux-d269a69fbbbb7ddd2081af7a768feac754b8357a.tar.gz
linux-d269a69fbbbb7ddd2081af7a768feac754b8357a.tar.bz2
linux-d269a69fbbbb7ddd2081af7a768feac754b8357a.zip
[PATCH] Add VLAN (802.1q) support to sis900 driver
The attached patch adds support for VLANs to the sis900 driver and bumps the version number. It is based on an old (2003) patch for the 2.4 series by Hamid Hashemi Golpayegani. It applies on top of 2.6.16(.5). I have one report that it works and behaves as intended. Please review and consider for inclusion. Signed-off-by: Daniele Venzano <venza@brownhat.org> -- Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/sis900.h')
-rw-r--r--drivers/net/sis900.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/net/sis900.h b/drivers/net/sis900.h
index 50323941e3c0..4834e3a15694 100644
--- a/drivers/net/sis900.h
+++ b/drivers/net/sis900.h
@@ -310,8 +310,14 @@ enum sis630_revision_id {
#define CRC_SIZE 4
#define MAC_HEADER_SIZE 14
-#define TX_BUF_SIZE 1536
-#define RX_BUF_SIZE 1536
+#if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE)
+#define MAX_FRAME_SIZE (1518 + 4)
+#else
+#define MAX_FRAME_SIZE 1518
+#endif /* CONFIG_VLAN_802_1Q */
+
+#define TX_BUF_SIZE (MAX_FRAME_SIZE+18)
+#define RX_BUF_SIZE (MAX_FRAME_SIZE+18)
#define NUM_TX_DESC 16 /* Number of Tx descriptor registers. */
#define NUM_RX_DESC 16 /* Number of Rx descriptor registers. */