mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 03:49:02 +00:00
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:
parent
37d90a44af
commit
c9e55fc6d1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=60475
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user