diff options
author | Jonathan Lemon <jlemon@FreeBSD.org> | 2000-05-12 16:48:59 +0000 |
---|---|---|
committer | Jonathan Lemon <jlemon@FreeBSD.org> | 2000-05-12 16:48:59 +0000 |
commit | c9e55fc6d17158fcfd11373ce668ffdd6bd98980 (patch) | |
tree | 801f21ef016e3c98f73cb5c6f4c2a1e9e6be7d70 /sys/dev/vx | |
parent | 37d90a44afc05201714b3902a6d2250a1b1ea616 (diff) | |
download | src-c9e55fc6d17158fcfd11373ce668ffdd6bd98980.tar.gz src-c9e55fc6d17158fcfd11373ce668ffdd6bd98980.zip |
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
Notes
Notes:
svn path=/head/; revision=60475
Diffstat (limited to 'sys/dev/vx')
-rw-r--r-- | sys/dev/vx/if_vx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/vx/if_vx.c b/sys/dev/vx/if_vx.c index 70fc711d2ec3..0aac0726258c 100644 --- a/sys/dev/vx/if_vx.c +++ b/sys/dev/vx/if_vx.c @@ -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; |