]> git.baikalelectronics.ru Git - kernel.git/commit
ila: cleanup checksum diff
authorTom Herbert <tom@quantonium.net>
Sun, 5 Nov 2017 23:58:22 +0000 (15:58 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Nov 2017 02:20:48 +0000 (11:20 +0900)
commita3ab8ab0e13f8080be3b82563c0582a5e48f204e
treee8d48b073ed8d7a29ad9bc2ea2d22e5e3c591afc
parentd343d90b3cd6bfc0041aa7bc252040f0b4fd3dfb
ila: cleanup checksum diff

Consolidate computing checksum diff into one function.

Add get_csum_diff_iaddr that computes the checksum diff between
an address argument and locator being written. get_csum_diff
calls this using the destination address in the IP header as
the argument.

Also moved ila_init_saved_csum to be close to the checksum

diff functions.

Signed-off-by: Tom Herbert <tom@quantonium.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ila/ila_common.c