Permalink
Browse files

ixgbe: Use MB_DONTWAIT with mbuf operations

* M_NOWAIT is only valid with kmalloc(9)
  • Loading branch information...
1 parent c9a7b74 commit b9f8e1ef8938d35210324bfa784d3fe1fc9aae03 François Tigeot committed Oct 2, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 sys/dev/netif/ixgbe/ixgbe.c
@@ -3847,7 +3847,7 @@ ixgbe_setup_receive_ring(struct rx_ring *rxr)
goto skip_head;
/* First the header */
- rxbuf->m_head = m_gethdr(M_NOWAIT, MT_DATA);
+ rxbuf->m_head = m_gethdr(MB_DONTWAIT, MT_DATA);
if (rxbuf->m_head == NULL) {
error = ENOBUFS;
goto fail;
@@ -3870,7 +3870,7 @@ ixgbe_setup_receive_ring(struct rx_ring *rxr)
skip_head:
/* Now the payload cluster */
- rxbuf->m_pack = m_getjcl(M_NOWAIT, MT_DATA,
+ rxbuf->m_pack = m_getjcl(MB_DONTWAIT, MT_DATA,
M_PKTHDR, adapter->rx_mbuf_sz);
if (rxbuf->m_pack == NULL) {
error = ENOBUFS;

0 comments on commit b9f8e1e

Please sign in to comment.