summaryrefslogtreecommitdiffstats
path: root/sys/net/if_sl.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/if_sl.c')
-rw-r--r--sys/net/if_sl.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/net/if_sl.c b/sys/net/if_sl.c
index b57eb93..2c3a222 100644
--- a/sys/net/if_sl.c
+++ b/sys/net/if_sl.c
@@ -265,11 +265,11 @@ slcreate()
int unit;
struct mbuf *m;
- MALLOC(sc, struct sl_softc *, sizeof(*sc), M_SL, M_WAITOK | M_ZERO);
+ MALLOC(sc, struct sl_softc *, sizeof(*sc), M_SL, M_ZERO);
- m = m_gethdr(M_TRYWAIT, MT_DATA);
+ m = m_gethdr(0, MT_DATA);
if (m != NULL) {
- MCLGET(m, M_TRYWAIT);
+ MCLGET(m, 0);
if ((m->m_flags & M_EXT) == 0) {
m_free(m);
m = NULL;
@@ -792,7 +792,7 @@ sl_btom(sc, len)
{
struct mbuf *m, *newm;
- MGETHDR(m, M_DONTWAIT, MT_DATA);
+ MGETHDR(m, M_NOWAIT, MT_DATA);
if (m == NULL)
return (NULL);
@@ -804,7 +804,7 @@ sl_btom(sc, len)
* guarantees that packet will fit in a cluster.
*/
if (len >= MHLEN) {
- MCLGET(m, M_DONTWAIT);
+ MCLGET(m, M_NOWAIT);
if ((m->m_flags & M_EXT) == 0) {
/*
* we couldn't get a cluster - if memory's this
OpenPOWER on IntegriCloud