svn commit: r238236 - stable/9/sys/net
Bjoern A. Zeeb
bz at FreeBSD.org
Sun Jul 8 12:01:12 UTC 2012
Author: bz
Date: Sun Jul 8 12:01:11 2012
New Revision: 238236
URL: http://svn.freebsd.org/changeset/base/238236
Log:
MFC r235960:
Simple yet effective change enabling checksum "offload" on loopback
for IPv6 to avoid expensive computations.
Approved by: re
Modified:
stable/9/sys/net/if_loop.c
Directory Properties:
stable/9/sys/ (props changed)
Modified: stable/9/sys/net/if_loop.c
==============================================================================
--- stable/9/sys/net/if_loop.c Sun Jul 8 11:57:11 2012 (r238235)
+++ stable/9/sys/net/if_loop.c Sun Jul 8 12:01:11 2012 (r238236)
@@ -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-stable-9
mailing list