From fa42f2118746f35ae6883ef5b0d4758863282fc9 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sun, 3 Dec 2017 21:27:03 +0100 Subject: src: flow offload support This patch allows us to refer to existing flowtables: # nft add rule x x flow offload @m Packets matching this rule create an entry in the flow table 'm', hence, follow up packets that get to the flowtable at ingress bypass the classic forwarding path. Signed-off-by: Pablo Neira Ayuso --- include/ct.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/ct.h') diff --git a/include/ct.h b/include/ct.h index ec5d55d8..2c3392d3 100644 --- a/include/ct.h +++ b/include/ct.h @@ -29,6 +29,8 @@ extern struct expr *ct_expr_alloc(const struct location *loc, extern void ct_expr_update_type(struct proto_ctx *ctx, struct expr *expr); extern struct stmt *notrack_stmt_alloc(const struct location *loc); +extern struct stmt *flow_offload_stmt_alloc(const struct location *loc, + const char *table_name); extern const struct datatype ct_dir_type; extern const struct datatype ct_state_type; -- cgit v1.2.3