[ovs-git] [openvswitch/ovs] abef79: compat: add compatibility headers for tc mpls action

jahurley noreply at github.com
Thu Aug 1 16:10:34 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: abef79598cc6c2e33d6219f032a86fb864443c5c
      https://github.com/openvswitch/ovs/commit/abef79598cc6c2e33d6219f032a86fb864443c5c
  Author: John Hurley <john.hurley at netronome.com>
  Date:   2019-08-01 (Thu, 01 Aug 2019)

  Changed paths:
    M acinclude.m4
    M include/linux/automake.mk
    A include/linux/tc_act/tc_mpls.h

  Log Message:
  -----------
  compat: add compatibility headers for tc mpls action

OvS includes compat code for several TC actions including vlan, mirred and
tunnel key. MPLS actions have recently been added to TC in the kernel. In
preparation for adding TC offload code for MPLS, add the MPLS compat code.

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


  Commit: 55412eac6937174252827b630226199d95b196f4
      https://github.com/openvswitch/ovs/commit/55412eac6937174252827b630226199d95b196f4
  Author: John Hurley <john.hurley at netronome.com>
  Date:   2019-08-01 (Thu, 01 Aug 2019)

  Changed paths:
    M lib/netdev-offload-tc.c
    M lib/tc.c
    M lib/tc.h

  Log Message:
  -----------
  ovs-tc: offload MPLS pop actions to TC datapath

TC now supports an action to pop the outer MPLS header from a packet. The
next protocol after the header is required alongside this. Currently, OvS
datapath rules also supply this information.

Offload OvS MPLS pop actions to TC along with the next protocol.

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


  Commit: 283dcf850d564afdbccd2cc14fd5d0b407625669
      https://github.com/openvswitch/ovs/commit/283dcf850d564afdbccd2cc14fd5d0b407625669
  Author: John Hurley <john.hurley at netronome.com>
  Date:   2019-08-01 (Thu, 01 Aug 2019)

  Changed paths:
    M lib/netdev-offload-tc.c
    M lib/packets.h
    M lib/tc.c
    M lib/tc.h

  Log Message:
  -----------
  ovs-tc: offload MPLS push actions to TC datapath

TC can now be used to push an MPLS header onto a packet. The MPLS label is
the only information that needs to be passed here with the rest reverting
to default values if none are supplied. OvS, however, gives the entire
MPLS header to be pushed along with the MPLS protocol to use. TC can
optionally accept these values so can be made replicate the OvS datapath
rule.

Convert OvS MPLS push datapath rules to TC format and offload to a TC
datapath.

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


  Commit: a8f005cf26fd16f77133d67fe4b205409fc444db
      https://github.com/openvswitch/ovs/commit/a8f005cf26fd16f77133d67fe4b205409fc444db
  Author: John Hurley <john.hurley at netronome.com>
  Date:   2019-08-01 (Thu, 01 Aug 2019)

  Changed paths:
    M lib/netdev-offload-tc.c
    M lib/tc.c
    M lib/tc.h

  Log Message:
  -----------
  ovs-tc: offload MPLS set actions to TC datapath

Recent modifications to TC allows the modifying of fields within the
outermost MPLS header of a packet. OvS datapath rules impliment an MPLS
set action by supplying a new MPLS header that should overwrite the
current one.

Convert the OvS datapath MPLS set action to a TC modify action and allow
such rules to be offloaded to a TC datapath.

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


Compare: https://github.com/openvswitch/ovs/compare/0770429e38f4...a8f005cf26fd


More information about the git mailing list