Module Name: src Committed By: mlelstv Date: Sun Nov 10 11:46:25 UTC 2024
Modified Files: src/sys/dev/pci: if_wm.c Log Message: Add MBUFTRACE To generate a diff of this commit: cvs rdiff -u -r1.800 -r1.801 src/sys/dev/pci/if_wm.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/if_wm.c diff -u src/sys/dev/pci/if_wm.c:1.800 src/sys/dev/pci/if_wm.c:1.801 --- src/sys/dev/pci/if_wm.c:1.800 Fri Jul 5 04:31:51 2024 +++ src/sys/dev/pci/if_wm.c Sun Nov 10 11:46:24 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: if_wm.c,v 1.800 2024/07/05 04:31:51 rin Exp $ */ +/* $NetBSD: if_wm.c,v 1.801 2024/11/10 11:46:24 mlelstv Exp $ */ /* * Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc. @@ -82,7 +82,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.800 2024/07/05 04:31:51 rin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.801 2024/11/10 11:46:24 mlelstv Exp $"); #ifdef _KERNEL_OPT #include "opt_if_wm.h" @@ -5949,6 +5949,7 @@ wm_add_rxbuf(struct wm_rxqueue *rxq, int MGETHDR(m, M_DONTWAIT, MT_DATA); if (m == NULL) return ENOBUFS; + MCLAIM(m, &sc->sc_ethercom.ec_rx_mowner); MCLGET(m, M_DONTWAIT); if ((m->m_flags & M_EXT) == 0) {