[ovs-git] [openvswitch/ovs] 26cdc3: tc flower: reorder tunnel encap/decap actions

GitHub noreply at github.com
Wed Jan 24 12:31:10 UTC 2018


  Branch: refs/heads/branch-2.9
  Home:   https://github.com/openvswitch/ovs
  Commit: 26cdc333adb545e38341358064af722af5656374
      https://github.com/openvswitch/ovs/commit/26cdc333adb545e38341358064af722af5656374
  Author: John Hurley <john.hurley at netronome.com>
  Date:   2018-01-24 (Wed, 24 Jan 2018)

  Changed paths:
    M lib/tc.c

  Log Message:
  -----------
  tc flower: reorder tunnel encap/decap actions

The tc_flower conversion struct does not consider the order of actions.
If an OvS rule matches on a tunnel (decap) and outputs to a new tunnel,
the netlink conversion to TC will add the set tunnel key action before the
unset, leading to an incorrect TC rule. This patch reorders the netlink
generation to ensure a decap is done before an encap if both exist.

Signed-off-by: John Hurley <john.hurley at netronome.com>
Signed-off-by: Simon Horman <simon.horman at netronome.com>




More information about the git mailing list