mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
dpif-netdev: Add command line and function pointer for miniflow extract
This patch introduces the MFEX function pointers which allows the user to switch between different miniflow extract implementations which are provided by the OVS based on optimized ISA CPU. The user can query for the available minflow extract variants available for that CPU by following commands: $ovs-appctl dpif-netdev/miniflow-parser-get Similarly an user can set the miniflow implementation by the following command : $ ovs-appctl dpif-netdev/miniflow-parser-set name This allows for more performance and flexibility to the user to choose the miniflow implementation according to the needs. Signed-off-by: Kumar Amber <kumar.amber@intel.com> Co-authored-by: Harry van Haaren <harry.van.haaren@intel.com> Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com> Acked-by: Eelco Chaudron <echaudro@redhat.com> Acked-by: Flavio Leitner <fbl@sysclose.org> Signed-off-by: Ian Stokes <ian.stokes@intel.com>
This commit is contained in:
@@ -27,6 +27,11 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#include "cmap.h"
|
||||
|
||||
#include "dpif-netdev-private-dfc.h"
|
||||
#include "dpif-netdev-private-dpif.h"
|
||||
#include "dpif-netdev-perf.h"
|
||||
#include "dpif-netdev-private-extract.h"
|
||||
#include "openvswitch/thread.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
@@ -110,6 +115,9 @@ struct dp_netdev_pmd_thread {
|
||||
/* Pointer for per-DPIF implementation scratch space. */
|
||||
void *netdev_input_func_userdata;
|
||||
|
||||
/* Function pointer to call for miniflow_extract() functionality. */
|
||||
ATOMIC(miniflow_extract_func) miniflow_extract_opt;
|
||||
|
||||
struct seq *reload_seq;
|
||||
uint64_t last_reload_seq;
|
||||
|
||||
|
Reference in New Issue
Block a user