1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-02 12:20:51 +00:00

Prefer m_collapse(9) over m_defrag(9).

Reviewed by:	davidch
This commit is contained in:
Pyun YongHyeon 2010-02-26 20:41:28 +00:00
parent b2ec4a73f5
commit 80a48895fc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204372

View File

@ -6713,7 +6713,7 @@ bce_tx_encap(struct bce_softc *sc, struct mbuf **m_head)
sc->fragmented_mbuf_count++;
/* Try to defrag the mbuf. */
m0 = m_defrag(*m_head, M_DONTWAIT);
m0 = m_collapse(*m_head, M_DONTWAIT, BCE_MAX_SEGMENTS);
if (m0 == NULL) {
/* Defrag was unsuccessful */
m_freem(*m_head);