diff options
author | bz <bz@FreeBSD.org> | 2012-05-25 02:21:17 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2012-05-25 02:21:17 +0000 |
commit | bc95289fae2caae23a78aa1ce4349ab438002a1f (patch) | |
tree | e169d65042b38da3e7509b72e30f0b117b5f416d /sys/net | |
parent | 179af0a3e59fcacda206c3db6b13e1fcd167ee3b (diff) | |
download | FreeBSD-src-bc95289fae2caae23a78aa1ce4349ab438002a1f.zip FreeBSD-src-bc95289fae2caae23a78aa1ce4349ab438002a1f.tar.gz |
MFp4 bz_ipv6_fast:
Simple yet effective change enabling checksum "offload" on loopback
for IPv6 to avoid expensive computations.
Sponsored by: The FreeBSD Foundation
Sponsored by: iXsystems
Reviewed by: gnn (as part of the whole)
MFC After: 3 days
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/if_loop.c b/sys/net/if_loop.c index 78d2de2..80e0eea 100644 --- a/sys/net/if_loop.c +++ b/sys/net/if_loop.c @@ -247,12 +247,12 @@ looutput(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst, #if 1 /* XXX */ switch (dst->sa_family) { case AF_INET: + case AF_INET6: if (ifp->if_capenable & IFCAP_RXCSUM) { m->m_pkthdr.csum_data = 0xffff; m->m_pkthdr.csum_flags = LO_CSUM_SET; } m->m_pkthdr.csum_flags &= ~LO_CSUM_FEATURES; - case AF_INET6: case AF_IPX: case AF_APPLETALK: break; |