From 8b668ee3f0cc297783449619a34dbde275c9cc70 Mon Sep 17 00:00:00 2001 From: Paul Blakey Date: Tue, 13 Jun 2017 18:03:38 +0300 Subject: 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 Reviewed-by: Roi Dayan Acked-by: Flavio Leitner Signed-off-by: Simon Horman --- lib/odp-util.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/odp-util.h') 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); -- cgit v1.2.1