]> 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)
commitaf67eb9e7e1ab37880459f83153d34b3c42b0075
tree07ad6618b99e127871db7b4c77c586730cd18fcb
parent996e802187889f1cd412e6929c9344b92ccb78c4
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