[ovs-git] [openvswitch/ovs] 6775bd: netdev-dpdk: Expose flow creation/destruction calls

Ophir Munk noreply at github.com
Tue Mar 19 16:23:18 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 6775bdfc9b9451704a34a9a912c638b4a15471a0
      https://github.com/openvswitch/ovs/commit/6775bdfc9b9451704a34a9a912c638b4a15471a0
  Author: Roni Bar Yanai <roniba at mellanox.com>
  Date:   2019-03-19 (Tue, 19 Mar 2019)

  Changed paths:
    M lib/netdev-dpdk.c
    M lib/netdev-dpdk.h

  Log Message:
  -----------
  netdev-dpdk: Expose flow creation/destruction calls

Before offloading code was added to the netdev-dpdk.c file (MARK and
RSS actions) the only DPDK RTE calls in use were rte_flow_create() and
rte_flow_destroy(). In preparation for splitting the offloading code
from the netdev-dpdk.c file to a separate file, it is required
to embed these RTE calls into a global netdev-dpdk-* API so that
they can be called from the new file. An example for this requirement
can be seen in the handling of dev->mutex, which should be encapsulated
inside netdev-dpdk class (netdev-dpdk.c file), and should be unknown
to the outside callers. This commit embeds the rte_flow_create() call
inside the netdev_dpdk_flow_create() API and the rte_flow_destroy()
call inside the netdev_dpdk_rte_flow_destroy() API.

Reviewed-by: Asaf Penso <asafp at mellanox.com>
Signed-off-by: Roni Bar Yanai <roniba at mellanox.com>
Signed-off-by: Ophir Munk <ophirmu at mellanox.com>
Co-authored-by: Ophir Munk <ophirmu at mellanox.com>
Acked-by: Ilya Maximets <i.maximets at samsung.com>
Signed-off-by: Ian Stokes <ian.stokes at intel.com>


  Commit: 3d67b2d28e7bbbddbf34f49ed6ea849d1b748219
      https://github.com/openvswitch/ovs/commit/3d67b2d28e7bbbddbf34f49ed6ea849d1b748219
  Author: Roni Bar Yanai <roniba at mellanox.com>
  Date:   2019-03-19 (Tue, 19 Mar 2019)

  Changed paths:
    M lib/automake.mk
    M lib/netdev-dpdk.c
    A lib/netdev-rte-offloads.c
    A lib/netdev-rte-offloads.h

  Log Message:
  -----------
  netdev-dpdk: Move offloading code to a new file

Hardware offloading code is moved to a new file called
netdev-rte-offloads.c. The original offloading code is copied
from the netdev-dpdk.c file to the new file, where future
offloading code should be added as well.
The copied code was refactored based on coding style.
The netdev-dpdk.c file will remain unchanged as new offloading
code is added.

Co-authored-by: Ophir Munk <ophirmu at mellanox.com>
Reviewed-by: Asaf Penso <asafp at mellanox.com>
Signed-off-by: Roni Bar Yanai <roniba at mellanox.com>
Signed-off-by: Ophir Munk <ophirmu at mellanox.com>
Acked-by: Ilya Maximets <i.maximets at samsung.com>
Signed-off-by: Ian Stokes <ian.stokes at intel.com>


  Commit: e0c58ca61c685bf633e52ab4965dd86e23879daf
      https://github.com/openvswitch/ovs/commit/e0c58ca61c685bf633e52ab4965dd86e23879daf
  Author: Ophir Munk <ophirmu at mellanox.com>
  Date:   2019-03-19 (Tue, 19 Mar 2019)

  Changed paths:
    M lib/netdev-rte-offloads.c
    M lib/netdev-rte-offloads.h

  Log Message:
  -----------
  netdev-rte-offloads: Rename netdev_dpdk_* functions

Rename all the netdev_dpdk_* functions names (originated from the file
netdev-dpdk.c) into the netdev_rte_offloads_* functions names.

Signed-off-by: Ophir Munk <ophirmu at mellanox.com>
Acked-by: Ilya Maximets <i.maximets at samsung.com>
Signed-off-by: Ian Stokes <ian.stokes at intel.com>


Compare: https://github.com/openvswitch/ovs/compare/2e97b8419c6e...e0c58ca61c68


More information about the git mailing list