[ovs-git] [openvswitch/ovs] 7874bd: netdev-linux: Refactor two tc functions

GitHub noreply at github.com
Wed Jun 14 08:24:52 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 7874bdff0d14a4dae18a7922b92fcca80e2c88bd
      https://github.com/openvswitch/ovs/commit/7874bdff0d14a4dae18a7922b92fcca80e2c88bd
  Author: Roi Dayan <roid at mellanox.com>
  Date:   2017-06-14 (Wed, 14 Jun 2017)

  Changed paths:
    M lib/netdev-linux.c

  Log Message:
  -----------
  netdev-linux: Refactor two tc functions

Refactor tc_make_request and tc_add_del_ingress_qdisc to accept
ifindex instead of netdev struct.
We later want to move those outside netdev-linux module to be
used by other modules.
This patch doesn't change any functionality.

Signed-off-by: Roi Dayan <roid at mellanox.com>
Co-authored-by: Paul Blakey <paulb at mellanox.com>
Signed-off-by: Paul Blakey <paulb at mellanox.com>
Acked-by: Joe Stringer <joe at ovn.org>
Acked-by: Flavio Leitner <fbl at sysclose.org>
Signed-off-by: Simon Horman <simon.horman at netronome.com>


  Commit: c1c5c7234060bde0591745dda8227f1f71af5884
      https://github.com/openvswitch/ovs/commit/c1c5c7234060bde0591745dda8227f1f71af5884
  Author: Paul Blakey <paulb at mellanox.com>
  Date:   2017-06-14 (Wed, 14 Jun 2017)

  Changed paths:
    M lib/automake.mk
    M lib/netdev-linux.c
    A lib/tc.c
    A lib/tc.h

  Log Message:
  -----------
  tc: Introduce tc module

Add tc module to expose tc operations to be used by other modules.
Move some tc related functions from netdev-linux.c to tc.c
This patch doesn't change any functionality.

Signed-off-by: Paul Blakey <paulb at mellanox.com>
Co-authored-by: Roi Dayan <roid at mellanox.com>
Signed-off-by: Roi Dayan <roid at mellanox.com>
Acked-by: Joe Stringer <joe at ovn.org>
Acked-by: Flavio Leitner <fbl at sysclose.org>
Signed-off-by: Simon Horman <simon.horman at netronome.com>


  Commit: 209832d56932ded0b5f9f76bd8c0b2d2c9273a01
      https://github.com/openvswitch/ovs/commit/209832d56932ded0b5f9f76bd8c0b2d2c9273a01
  Author: Roi Dayan <roid at mellanox.com>
  Date:   2017-06-14 (Wed, 14 Jun 2017)

  Changed paths:
    M lib/tc.c

  Log Message:
  -----------
  tc: Refactor tcm handle assignment when creating filter qdisc

Use the available TC macros instead of 0xffff.

Signed-off-by: Roi Dayan <roid at mellanox.com>
Acked-by: Flavio Leitner <fbl at sysclose.org>
Signed-off-by: Simon Horman <simon.horman at netronome.com>


  Commit: 837f5250e8a1da64852e7de62a5dde9a3adb264e
      https://github.com/openvswitch/ovs/commit/837f5250e8a1da64852e7de62a5dde9a3adb264e
  Author: Roi Dayan <roid at mellanox.com>
  Date:   2017-06-14 (Wed, 14 Jun 2017)

  Changed paths:
    M lib/tc.c
    M lib/tc.h

  Log Message:
  -----------
  tc: Move functions the create/parse handle to be static inline

Those functions are just wrappers to available macros for readability.
Move them to tc.h to avoid function-call overhead.

Signed-off-by: Roi Dayan <roid at mellanox.com>
Acked-by: Flavio Leitner <fbl at sysclose.org>
Signed-off-by: Simon Horman <simon.horman at netronome.com>


  Commit: f98e418fbdb629760db96bbd37a9a981a9b27ee9
      https://github.com/openvswitch/ovs/commit/f98e418fbdb629760db96bbd37a9a981a9b27ee9
  Author: Roi Dayan <roid at mellanox.com>
  Date:   2017-06-14 (Wed, 14 Jun 2017)

  Changed paths:
    M lib/tc.c
    M lib/tc.h

  Log Message:
  -----------
  tc: Add tc flower functions

Add tc helper functions to query and manipulate the flower classifier.

Signed-off-by: Paul Blakey <paulb at mellanox.com>
Co-authored-by: Roi Dayan <roid at mellanox.com>
Signed-off-by: Roi Dayan <roid at mellanox.com>
Acked-by: Flavio Leitner <fbl at sysclose.org>
Signed-off-by: Simon Horman <simon.horman at netronome.com>


  Commit: 18ebd48cfb01ea0e239c6820520a1c57063cc58f
      https://github.com/openvswitch/ovs/commit/18ebd48cfb01ea0e239c6820520a1c57063cc58f
  Author: Paul Blakey <paulb at mellanox.com>
  Date:   2017-06-14 (Wed, 14 Jun 2017)

  Changed paths:
    M lib/automake.mk
    M lib/netdev-bsd.c
    M lib/netdev-dpdk.c
    M lib/netdev-dummy.c
    M lib/netdev-linux.c
    M lib/netdev-linux.h
    M lib/netdev-provider.h
    A lib/netdev-tc-offloads.c
    A lib/netdev-tc-offloads.h
    M lib/netdev-vport.c
    M lib/netdev.c
    M lib/netdev.h

  Log Message:
  -----------
  netdev: Adding a new netdev API to be used for offloading flows

Add a new API interface for offloading dpif flows to netdev.
The API consist on the following:
  flow_put - offload a new flow
  flow_get - query an offloaded flow
  flow_del - delete an offloaded flow
  flow_flush - flush all offloaded flows
  flow_dump_* - dump all offloaded flows

In upcoming commits we will introduce an implementation of this
API for netdev-linux.

Signed-off-by: Paul Blakey <paulb at mellanox.com>
Reviewed-by: Roi Dayan <roid at mellanox.com>
Acked-by: Flavio Leitner <fbl at sysclose.org>
Signed-off-by: Simon Horman <simon.horman at netronome.com>


  Commit: 53611f7b05460ee60cc94d67e14ac8945de4b4f9
      https://github.com/openvswitch/ovs/commit/53611f7b05460ee60cc94d67e14ac8945de4b4f9
  Author: Paul Blakey <paulb at mellanox.com>
  Date:   2017-06-14 (Wed, 14 Jun 2017)

  Changed paths:
    M lib/netdev.c
    M lib/netdev.h
    M vswitchd/bridge.c
    M vswitchd/vswitch.xml

  Log Message:
  -----------
  other-config: Add hw-offload switch to control netdev flow offloading

Add a new configuration option - hw-offload that enables netdev
flow api. Enabling this option will allow offloading flows
using netdev implementation instead of the kernel datapath.
This configuration option defaults to false - disabled.

Signed-off-by: Paul Blakey <paulb at mellanox.com>
Reviewed-by: Roi Dayan <roid at mellanox.com>
Acked-by: Flavio Leitner <fbl at sysclose.org>
Signed-off-by: Simon Horman <simon.horman at netronome.com>


Compare: https://github.com/openvswitch/ovs/compare/81d392187ff4...53611f7b0546


More information about the git mailing list