diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2012-12-04 09:32:43 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2012-12-04 09:32:43 +0000 |
commit | c6499eccad497913a5025fbde8ae76da70e08043 (patch) | |
tree | 30c414dead3eba042cad7b6cbb32d1c9cba96149 /sys/dev/le/lance.c | |
parent | 8ca5c3fae7d077e4e6460a251160585709f6e37e (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/le/lance.c')
-rw-r--r-- | sys/dev/le/lance.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/le/lance.c b/sys/dev/le/lance.c index 8700aa2cd436..e2cc30e23716 100644 --- a/sys/dev/le/lance.c +++ b/sys/dev/le/lance.c @@ -394,7 +394,7 @@ lance_get(struct lance_softc *sc, int boff, int totlen) return (NULL); } - MGETHDR(m0, M_DONTWAIT, MT_DATA); + MGETHDR(m0, M_NOWAIT, MT_DATA); if (m0 == NULL) return (NULL); m0->m_pkthdr.rcvif = ifp; @@ -404,7 +404,7 @@ lance_get(struct lance_softc *sc, int boff, int totlen) while (totlen > 0) { if (totlen >= MINCLSIZE) { - MCLGET(m, M_DONTWAIT); + MCLGET(m, M_NOWAIT); if ((m->m_flags & M_EXT) == 0) goto bad; len = MCLBYTES; @@ -423,7 +423,7 @@ lance_get(struct lance_softc *sc, int boff, int totlen) totlen -= len; if (totlen > 0) { - MGET(newm, M_DONTWAIT, MT_DATA); + MGET(newm, M_NOWAIT, MT_DATA); if (newm == 0) goto bad; len = MLEN; |