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
This commit is contained in:
parent
5aa624a803
commit
d4b93a67d9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=235960
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user