diff options
author | Fabien Thomas <fabient@FreeBSD.org> | 2010-05-07 22:09:17 +0000 |
---|---|---|
committer | Fabien Thomas <fabient@FreeBSD.org> | 2010-05-07 22:09:17 +0000 |
commit | b92990ef88c60569cfd1e3ab05e5730da90813ce (patch) | |
tree | 9d71d29c17f913c6dfc2fd660e4ec7975a1e1005 /sys/dev/bce | |
parent | af394cfa3697918cfe0bc4badddee31a637ac941 (diff) | |
download | src-b92990ef88c60569cfd1e3ab05e5730da90813ce.tar.gz src-b92990ef88c60569cfd1e3ab05e5730da90813ce.zip |
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
Notes
Notes:
svn path=/head/; revision=207761
Diffstat (limited to 'sys/dev/bce')
-rw-r--r-- | sys/dev/bce/if_bce.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/bce/if_bce.c b/sys/dev/bce/if_bce.c index 6608dbde2c1b..ad7209e7fd59 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) { |