summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/net/if_cdce.c
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2012-12-04 09:32:43 +0000
committerglebius <glebius@FreeBSD.org>2012-12-04 09:32:43 +0000
commita69aaa772119d359e38760dd0e931bed9afb88bf (patch)
tree30c414dead3eba042cad7b6cbb32d1c9cba96149 /sys/dev/usb/net/if_cdce.c
parent75a08a975ae27f7cf7af6db9f5ee6e87136be40d (diff)
downloadFreeBSD-src-a69aaa772119d359e38760dd0e931bed9afb88bf.zip
FreeBSD-src-a69aaa772119d359e38760dd0e931bed9afb88bf.tar.gz
Mechanically substitute flags from historic mbuf allocator with
malloc(9) flags in sys/dev.
Diffstat (limited to 'sys/dev/usb/net/if_cdce.c')
-rw-r--r--sys/dev/usb/net/if_cdce.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/net/if_cdce.c b/sys/dev/usb/net/if_cdce.c
index 780efe8..6e0ce97 100644
--- a/sys/dev/usb/net/if_cdce.c
+++ b/sys/dev/usb/net/if_cdce.c
@@ -753,7 +753,7 @@ tr_setup:
}
}
if (m->m_len != m->m_pkthdr.len) {
- mt = m_defrag(m, M_DONTWAIT);
+ mt = m_defrag(m, M_NOWAIT);
if (mt == NULL) {
m_freem(m);
ifp->if_oerrors++;
@@ -1369,9 +1369,9 @@ cdce_ncm_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error)
/* silently ignore this frame */
continue;
} else if (temp > (int)(MHLEN - ETHER_ALIGN)) {
- m = m_getcl(M_DONTWAIT, MT_DATA, M_PKTHDR);
+ m = m_getcl(M_NOWAIT, MT_DATA, M_PKTHDR);
} else {
- m = m_gethdr(M_DONTWAIT, MT_DATA);
+ m = m_gethdr(M_NOWAIT, MT_DATA);
}
DPRINTFN(16, "frame %u, offset = %u, length = %u \n",
OpenPOWER on IntegriCloud