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 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 */ |
543 if (!(MCLGET(m, M_NOWAIT))) { |
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 --- |