summaryrefslogtreecommitdiffstats
path: root/sys/dev/mxge
diff options
context:
space:
mode:
authorfabient <fabient@FreeBSD.org>2010-05-07 22:09:17 +0000
committerfabient <fabient@FreeBSD.org>2010-05-07 22:09:17 +0000
commit7b5a89958997969178e7eae068188b900a502f8e (patch)
tree9d71d29c17f913c6dfc2fd660e4ec7975a1e1005 /sys/dev/mxge
parentbd99a522e2b1c21dedb3442dee38e808a07a15fe (diff)
downloadFreeBSD-src-7b5a89958997969178e7eae068188b900a502f8e.zip
FreeBSD-src-7b5a89958997969178e7eae068188b900a502f8e.tar.gz
Add a fastpath to allocate from packet zone when using m_getjcl.
This will add support for packet zone for at least igb and ixgbe and will avoid to check for that in bce and mxge. MFC after: 1 week
Diffstat (limited to 'sys/dev/mxge')
-rw-r--r--sys/dev/mxge/if_mxge.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/mxge/if_mxge.c b/sys/dev/mxge/if_mxge.c
index 956b1aa..e5a34bc 100644
--- a/sys/dev/mxge/if_mxge.c
+++ b/sys/dev/mxge/if_mxge.c
@@ -2400,10 +2400,7 @@ mxge_get_buf_big(struct mxge_slice_state *ss, bus_dmamap_t map, int idx)
mxge_rx_ring_t *rx = &ss->rx_big;
int cnt, err, i;
- if (rx->cl_size == MCLBYTES)
- m = m_getcl(M_DONTWAIT, MT_DATA, M_PKTHDR);
- else
- m = m_getjcl(M_DONTWAIT, MT_DATA, M_PKTHDR, rx->cl_size);
+ m = m_getjcl(M_DONTWAIT, MT_DATA, M_PKTHDR, rx->cl_size);
if (m == NULL) {
rx->alloc_fail++;
err = ENOBUFS;
OpenPOWER on IntegriCloud