summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2019-02-26 03:09:51 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2019-02-26 03:09:51 +0000
commit2f46e8027061a2063fac0d8dcf7e50e572f7484c (patch)
treede82104b2ced2c65766be7a41243fdcdcdfbe2b5 /sys/dev/pci
parentb7745e7c46b7928037a598258a4aa164b1ba7683 (diff)
put the rx buffer at the end of the mbuf
this should give a bit of space if the packet needs an m_pullup. care is taken to ensure the packet is still aligned for the ip stack. ok and tweaks claudio@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_ix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_ix.c b/sys/dev/pci/if_ix.c
index 1820b366000..a69d669a241 100644
--- a/sys/dev/pci/if_ix.c
+++ b/sys/dev/pci/if_ix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ix.c,v 1.153 2019/02/21 03:16:47 dlg Exp $ */
+/* $OpenBSD: if_ix.c,v 1.154 2019/02/26 03:09:50 dlg Exp $ */
/******************************************************************************
@@ -2389,8 +2389,8 @@ ixgbe_get_buf(struct rx_ring *rxr, int i)
if (!mp)
return (ENOBUFS);
+ mp->m_data += (mp->m_ext.ext_size - sc->rx_mbuf_sz);
mp->m_len = mp->m_pkthdr.len = sc->rx_mbuf_sz;
- m_adj(mp, ETHER_ALIGN);
error = bus_dmamap_load_mbuf(rxr->rxdma.dma_tag, rxbuf->map,
mp, BUS_DMA_NOWAIT);