mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Accept large ethernet frames to support VLANs (natsemi.c, against 2.4.17)
@ 2002-02-23 22:36 Mark ZZZ Smith
  0 siblings, 0 replies; only message in thread
From: Mark ZZZ Smith @ 2002-02-23 22:36 UTC (permalink / raw)
  To: linux-kernel

Hi All,

Here is my first shot at a kernel patch. It enables
accepting ethernet frames larger than 1518 bytes on
the natsemi DP83815 based ethernet cards (eg Netgear
FA311/Fa312), to support 802.1Q VLANs.

It seems to work for me, although I've only tested it
between two linux boxes running VLANs (both with
Netgear FA312 cards), rather than into a VLAN capable
ethernet switch, as I don't have one at home.

For any comments, suggestions or criticisms, please CC
me, as I'm not subscribed to the mailing list.

Thanks,
Mark.

--- linux.2.4.17/drivers/net/natsemi.c  Sat Dec 22
15:38:15 2001
+++ linux.2.4.17.mrs/drivers/net/natsemi.c      Sat
Feb 23 19:04:46 2002
@@ -102,6 +102,11 @@
        version 1.0.13:
                * ETHTOOL_[GS]EEPROM support (Tim
Hockin)
 
+       version 1.0.13+MRS-VLAN 
+               * Switch on RxAcceptLong to support
big ethernet frames for
+               802.1Q VLANs
+               Mark R. Smith,
markzzzsmith@yahoo.com.au
+
        TODO:
        * big endian support with CFG:BEM instead of
cpu_to_le32
        * support for an external PHY
@@ -109,8 +114,8 @@
 */
 
 #define DRV_NAME       "natsemi"
-#define DRV_VERSION    "1.07+LK1.0.13"
-#define DRV_RELDATE    "Oct 19, 2001"
+#define DRV_VERSION    "1.07+LK1.0.13+MRS-VLAN"
+#define DRV_RELDATE    "Feb 23, 2002"
 
 /* Updated to recommendations in pci-skeleton v2.03.
*/
 
@@ -1162,8 +1167,9 @@
 
        /* DRTH 0x10: start copying to memory if 128
bytes are in the fifo
         * MXDMA 0: up to 256 byte bursts
+        * RxAcceptLong: accept long frames for 802.1Q
VLANs
         */
-       np->rx_config = RxMxdma_256 | 0x20;
+       np->rx_config = RxMxdma_256 | 0x20 |
RxAcceptLong; 
        writel(np->rx_config, ioaddr + RxConfig);
 
        /* Disable PME:


http://movies.yahoo.com.au - Yahoo! Movies
- Vote for your nominees in our online Oscars pool.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-02-23 22:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-23 22:36 [PATCH] Accept large ethernet frames to support VLANs (natsemi.c, against 2.4.17) Mark ZZZ Smith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®