Deleted Added
full compact
smc90cx6.c (271849) smc90cx6.c (276750)
1/* $NetBSD: smc90cx6.c,v 1.38 2001/07/07 15:57:53 thorpej Exp $ */
2
3#include <sys/cdefs.h>
1/* $NetBSD: smc90cx6.c,v 1.38 2001/07/07 15:57:53 thorpej Exp $ */
2
3#include <sys/cdefs.h>
4__FBSDID("$FreeBSD: head/sys/dev/cm/smc90cx6.c 271849 2014-09-19 03:51:26Z glebius $");
4__FBSDID("$FreeBSD: head/sys/dev/cm/smc90cx6.c 276750 2015-01-06 12:59:37Z rwatson $");
5
6/*-
7 * Copyright (c) 1994, 1995, 1998 The NetBSD Foundation, Inc.
8 * All rights reserved.
9 *
10 * This code is derived from software contributed to The NetBSD Foundation
11 * by Ignatios Souvatzis.
12 *

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

535 }
536
537 /*
538 * first +2 bytes for align fixup below
539 * second +2 bytes are for src/dst addresses
540 */
541 if ((len + 2 + 2) > MHLEN) {
542 /* attach an mbuf cluster */
5
6/*-
7 * Copyright (c) 1994, 1995, 1998 The NetBSD Foundation, Inc.
8 * All rights reserved.
9 *
10 * This code is derived from software contributed to The NetBSD Foundation
11 * by Ignatios Souvatzis.
12 *

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

535 }
536
537 /*
538 * first +2 bytes for align fixup below
539 * second +2 bytes are for src/dst addresses
540 */
541 if ((len + 2 + 2) > MHLEN) {
542 /* attach an mbuf cluster */
543 MCLGET(m, M_NOWAIT);
544
545 /* Insist on getting a cluster */
546 if ((m->m_flags & M_EXT) == 0) {
543 if (!(MCLGET(m, M_NOWAIT))) {
547 if_inc_counter(ifp, IFCOUNTER_IERRORS, 1);
548 goto cleanup;
549 }
550 }
551
552 if (m == 0) {
553 if_inc_counter(ifp, IFCOUNTER_IERRORS, 1);
554 goto cleanup;

--- 373 unchanged lines hidden ---
544 if_inc_counter(ifp, IFCOUNTER_IERRORS, 1);
545 goto cleanup;
546 }
547 }
548
549 if (m == 0) {
550 if_inc_counter(ifp, IFCOUNTER_IERRORS, 1);
551 goto cleanup;

--- 373 unchanged lines hidden ---