diff options
-rw-r--r-- | sys/dev/xen/netfront/netfront.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/sys/dev/xen/netfront/netfront.c b/sys/dev/xen/netfront/netfront.c index de80bb9..f65e29c 100644 --- a/sys/dev/xen/netfront/netfront.c +++ b/sys/dev/xen/netfront/netfront.c @@ -815,17 +815,8 @@ network_alloc_rx_buffers(struct netfront_info *sc) */ 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_NOWAIT, MT_DATA); + m_new = m_getjcl(M_NOWAIT, MT_DATA, M_PKTHDR, MJUMPAGESIZE); if (m_new == NULL) { - printf("%s: MGETHDR failed\n", __func__); - goto no_mbuf; - } - - if (m_cljget(m_new, M_NOWAIT, MJUMPAGESIZE) == NULL) { - printf("%s: m_cljget failed\n", __func__); - m_freem(m_new); - -no_mbuf: if (i != 0) goto refill; /* |