Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ixgbe: Use MB_DONTWAIT with mbuf operations

* M_NOWAIT is only valid with kmalloc(9)
  • Loading branch information...
commit b9f8e1ef8938d35210324bfa784d3fe1fc9aae03 1 parent c9a7b74
François Tigeot authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 sys/dev/netif/ixgbe/ixgbe.c
View
4 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;
Please sign in to comment.
Something went wrong with that request. Please try again.