summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_ix.c
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2012-11-29 13:23:01 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2012-11-29 13:23:01 +0000
commit118d04181b3b740d08e7786f1252801a81ee270d (patch)
treee36ea12258c9e352dbd374e4604c4abaee26612e /sys/dev/pci/if_ix.c
parent95fa593064bf31c14f645e4d72dfbc82e0ecffae (diff)
make ix complile with IX_DEBUG defined, based on the patch from
mxb at alumni ! chalmers ! se. thanks!
Diffstat (limited to 'sys/dev/pci/if_ix.c')
-rw-r--r--sys/dev/pci/if_ix.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/dev/pci/if_ix.c b/sys/dev/pci/if_ix.c
index 333ef1f2201..40561cb23d3 100644
--- a/sys/dev/pci/if_ix.c
+++ b/sys/dev/pci/if_ix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ix.c,v 1.75 2012/11/23 04:34:11 brad Exp $ */
+/* $OpenBSD: if_ix.c,v 1.76 2012/11/29 13:23:00 mikeb Exp $ */
/******************************************************************************
@@ -2518,10 +2518,8 @@ ixgbe_get_buf(struct rx_ring *rxr, int i)
/* needed in any case so prealocate since this one will fail for sure */
mp = MCLGETI(NULL, M_DONTWAIT, &sc->arpcom.ac_if, sc->rx_mbuf_sz);
- if (!mp) {
- sc->mbuf_packet_failed++;
+ if (!mp)
return (ENOBUFS);
- }
if (rxr->hdr_split == FALSE)
goto no_split;
@@ -3515,15 +3513,12 @@ ixgbe_print_hw_stats(struct ix_softc * sc)
{
struct ifnet *ifp = &sc->arpcom.ac_if;;
- printf("%s: mbuf alloc failed %lu, mbuf cluster failed %lu, "
- "missed pkts %llu, rx len errs %llu, crc errs %llu, "
+ printf("%s: missed pkts %llu, rx len errs %llu, crc errs %llu, "
"dropped pkts %lu, watchdog timeouts %ld, "
"XON rx %llu, XON tx %llu, XOFF rx %llu, XOFF tx %llu, "
"total pkts rx %llu, good pkts rx %llu, good pkts tx %llu, "
"tso tx %lu\n",
ifp->if_xname,
- sc->mbuf_alloc_failed,
- sc->mbuf_cluster_failed,
(long long)sc->stats.mpc[0],
(long long)sc->stats.roc + (long long)sc->stats.ruc,
(long long)sc->stats.crcerrs,