summaryrefslogtreecommitdiffstats
path: root/sys/dev/vx
diff options
context:
space:
mode:
authorjlemon <jlemon@FreeBSD.org>2000-05-12 16:48:59 +0000
committerjlemon <jlemon@FreeBSD.org>2000-05-12 16:48:59 +0000
commitf9c4871a62b42c0c439a2c14eb555990ff7a7cf5 (patch)
tree0acb1e95a16159c612b1afa9ee9f8c9ea9876c26 /sys/dev/vx
parent904f94eccaec6f8eac6c53f5c2c4ccff9139e0f3 (diff)
downloadFreeBSD-src-f9c4871a62b42c0c439a2c14eb555990ff7a7cf5.zip
FreeBSD-src-f9c4871a62b42c0c439a2c14eb555990ff7a7cf5.tar.gz
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
Diffstat (limited to 'sys/dev/vx')
-rw-r--r--sys/dev/vx/if_vx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/vx/if_vx.c b/sys/dev/vx/if_vx.c
index 70fc711..0aac072 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;
OpenPOWER on IntegriCloud