]> 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)
commit9cbb9565cfa2396da68fe3e3ac0c337b08885c96
tree07ad6618b99e127871db7b4c77c586730cd18fcb
parent26a4bd398056e140d21c833eae8cdc9fdf89ac3f
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