datapath:backport: openvswitch: use flow protocol when recalculating ipv6 checksums
authorPravin B Shelar <pshelar@ovn.org>
Thu, 9 Jun 2016 05:53:23 +0000 (22:53 -0700)
committerPravin B Shelar <pshelar@ovn.org>
Thu, 9 Jun 2016 19:26:51 +0000 (12:26 -0700)
commit49a8eef8d439c1cb08451d2691acd1fa7cca281a
treefe025d25014e2820058dddf49f4e25f53f9041d1
parentb00bdc728e7a0ae697b4fc59a4f9958b688c6789
datapath:backport: openvswitch: use flow protocol when recalculating ipv6 checksums

Upstream commit:
    commit b4f70527f052b0c00be4d7cac562baa75b212df5
    Author: Simon Horman <simon.horman@netronome.com>
    Date:   Thu Apr 21 11:49:15 2016 +1000

    openvswitch: use flow protocol when recalculating ipv6 checksums

    When using masked actions the ipv6_proto field of an action
    to set IPv6 fields may be zero rather than the prevailing protocol
    which will result in skipping checksum recalculation.

    This patch resolves the problem by relying on the protocol
    in the flow key rather than that in the set field action.

    Fixes: 83d2b9ba1abc ("net: openvswitch: Support masked set actions.")
Cc: Jarno Rajahalme <jrajahalme@nicira.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Pravin B Shelar <pshelar@ovn.org>
Acked-by: Jesse Gross <jesse@kernel.org>
datapath/actions.c