tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: wm(4): enable jumbo frames on i82574{L,IT}



Thomas E. Spanjaard wrote:
> Attached is a patch to enable jumbo frames on Intel's i82574L and
> i8257IT wm(4) parts.

Oops, complete patch attached.
-- 
        Thomas E. Spanjaard
        tgen%netphreax.net@localhost
        tgen%deepbone.net@localhost
Index: sys/dev/pci/if_wm.c
===================================================================
RCS file: /cvsroot/src/sys/dev/pci/if_wm.c,v
retrieving revision 1.174
diff -u -r1.174 if_wm.c
--- sys/dev/pci/if_wm.c 7 Apr 2009 18:42:30 -0000       1.174
+++ sys/dev/pci/if_wm.c 28 Oct 2009 19:46:51 -0000
@@ -1564,8 +1564,7 @@
        IFQ_SET_MAXLEN(&ifp->if_snd, max(WM_IFQUEUELEN, IFQ_MAXLEN));
        IFQ_SET_READY(&ifp->if_snd);
 
-       if (sc->sc_type != WM_T_82573 && sc->sc_type != WM_T_82574 &&
-           sc->sc_type != WM_T_ICH8)
+       if (sc->sc_type != WM_T_82573 && sc->sc_type != WM_T_ICH8)
                sc->sc_ethercom.ec_capabilities |= ETHERCAP_JUMBO_MTU;
 
        /*
@@ -3389,8 +3388,7 @@
            | RCTL_MO(sc->sc_mchash_type);
 
        /* 82573 doesn't support jumbo frame */
-       if (sc->sc_type != WM_T_82573 && sc->sc_type != WM_T_82574 &&
-           sc->sc_type != WM_T_ICH8)
+       if (sc->sc_type != WM_T_82573 && sc->sc_type != WM_T_ICH8)
                sc->sc_rctl |= RCTL_LPE;
 
        if (MCLBYTES == 2048) {

Attachment: signature.asc
Description: OpenPGP digital signature



Home | Main Index | Thread Index | Old Index