From 91487a80551ea91714082da41aa49ba52dd6e9bb Mon Sep 17 00:00:00 2001 From: Eric Jallot Date: Mon, 4 Nov 2019 21:23:59 +0100 Subject: src: flowtable: add support for delete command by handle Also, display handle when listing with '-a'. Signed-off-by: Eric Jallot Signed-off-by: Pablo Neira Ayuso --- doc/libnftables-json.adoc | 3 +++ doc/nft.txt | 1 + 2 files changed, 4 insertions(+) (limited to 'doc') diff --git a/doc/libnftables-json.adoc b/doc/libnftables-json.adoc index 871480b9..858abbf7 100644 --- a/doc/libnftables-json.adoc +++ b/doc/libnftables-json.adoc @@ -409,6 +409,7 @@ ____ "family":* 'STRING'*, "table":* 'STRING'*, "name":* 'STRING'*, + "handle":* 'NUMBER'*, "hook":* 'STRING'*, "prio":* 'NUMBER'*, "dev":* 'FT_INTERFACE' @@ -426,6 +427,8 @@ This object represents a named flowtable. The table's name. *name*:: The flow table's name. +*handle*:: + The flow table's handle. In input, it is used by the *delete* command only. *hook*:: The flow table's hook. *prio*:: diff --git a/doc/nft.txt b/doc/nft.txt index ed215763..1521171b 100644 --- a/doc/nft.txt +++ b/doc/nft.txt @@ -588,6 +588,7 @@ FLOWTABLES {*add* | *create*} *flowtable* ['family'] 'table' 'flowtable' *{ hook* 'hook' *priority* 'priority' *; devices = {* 'device'[*,* ...] *} ; }* *list flowtables* ['family'] {*delete* | *list*} *flowtable* ['family'] 'table' 'flowtable' +*delete* *flowtable* ['family'] 'table' *handle* 'handle' Flowtables allow you to accelerate packet forwarding in software. Flowtables entries are represented through a tuple that is composed of the input interface, -- cgit v1.2.3