diff options
author | Paul Blakey <paulb@mellanox.com> | 2017-06-13 18:03:38 +0300 |
---|---|---|
committer | Simon Horman <simon.horman@netronome.com> | 2017-06-15 11:41:51 +0200 |
commit | 8b668ee3f0cc297783449619a34dbde275c9cc70 (patch) | |
tree | b7f75e30aec28f8de2f5b64e7f894d00b1eb0545 /lib/odp-util.h | |
parent | 8f7620e6a406df7212400ba5d25ef789d1df33e6 (diff) | |
download | openvswitch-8b668ee3f0cc297783449619a34dbde275c9cc70.tar.gz |
dpif-netlink: Use netdev flow put api to insert a flow
Using the new netdev flow api operate will now try and
offload flows to the relevant netdev of the input port.
Other operate methods flows will come in later patches.
Signed-off-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Acked-by: Flavio Leitner <fbl@sysclose.org>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Diffstat (limited to 'lib/odp-util.h')
-rw-r--r-- | lib/odp-util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/odp-util.h b/lib/odp-util.h index 76dc8abbb..12fd834e7 100644 --- a/lib/odp-util.h +++ b/lib/odp-util.h @@ -256,6 +256,9 @@ enum odp_key_fitness odp_flow_key_to_mask(const struct nlattr *mask_key, size_t mask_key_len, struct flow_wildcards *mask, const struct flow *flow); +int parse_key_and_mask_to_match(const struct nlattr *key, size_t key_len, + const struct nlattr *mask, size_t mask_len, + struct match *match); const char *odp_key_fitness_to_string(enum odp_key_fitness); |