• Julian Anastasov's avatar
    ipvs: optimize checksums for apps · 8b27b10f
    Julian Anastasov authored
     	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: default avatarJulian Anastasov <ja@ssi.bg>
    Signed-off-by: default avatarSimon Horman <horms@verge.net.au>
    8b27b10f
ip_vs.h 30.5 KB