]> git.baikalelectronics.ru Git - kernel.git/commit
geneve: fix incorrect setting of UDP checksum flag
authorGirish Moodalbail <girish.moodalbail@oracle.com>
Thu, 27 Apr 2017 21:11:53 +0000 (14:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 May 2017 02:31:16 +0000 (22:31 -0400)
commit0d0dc7dd98bca44ca2bd9c831690a65b2b8fff2d
treebb935fa584062eb4f64f64322fbfc508da56150e
parent6f04d5933497b28f18c7632a77f4309414f8d427
geneve: fix incorrect setting of UDP checksum flag

Creating a geneve link with 'udpcsum' set results in a creation of link
for which UDP checksum will NOT be computed on outbound packets, as can
be seen below.

11: gen0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN
    link/ether c2:85:27:b6:b4:15 brd ff:ff:ff:ff:ff:ff promiscuity 0
    geneve id 200 remote 192.168.13.1 dstport 6081 noudpcsum

Similarly, creating a link with 'noudpcsum' set results in a creation
of link for which UDP checksum will be computed on outbound packets.

Fixes: 25e13753220d ("geneve: Unify LWT and netdev handling.")
Signed-off-by: Girish Moodalbail <girish.moodalbail@oracle.com>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Acked-by: Lance Richardson <lrichard@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/geneve.c