]> git.proxmox.com Git - mirror_ovs.git/commit - lib/netdev-dpdk.h
netdev-dpdk: Expose flow creation/destruction calls
authorRoni Bar Yanai <roniba@mellanox.com>
Tue, 5 Mar 2019 16:49:29 +0000 (16:49 +0000)
committerIan Stokes <ian.stokes@intel.com>
Tue, 19 Mar 2019 14:12:21 +0000 (14:12 +0000)
commit6775bdfc9b9451704a34a9a912c638b4a15471a0
tree3bbf979c05d341a5640faeabd76d8069736785db
parent2e97b8419c6e5285649f955a5f5a4f7c2875c877
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@mellanox.com>
Signed-off-by: Roni Bar Yanai <roniba@mellanox.com>
Signed-off-by: Ophir Munk <ophirmu@mellanox.com>
Co-authored-by: Ophir Munk <ophirmu@mellanox.com>
Acked-by: Ilya Maximets <i.maximets@samsung.com>
Signed-off-by: Ian Stokes <ian.stokes@intel.com>
lib/netdev-dpdk.c
lib/netdev-dpdk.h