summaryrefslogtreecommitdiffstats
path: root/sys/dev/bce
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/bce
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/bce')
-rw-r--r--sys/dev/bce/if_bce.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/bce/if_bce.c b/sys/dev/bce/if_bce.c
index 6608dbd..ad7209e 100644
--- a/sys/dev/bce/if_bce.c
+++ b/sys/dev/bce/if_bce.c
@@ -5059,11 +5059,8 @@ bce_get_rx_buf(struct bce_softc *sc, struct mbuf *m, u16 *prod,
#ifdef BCE_JUMBO_HDRSPLIT
MGETHDR(m_new, M_DONTWAIT, MT_DATA);
#else
- if (sc->rx_bd_mbuf_alloc_size <= MCLBYTES)
- m_new = m_getcl(M_DONTWAIT, MT_DATA, M_PKTHDR);
- else
- m_new = m_getjcl(M_DONTWAIT, MT_DATA, M_PKTHDR,
- sc->rx_bd_mbuf_alloc_size);
+ m_new = m_getjcl(M_DONTWAIT, MT_DATA, M_PKTHDR,
+ sc->rx_bd_mbuf_alloc_size);
#endif
if (m_new == NULL) {
OpenPOWER on IntegriCloud