svn commit: r235960 - head/sys/net
Bjoern A. Zeeb
bz at FreeBSD.org
Fri May 25 02:21:18 UTC 2012
Author: bz
Date: Fri May 25 02:21:17 2012
New Revision: 235960
URL: http://svn.freebsd.org/changeset/base/235960
Log:
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
Modified:
head/sys/net/if_loop.c
Modified: head/sys/net/if_loop.c
==============================================================================
--- head/sys/net/if_loop.c Fri May 25 02:19:17 2012 (r235959)
+++ head/sys/net/if_loop.c Fri May 25 02:21:17 2012 (r235960)
@@ -247,12 +247,12 @@ looutput(struct ifnet *ifp, struct mbuf
#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;
More information about the svn-src-all
mailing list