]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: consolidate csum flag handling
authorJiri Benc <jbenc@redhat.com>
Tue, 2 Feb 2016 17:09:15 +0000 (18:09 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 7 Feb 2016 18:51:00 +0000 (13:51 -0500)
commit0f3cc59f99546442977b65b26411415061edaeaa
tree3bb88b95e6e791663d4a14e414a05d84880bcfc1
parentfe0c7c6c71c98ada546ea2dec26f8cb154d0f27e
vxlan: consolidate csum flag handling

The flag for tx checksumming for tunneling over IPv4 and IPv6 is different.
Decide whether to do tx checksumming in vxlan_xmit_one and pass it on as
a separate flag. This will allow for tx path consolidation in the next
patch.

Unfortunately, gcc is not clever enough to see that udp_sum is always
initialized and gives an uninitialized variable warning. Set it to false to
silence the warning.

Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c