This driver attempts to cache mbufs, and re-use them as headers instead

of using the MGETHDR macro all the time.  When an mbuf is reused as a
header, initialize csum_flags to zero as well, so the delayed_checksum
call woks properly.

Debbugging work done by: jmas
This commit is contained in:
Jonathan Lemon 2000-05-12 16:48:59 +00:00
parent 37d90a44af
commit c9e55fc6d1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=60475

View file

@ -822,6 +822,7 @@ vxget(sc, totlen)
sc->next_mb = (sc->next_mb + 1) % MAX_MBS;
m->m_data = m->m_pktdat;
m->m_flags = M_PKTHDR;
m->m_pkthdr.csum_flags = 0;
}
m->m_pkthdr.rcvif = ifp;
m->m_pkthdr.len = totlen;