Deleted Added
full compact
smc90cx6.c (110106) smc90cx6.c (111119)
1/* $NetBSD: smc90cx6.c,v 1.38 2001/07/07 15:57:53 thorpej Exp $ */
1/* $NetBSD: smc90cx6.c,v 1.38 2001/07/07 15:57:53 thorpej Exp $ */
2/* $FreeBSD: head/sys/dev/cm/smc90cx6.c 110106 2003-01-30 15:55:02Z fjoe $ */
2/* $FreeBSD: head/sys/dev/cm/smc90cx6.c 111119 2003-02-19 05:47:46Z imp $ */
3
4/*-
5 * Copyright (c) 1994, 1995, 1998 The NetBSD Foundation, Inc.
6 * All rights reserved.
7 *
8 * This code is derived from software contributed to The NetBSD Foundation
9 * by Ignatios Souvatzis.
10 *

--- 612 unchanged lines hidden (view full) ---

623
624 ifp = &sc->sc_arccom.ac_if;
625
626 s = splimp();
627 buffer = sc->sc_rx_act ^ 1;
628 splx(s);
629
630 /* Allocate header mbuf */
3
4/*-
5 * Copyright (c) 1994, 1995, 1998 The NetBSD Foundation, Inc.
6 * All rights reserved.
7 *
8 * This code is derived from software contributed to The NetBSD Foundation
9 * by Ignatios Souvatzis.
10 *

--- 612 unchanged lines hidden (view full) ---

623
624 ifp = &sc->sc_arccom.ac_if;
625
626 s = splimp();
627 buffer = sc->sc_rx_act ^ 1;
628 splx(s);
629
630 /* Allocate header mbuf */
631 MGETHDR(m, M_NOWAIT, MT_DATA);
631 MGETHDR(m, M_DONTWAIT, MT_DATA);
632
633 if (m == 0) {
634 /*
635 * in case s.th. goes wrong with mem, drop it
636 * to make sure the receiver can be started again
637 * count it as input error (we dont have any other
638 * detectable)
639 */

--- 20 unchanged lines hidden (view full) ---

660 }
661
662 /*
663 * first +2 bytes for align fixup below
664 * second +2 bytes are for src/dst addresses
665 */
666 if ((len + 2 + 2) > MHLEN) {
667 /* attach an mbuf cluster */
632
633 if (m == 0) {
634 /*
635 * in case s.th. goes wrong with mem, drop it
636 * to make sure the receiver can be started again
637 * count it as input error (we dont have any other
638 * detectable)
639 */

--- 20 unchanged lines hidden (view full) ---

660 }
661
662 /*
663 * first +2 bytes for align fixup below
664 * second +2 bytes are for src/dst addresses
665 */
666 if ((len + 2 + 2) > MHLEN) {
667 /* attach an mbuf cluster */
668 MCLGET(m, M_NOWAIT);
668 MCLGET(m, M_DONTWAIT);
669
670 /* Insist on getting a cluster */
671 if ((m->m_flags & M_EXT) == 0) {
672 ifp->if_ierrors++;
673 goto cleanup;
674 }
675 }
676

--- 376 unchanged lines hidden ---
669
670 /* Insist on getting a cluster */
671 if ((m->m_flags & M_EXT) == 0) {
672 ifp->if_ierrors++;
673 goto cleanup;
674 }
675 }
676

--- 376 unchanged lines hidden ---