mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-22 11:17:19 +00:00
Add TCP_OFFLOAD hook in syncache_respond for IPv6 too, just like the one
that exists for IPv4. Reviewed by: bz@
This commit is contained in:
parent
6784ea8536
commit
464dfeb43f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=245919
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user