Module Name: src
Committed By: jdolecek
Date: Tue Jul 14 12:15:16 UTC 2020
Modified Files:
src/sys/dev/pci: if_bnx.c
Log Message:
remove call to bnx_alloc_pkts() from bnx_init_tx_chain() - it can
be called from softint context via bnx_watchdog(), and bnx_alloc_pkts()
dmamap allocation can't run in (soft)interrupt context
To generate a diff of this commit:
cvs rdiff -u -r1.97 -r1.98 src/sys/dev/pci/if_bnx.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_bnx.c
diff -u src/sys/dev/pci/if_bnx.c:1.97 src/sys/dev/pci/if_bnx.c:1.98
--- src/sys/dev/pci/if_bnx.c:1.97 Tue Jul 14 10:26:34 2020
+++ src/sys/dev/pci/if_bnx.c Tue Jul 14 12:15:16 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: if_bnx.c,v 1.97 2020/07/14 10:26:34 jdolecek Exp $ */
+/* $NetBSD: if_bnx.c,v 1.98 2020/07/14 12:15:16 jdolecek Exp $ */
/* $OpenBSD: if_bnx.c,v 1.101 2013/03/28 17:21:44 brad Exp $ */
/*-
@@ -35,7 +35,7 @@
#if 0
__FBSDID("$FreeBSD: src/sys/dev/bce/if_bce.c,v 1.3 2006/04/13 14:12:26 ru Exp $");
#endif
-__KERNEL_RCSID(0, "$NetBSD: if_bnx.c,v 1.97 2020/07/14 10:26:34 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bnx.c,v 1.98 2020/07/14 12:15:16 jdolecek Exp $");
/*
* The following controllers are supported by this driver:
@@ -4170,9 +4170,6 @@ bnx_init_tx_chain(struct bnx_softc *sc)
DBPRINT(sc, BNX_VERBOSE_RESET, "Entering %s()\n", __func__);
- /* Force an allocation of some dmamaps for tx up front */
- bnx_alloc_pkts(NULL, sc);
-
/* Set the initial TX producer/consumer indices. */
sc->tx_prod = 0;
sc->tx_cons = 0;