datapath: Fix L4 checksum handling when dealing with IP fragments
authorGlenn Griffin <ggriffin.kernel@gmail.com>
Mon, 17 Aug 2015 14:50:51 +0000 (07:50 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Tue, 18 Aug 2015 00:07:11 +0000 (17:07 -0700)
commitefdb0c9f47871213db230d17a21a903bac5adb8e
tree52acf200fc45a545b057d2c814673357c7e1377e
parentd8fc1b0e2acfc1542b4d7f77586875757efc6aa2
datapath: Fix L4 checksum handling when dealing with IP fragments

openvswitch modifies the L4 checksum of a packet when modifying
the ip address. When an IP packet is fragmented only the first
fragment contains an L4 header and checksum. Prior to this change
openvswitch would modify all fragments, modifying application data
in non-first fragments, causing checksum failures in the
reassembled packet.

Signed-off-by: Glenn Griffin <ggriffin.kernel@gmail.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Upstream: 3576fd794b3 ("openvswitch: Fix L4 checksum handling when
dealing with IP fragments").

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
datapath/actions.c