]> git.baikalelectronics.ru Git - kernel.git/commit
ila: add checksum neutral ILA translations
authorTom Herbert <tom@herbertland.com>
Sat, 23 Apr 2016 18:46:57 +0000 (11:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Apr 2016 05:27:07 +0000 (01:27 -0400)
commit2b0a79937979d542dde8e264cc3d5d549ce70d28
tree1f7d7cab0c43d934ddcfa5bb008144c1f6dabf31
parent689a32b4480b2185ed996b0d9efc6e074eca28fb
ila: add checksum neutral ILA translations

Support checksum neutral ILA as described in the ILA draft. The low
order 16 bits of the identifier are used to contain the checksum
adjustment value.

The csum-mode parameter is added to described checksum processing. There
are three values:
 - adjust transport checksum (previous behavior)
 - do checksum neutral mapping
 - do nothing

On output the csum-mode in the ila_params is checked and acted on. If
mode is checksum neutral mapping then to mapping and set C-bit.

On input, C-bit is checked. If it is set checksum-netural mapping is
done (regardless of csum-mode in ila params) and C-bit will be cleared.
If it is not set then action in csum-mode is taken.

Signed-off-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/ila.h
net/ipv6/ila/ila.h
net/ipv6/ila/ila_common.c
net/ipv6/ila/ila_lwt.c
net/ipv6/ila/ila_xlat.c