svn commit: r245919 - head/sys/netinet
Navdeep Parhar
np at FreeBSD.org
Fri Jan 25 22:16:36 UTC 2013
Author: np
Date: Fri Jan 25 22:16:35 2013
New Revision: 245919
URL: http://svnweb.freebsd.org/changeset/base/245919
Log:
Add TCP_OFFLOAD hook in syncache_respond for IPv6 too, just like the one
that exists for IPv4.
Reviewed by: bz@
Modified:
head/sys/netinet/tcp_syncache.c
Modified: head/sys/netinet/tcp_syncache.c
==============================================================================
--- head/sys/netinet/tcp_syncache.c Fri Jan 25 21:44:45 2013 (r245918)
+++ head/sys/netinet/tcp_syncache.c Fri Jan 25 22:16:35 2013 (r245919)
@@ -1493,6 +1493,15 @@ syncache_respond(struct syncache *sc)
th->th_sum = in6_cksum_pseudo(ip6, tlen + optlen - hlen,
IPPROTO_TCP, 0);
ip6->ip6_hlim = in6_selecthlim(NULL, NULL);
+#ifdef TCP_OFFLOAD
+ if (ADDED_BY_TOE(sc)) {
+ struct toedev *tod = sc->sc_tod;
+
+ error = tod->tod_syncache_respond(tod, sc->sc_todctx, m);
+
+ return (error);
+ }
+#endif
error = ip6_output(m, NULL, NULL, 0, NULL, NULL, NULL);
}
#endif
More information about the svn-src-all
mailing list