Deleted Added
full compact
smc90cx6.c (108470) smc90cx6.c (109623)
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 108470 2002-12-30 21:18:15Z schweikh $ */
2/* $FreeBSD: head/sys/dev/cm/smc90cx6.c 109623 2003-01-21 08:56:16Z alfred $ */
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 *

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

639
640 ifp = &sc->sc_arccom.ac_if;
641
642 s = splimp();
643 buffer = sc->sc_rx_act ^ 1;
644 splx(s);
645
646 /* 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 *

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

639
640 ifp = &sc->sc_arccom.ac_if;
641
642 s = splimp();
643 buffer = sc->sc_rx_act ^ 1;
644 splx(s);
645
646 /* Allocate header mbuf */
647 MGETHDR(m, M_DONTWAIT, MT_DATA);
647 MGETHDR(m, M_NOWAIT, MT_DATA);
648
649 if (m == 0) {
650 /*
651 * in case s.th. goes wrong with mem, drop it
652 * to make sure the receiver can be started again
653 * count it as input error (we dont have any other
654 * detectable)
655 */

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

676 }
677
678 /*
679 * first +2 bytes for align fixup below
680 * second +2 bytes are for src/dst addresses
681 */
682 if ((len + 2 + 2) > MHLEN) {
683 /* attach an mbuf cluster */
648
649 if (m == 0) {
650 /*
651 * in case s.th. goes wrong with mem, drop it
652 * to make sure the receiver can be started again
653 * count it as input error (we dont have any other
654 * detectable)
655 */

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

676 }
677
678 /*
679 * first +2 bytes for align fixup below
680 * second +2 bytes are for src/dst addresses
681 */
682 if ((len + 2 + 2) > MHLEN) {
683 /* attach an mbuf cluster */
684 MCLGET(m, M_DONTWAIT);
684 MCLGET(m, M_NOWAIT);
685
686 /* Insist on getting a cluster */
687 if ((m->m_flags & M_EXT) == 0) {
688 ifp->if_ierrors++;
689 goto cleanup;
690 }
691 }
692

--- 375 unchanged lines hidden ---
685
686 /* Insist on getting a cluster */
687 if ((m->m_flags & M_EXT) == 0) {
688 ifp->if_ierrors++;
689 goto cleanup;
690 }
691 }
692

--- 375 unchanged lines hidden ---