Module Name: src Committed By: mlelstv Date: Sun Nov 10 11:45:48 UTC 2024
Modified Files: src/sys/dev/pci: if_rge.c Log Message: Add MBUFTRACE To generate a diff of this commit: cvs rdiff -u -r1.32 -r1.33 src/sys/dev/pci/if_rge.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_rge.c diff -u src/sys/dev/pci/if_rge.c:1.32 src/sys/dev/pci/if_rge.c:1.33 --- src/sys/dev/pci/if_rge.c:1.32 Sat Jun 29 12:11:12 2024 +++ src/sys/dev/pci/if_rge.c Sun Nov 10 11:45:48 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: if_rge.c,v 1.32 2024/06/29 12:11:12 riastradh Exp $ */ +/* $NetBSD: if_rge.c,v 1.33 2024/11/10 11:45:48 mlelstv Exp $ */ /* $OpenBSD: if_rge.c,v 1.9 2020/12/12 11:48:53 jan Exp $ */ /* @@ -18,7 +18,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_rge.c,v 1.32 2024/06/29 12:11:12 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_rge.c,v 1.33 2024/11/10 11:45:48 mlelstv Exp $"); #if defined(_KERNEL_OPT) #include "opt_net_mpsafe.h" @@ -1135,6 +1135,7 @@ rge_newbuf(struct rge_softc *sc, int idx m = MCLGETL(NULL, M_DONTWAIT, RGE_JUMBO_FRAMELEN); if (m == NULL) return (ENOBUFS); + MCLAIM(m, &sc->sc_ec.ec_rx_mowner); m->m_len = m->m_pkthdr.len = RGE_JUMBO_FRAMELEN;