mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Mark ZZZ Smith" <markzzzsmith@yahoo.com.au>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] Accept large ethernet frames to support VLANs (natsemi.c, against 2.4.17)
Date: Sun, 24 Feb 2002 09:36:32 +1100 (EST)	[thread overview]
Message-ID: <20020223223632.17818.qmail@web21305.mail.yahoo.com> (raw)

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.

                 reply	other threads:[~2002-02-23 22:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020223223632.17818.qmail@web21305.mail.yahoo.com \
    --to=markzzzsmith@yahoo.com.au \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®