[ovs-git] [openvswitch/ovs] a779fe: packets: use flow protocol when recalculating ipv6...

GitHub noreply at github.com
Sat Apr 23 05:04:57 UTC 2016


  Branch: refs/heads/branch-2.4
  Home:   https://github.com/openvswitch/ovs
  Commit: a779febbed550cd26d1f1466e95033c63490ce95
      https://github.com/openvswitch/ovs/commit/a779febbed550cd26d1f1466e95033c63490ce95
  Author: Simon Horman <simon.horman at netronome.com>
  Date:   2016-04-23 (Sat, 23 Apr 2016)

  Changed paths:
    M lib/odp-execute.c
    M lib/packets.c
    M lib/packets.h

  Log Message:
  -----------
  packets: 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 packet rather than that in the set field action.

A similar fix for the kernel datapath has been accepted into David Miller's
'net' tree as b4f70527f052 ("openvswitch: use flow protocol when
recalculating ipv6 checksums").

Cc: Jarno Rajahalme <jrajahalme at nicira.com>
Fixes: 6d670e7f0d45 ("lib/odp: Masked set action execution and printing.")
Signed-off-by: Simon Horman <simon.horman at netronome.com>
Acked-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list