ipvs: optimize checksums for apps
authorJulian Anastasov <ja@ssi.bg>
Sun, 17 Oct 2010 13:17:20 +0000 (16:17 +0300)
committerSimon Horman <horms@verge.net.au>
Thu, 21 Oct 2010 08:50:02 +0000 (10:50 +0200)
  Avoid full checksum calculation for apps that can provide
info whether csum was broken after payload mangling. For now only
ip_vs_ftp mangles payload and it updates the csum, so the full
recalculation is avoided for all packets.

  Add CHECKSUM_UNNECESSARY for snat_handler (TCP and UDP).
It is needed to support SNAT from local address for the case
when csum is fully recalculated.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>

No differences found