[NET]: ipvs checksum annotations.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -116,9 +116,9 @@ tcp_fast_csum_update(struct tcphdr *tcph, __be32 oldip, __be32 newip,
|
||||
__be16 oldport, __be16 newport)
|
||||
{
|
||||
tcph->check =
|
||||
ip_vs_check_diff(~oldip, newip,
|
||||
ip_vs_check_diff(oldport ^ htons(0xFFFF),
|
||||
newport, tcph->check));
|
||||
csum_fold(ip_vs_check_diff4(oldip, newip,
|
||||
ip_vs_check_diff2(oldport, newport,
|
||||
~csum_unfold(tcph->check))));
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user