[ovs-git] [openvswitch/ovs] 62df1f: match: Add match_set_ct_zone_masked helper

Simon Horman noreply at github.com
Fri Jan 3 07:18:31 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 62df1f5bea87f17ae062673e93124808a7a03e6e
      https://github.com/openvswitch/ovs/commit/62df1f5bea87f17ae062673e93124808a7a03e6e
  Author: Paul Blakey <paulb at mellanox.com>
  Date:   2019-12-22 (Sun, 22 Dec 2019)

  Changed paths:
    M include/openvswitch/match.h
    M lib/match.c

  Log Message:
  -----------
  match: Add match_set_ct_zone_masked helper

Sets zone in match.

Signed-off-by: Paul Blakey <paulb at mellanox.com>
Reviewed-by: Roi Dayan <roid at mellanox.com>
Signed-off-by: Simon Horman <simon.horman at netronome.com>


  Commit: 104d33ca88cce203689fcfe92943d1673f8593d2
      https://github.com/openvswitch/ovs/commit/104d33ca88cce203689fcfe92943d1673f8593d2
  Author: Paul Blakey <paulb at mellanox.com>
  Date:   2019-12-22 (Sun, 22 Dec 2019)

  Changed paths:
    M include/linux/automake.mk
    M include/linux/pkt_cls.h
    A include/linux/tc_act/tc_ct.h

  Log Message:
  -----------
  compat: Add tc ct action and flower matches defines for older kernels

Update kernel UAPI to support conntrack matches, and the
tc actions ct and goto chain.

Signed-off-by: Paul Blakey <paulb at mellanox.com>
Reviewed-by: Roi Dayan <roid at mellanox.com>
Signed-off-by: Simon Horman <simon.horman at netronome.com>


  Commit: acdd544c4c9a2e31913d55baed004bae691db86f
      https://github.com/openvswitch/ovs/commit/acdd544c4c9a2e31913d55baed004bae691db86f
  Author: Paul Blakey <paulb at mellanox.com>
  Date:   2019-12-22 (Sun, 22 Dec 2019)

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

  Log Message:
  -----------
  tc: Introduce tcf_id to specify a tc filter

Move all that is needed to identify a tc filter to a
new structure, tcf_id. This removes a lot of duplication
in accessing/creating tc filters.

Signed-off-by: Paul Blakey <paulb at mellanox.com>
Reviewed-by: Roi Dayan <roid at mellanox.com>
Signed-off-by: Simon Horman <simon.horman at netronome.com>


  Commit: 900b5bdc427e88860db073814cc79f727bd113e6
      https://github.com/openvswitch/ovs/commit/900b5bdc427e88860db073814cc79f727bd113e6
  Author: Paul Blakey <paulb at mellanox.com>
  Date:   2019-12-22 (Sun, 22 Dec 2019)

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

  Log Message:
  -----------
  netdev-offload-tc: Implement netdev tc flush via tc filter del

To be consistent with our tc-ufid mapping after flush, and to support tc
chains flushing in the next commit, implement flush operation via
deleting all the filters we actually added and delete their mappings.

This will also not delete the configured qos policing via matchall filters,
while old code did.

Signed-off-by: Paul Blakey <paulb at mellanox.com>
Reviewed-by: Roi Dayan <roid at mellanox.com>
Signed-off-by: Simon Horman <simon.horman at netronome.com>


  Commit: dcdcad68c6a393274e9c6c13a3c85220a1fd850e
      https://github.com/openvswitch/ovs/commit/dcdcad68c6a393274e9c6c13a3c85220a1fd850e
  Author: Paul Blakey <paulb at mellanox.com>
  Date:   2019-12-22 (Sun, 22 Dec 2019)

  Changed paths:
    M datapath/linux/compat/include/linux/openvswitch.h
    M lib/dpif-netdev.c
    M lib/dpif-netlink.c
    M lib/dpif-provider.h
    M lib/dpif.c
    M lib/dpif.h

  Log Message:
  -----------
  dpif: Add support to set user features

This enables user features on the kernel datapath via the DP_CMD_SET
command, and also retrieves them to check for actual support and
not just an older kernel ignoring the requested features.

This will be used in next patch to enable recirc_id sharing with tc.

