]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFp4 bz_ipv6_fast:
authorbz <bz@FreeBSD.org>
Fri, 25 May 2012 02:23:26 +0000 (02:23 +0000)
committerbz <bz@FreeBSD.org>
Fri, 25 May 2012 02:23:26 +0000 (02:23 +0000)
commit36fe475aa40328c1d04ccc35a5549fcacdb7dfad
treefc2422cd5a4f37a0bea52d726520687602518d46
parentbc95289fae2caae23a78aa1ce4349ab438002a1f
MFp4 bz_ipv6_fast:

  Add code to handle pre-checked TCP checksums as indicated by mbuf
  flags to save the entire computation for validation if not needed.

  In the IPv6 TCP output path only compute the pseudo-header checksum,
  set the checksum offset in the mbuf field along the appropriate flag
  as done in IPv4.

  In tcp_respond() just initialize the IPv6 payload length to 0 as
  ip6_output() will properly set it.

  Sponsored by: The FreeBSD Foundation
  Sponsored by: iXsystems

Reviewed by: gnn (as part of the whole)
MFC After: 3 days
sys/netinet/tcp_input.c
sys/netinet/tcp_output.c
sys/netinet/tcp_subr.c
sys/netinet/tcp_syncache.c
sys/netinet/tcp_timewait.c