[Midnightbsd-cvs] src [8920] trunk/sys/dev/xen/netfront/netfront.c: switch to malloc flags
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Mon Sep 26 18:56:51 EDT 2016
Revision: 8920
http://svnweb.midnightbsd.org/src/?rev=8920
Author: laffer1
Date: 2016-09-26 18:56:50 -0400 (Mon, 26 Sep 2016)
Log Message:
-----------
switch to malloc flags
Modified Paths:
--------------
trunk/sys/dev/xen/netfront/netfront.c
Modified: trunk/sys/dev/xen/netfront/netfront.c
===================================================================
--- trunk/sys/dev/xen/netfront/netfront.c 2016-09-26 22:54:31 UTC (rev 8919)
+++ trunk/sys/dev/xen/netfront/netfront.c 2016-09-26 22:56:50 UTC (rev 8920)
@@ -819,13 +819,13 @@
*/
batch_target = sc->rx_target - (req_prod - sc->rx.rsp_cons);
for (i = mbufq_len(&sc->xn_rx_batch); i < batch_target; i++) {
- MGETHDR(m_new, M_DONTWAIT, MT_DATA);
+ MGETHDR(m_new, M_NOWAIT, MT_DATA);
if (m_new == NULL) {
printf("%s: MGETHDR failed\n", __func__);
goto no_mbuf;
}
- m_cljget(m_new, M_DONTWAIT, MJUMPAGESIZE);
+ m_cljget(m_new, M_NOWAIT, MJUMPAGESIZE);
if ((m_new->m_flags & M_EXT) == 0) {
printf("%s: m_cljget failed\n", __func__);
m_freem(m_new);
@@ -1506,7 +1506,7 @@
* the Linux network stack.
*/
if (nfrags > sc->maxfrags) {
- m = m_defrag(m_head, M_DONTWAIT);
+ m = m_defrag(m_head, M_NOWAIT);
if (!m) {
/*
* Defrag failed, so free the mbuf and
More information about the Midnightbsd-cvs
mailing list