ipvs: fix CHECKSUM_PARTIAL for TUN method
authorJulian Anastasov <ja@ssi.bg>
Sun, 17 Oct 2010 13:29:40 +0000 (16:29 +0300)
committerSimon Horman <horms@verge.net.au>
Thu, 21 Oct 2010 08:51:11 +0000 (10:51 +0200)
commit4256f1aaa662697c1faa0984b7a698c2c8c57735
treef54bf7b9183169422eb926b613411f07e94bf95c
parent489fdedaed5ddb437dd2840eb93df37a6dd8c7de
ipvs: fix CHECKSUM_PARTIAL for TUN method

  The recent change in IP_VS_XMIT_TUNNEL to set
CHECKSUM_NONE is not correct. After adding IPIP header
skb->csum becomes invalid but the CHECKSUM_PARTIAL
case must be supported. So, use skb_forward_csum() which is
most suitable for us to allow local clients to send IPIP
to remote real server.

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