aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/tx/if_tx.c
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2012-12-04 09:32:43 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2012-12-04 09:32:43 +0000
commitc6499eccad497913a5025fbde8ae76da70e08043 (patch)
tree30c414dead3eba042cad7b6cbb32d1c9cba96149 /sys/dev/tx/if_tx.c
parent8ca5c3fae7d077e4e6460a251160585709f6e37e (diff)
Mechanically substitute flags from historic mbuf allocator with
malloc(9) flags in sys/dev.
Notes
Notes: svn path=/head/; revision=243857
Diffstat (limited to 'sys/dev/tx/if_tx.c')
-rw-r--r--sys/dev/tx/if_tx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/tx/if_tx.c b/sys/dev/tx/if_tx.c
index c977909222e5..66f54802a4fe 100644
--- a/sys/dev/tx/if_tx.c
+++ b/sys/dev/tx/if_tx.c
@@ -682,7 +682,7 @@ epic_ifstart_locked(struct ifnet * ifp)
* recopy packet to a newly allocated mbuf cluster.
*/
if (error) {
- m = m_defrag(m0, M_DONTWAIT);
+ m = m_defrag(m0, M_NOWAIT);
if (m == NULL) {
m_freem(m0);
ifp->if_oerrors++;
@@ -761,7 +761,7 @@ epic_rx_done(epic_softc_t *sc)
m = buf->mbuf;
/* Try to get an mbuf cluster. */
- buf->mbuf = m_getcl(M_DONTWAIT, MT_DATA, M_PKTHDR);
+ buf->mbuf = m_getcl(M_NOWAIT, MT_DATA, M_PKTHDR);
if (buf->mbuf == NULL) {
buf->mbuf = m;
desc->status = 0x8000;
@@ -1495,7 +1495,7 @@ epic_queue_last_packet(epic_softc_t *sc)
if ((desc->status & 0x8000) || (buf->mbuf != NULL))
return (EBUSY);
- MGETHDR(m0, M_DONTWAIT, MT_DATA);
+ MGETHDR(m0, M_NOWAIT, MT_DATA);
if (m0 == NULL)
return (ENOBUFS);
@@ -1644,7 +1644,7 @@ epic_init_rings(epic_softc_t *sc)
return (EFAULT);
}
- buf->mbuf = m_getcl(M_DONTWAIT, MT_DATA, M_PKTHDR);
+ buf->mbuf = m_getcl(M_NOWAIT, MT_DATA, M_PKTHDR);
if (buf->mbuf == NULL) {
epic_free_rings(sc);
return (ENOBUFS);