aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/tx
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2003-02-19 05:47:46 +0000
committerWarner Losh <imp@FreeBSD.org>2003-02-19 05:47:46 +0000
commita163d034fadcfb4a25ca34a2ba5f491c47b6ff69 (patch)
tree9e20e320fe15ae4bf68f8335fcf9d3e71d3b3614 /sys/dev/tx
parent8f3e32c2b6b9f392e096f096653596f55f2134ae (diff)
Notes
Diffstat (limited to 'sys/dev/tx')
-rw-r--r--sys/dev/tx/if_tx.c8
-rw-r--r--sys/dev/tx/if_txvar.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/tx/if_tx.c b/sys/dev/tx/if_tx.c
index 5a6871934a78..189a69ef8906 100644
--- a/sys/dev/tx/if_tx.c
+++ b/sys/dev/tx/if_tx.c
@@ -577,7 +577,7 @@ epic_ifstart(ifp)
/* If packet was more than EPIC_MAX_FRAGS parts, */
/* recopy packet to new allocated mbuf cluster */
if( NULL != m ){
- m = m_getcl(M_NOWAIT, MT_DATA, M_PKTHDR);
+ m = m_getcl(M_DONTWAIT, MT_DATA, M_PKTHDR);
if( NULL == m ){
m_freem(m0);
ifp->if_oerrors++;
@@ -652,7 +652,7 @@ epic_rx_done(sc)
m = buf->mbuf;
/* Try to get mbuf cluster */
- buf->mbuf = m_getcl(M_NOWAIT, MT_DATA, M_PKTHDR);
+ buf->mbuf = m_getcl(M_DONTWAIT, MT_DATA, M_PKTHDR);
if( NULL == buf->mbuf ) {
buf->mbuf = m;
desc->status = 0x8000;
@@ -1415,7 +1415,7 @@ epic_queue_last_packet(sc)
if ((desc->status & 0x8000) || (buf->mbuf != NULL))
return (EBUSY);
- MGETHDR(m0, M_NOWAIT, MT_DATA);
+ MGETHDR(m0, M_DONTWAIT, MT_DATA);
if (NULL == m0)
return (ENOBUFS);
@@ -1556,7 +1556,7 @@ epic_init_rings(sc)
return EFAULT;
}
- buf->mbuf = m_getcl(M_NOWAIT, MT_DATA, M_PKTHDR);
+ buf->mbuf = m_getcl(M_DONTWAIT, MT_DATA, M_PKTHDR);
if( NULL == buf->mbuf ) {
epic_free_rings(sc);
return ENOBUFS;
diff --git a/sys/dev/tx/if_txvar.h b/sys/dev/tx/if_txvar.h
index 465727fc7075..16dc36d9f5b7 100644
--- a/sys/dev/tx/if_txvar.h
+++ b/sys/dev/tx/if_txvar.h
@@ -134,9 +134,9 @@ struct epic_type {
/* Macro to get either mbuf cluster or nothing */
#define EPIC_MGETCLUSTER(m) \
- { MGETHDR((m),M_NOWAIT,MT_DATA); \
+ { MGETHDR((m),M_DONTWAIT,MT_DATA); \
if (m) { \
- MCLGET((m),M_NOWAIT); \
+ MCLGET((m),M_DONTWAIT); \
if( 0 == ((m)->m_flags & M_EXT) ) { \
m_freem(m); \
(m) = NULL; \