[ovs-git] [openvswitch/ovs] 23e670: tc flower: reorder tunnel encap/decap actions

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


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 23e670c478448743198699b5dcaff2435af9fb45
      https://github.com/openvswitch/ovs/commit/23e670c478448743198699b5dcaff2435af9fb45
  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