]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: Add checksum check to the features check function
authorAlexander Duyck <aduyck@mirantis.com>
Mon, 2 May 2016 16:25:16 +0000 (09:25 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 May 2016 20:00:54 +0000 (16:00 -0400)
commitd266db19c71ea84bc3dfa699781cc40857e2b9b1
tree07ad6618b99e127871db7b4c77c586730cd18fcb
parent1b266dda59e80541ec848c216215b708c266ee16
vxlan: Add checksum check to the features check function

We need to perform an additional check on the inner headers to determine if
we can offload the checksum for them.  Previously this check didn't occur
so we would generate an invalid frame in the case of an IPv6 header
encapsulated inside of an IPv4 tunnel.  To fix this I added a secondary
check to vxlan_features_check so that we can verify that we can offload the
inner checksum.

Signed-off-by: Alexander Duyck <aduyck@mirantis.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_ether.h
include/net/vxlan.h