Date: Sun, 8 Jul 2012 12:01:11 +0000 (UTC) From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r238236 - stable/9/sys/net Message-ID: <201207081201.q68C1B5M049785@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207081201.q68C1B5M049785>