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:09:42 +0000 (17:09 -0700)
commit000fcbdb8c4760ffc25be87e515441f3b72b095b
tree67b814007e7c22ce9fcbc68123d52131a5b4e15e
parent7148fd9c1c3d4e0300cd9b90d00c15b263ba144b
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