Signed-off-by: Paul Blakey <paulb at mellanox.com>
Reviewed-by: Roi Dayan <roid at mellanox.com>
Signed-off-by: Simon Horman <simon.horman at netronome.com>


  Commit: 7c53bd7839d839f8650c1c0298e5fb42271fc1ea
      https://github.com/openvswitch/ovs/commit/7c53bd7839d839f8650c1c0298e5fb42271fc1ea
  Author: Paul Blakey <paulb at mellanox.com>
  Date:   2019-12-22 (Sun, 22 Dec 2019)

  Changed paths:
    M lib/tc.c

  Log Message:
  -----------
  tc: Move tunnel_key unset action before output ports

Since OvS datapath gets packets already decapsulated from tunnel devices,
it doesn't explicitly decapsulate them. So in a recirculation setup,
the tunnel matching continues in the recirculation as the tunnel
metadata still exists on the SKB.

Tunnel key unset action unsets this metadata. Some drivers might rely
on this explicit tunnel key unset to know when to decapsulate the packet
instead of the device type. So instead of removing it completly,
we move it near the output actions.

This way, we also keep SKB metadata through recirculation, and for
non-recirculation rules, the resulting tc rules should remain the same.

Signed-off-by: Paul Blakey <paulb at mellanox.com>
Reviewed-by: Roi Dayan <roid at mellanox.com>
Signed-off-by: Simon Horman <simon.horman at netronome.com>


  Commit: b2ae40690ed7925518619039c5d1e885f7d0acdf
      https://github.com/openvswitch/ovs/commit/b2ae40690ed7925518619039c5d1e885f7d0acdf
  Author: Paul Blakey <paulb at mellanox.com>
  Date:   2019-12-22 (Sun, 22 Dec 2019)

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

  Log Message:
  -----------
  netdev-offload-tc: Add recirculation support via tc chains

Each recirculation id will create a tc chain, and we translate
the recirculation action to a tc goto chain action.

We check for kernel support for this by probing OvS Datapath for the
tc recirc id sharing feature. If supported, we can offload rules
that match on recirc_id, and recirculation action safely.

Signed-off-by: Paul Blakey <paulb at mellanox.com>
Reviewed-by: Roi Dayan <roid at mellanox.com>
Signed-off-by: Simon Horman <simon.horman at netronome.com>


  Commit: 576126a931cdf96d43443916d922462c7a16e350
      https://github.com/openvswitch/ovs/commit/576126a931cdf96d43443916d922462c7a16e350
  Author: Paul Blakey <paulb at mellanox.com>
  Date:   2019-12-22 (Sun, 22 Dec 2019)

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

  Log Message:
  -----------
  netdev-offload-tc: Add conntrack support

Zone and ct_state first.

Signed-off-by: Paul Blakey <paulb at mellanox.com>
Reviewed-by: Roi Dayan <roid at mellanox.com>
Signed-off-by: Simon Horman <simon.horman at netronome.com>


  Commit: 9221c721bec076a6b89d3d9b84fe7d87bf7ee134
      https://github.com/openvswitch/ovs/commit/9221c721bec076a6b89d3d9b84fe7d87bf7ee134
  Author: Paul Blakey <paulb at mellanox.com>
  Date:   2019-12-22 (Sun, 22 Dec 2019)

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

  Log Message:
  -----------
  netdev-offload-tc: Add conntrack label and mark support

Signed-off-by: Paul Blakey <paulb at mellanox.com>
Reviewed-by: Roi Dayan <roid at mellanox.com>
Signed-off-by: Simon Horman <simon.horman at netronome.com>


  Commit: 2bf6ffb76ac6e8ae23df8bde72d85c2b351d1160
      https://github.com/openvswitch/ovs/commit/2bf6ffb76ac6e8ae23df8bde72d85c2b351d1160
  Author: Paul Blakey <paulb at mellanox.com>
  Date:   2019-12-22 (Sun, 22 Dec 2019)

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

  Log Message:
  -----------
  netdev-offload-tc: Add conntrack nat support

Signed-off-by: Paul Blakey <paulb at mellanox.com>
Reviewed-by: Roi Dayan <roid at mellanox.com>
Signed-off-by: Simon Horman <simon.horman at netronome.com>


Compare: https://github.com/openvswitch/ovs/compare/7efc698014aa...2bf6ffb76ac6


More information about the git mailing list