From d42bd56cff1a22301703d2b9d6d6fc937ea7cfbd Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 3 Mar 2020 13:14:59 +0100 Subject: src: support for offload chain flag This patch extends the basechain definition to allow users to specify the offload flag. This flag enables hardware offload if your drivers supports it. # cat file.nft table netdev x { chain y { type filter hook ingress device eth0 priority 10; flags offload; } } # nft -f file.nft Note: You have to enable offload via ethtool: # ethtool -K eth0 hw-tc-offload on Signed-off-by: Pablo Neira Ayuso --- include/rule.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/rule.h b/include/rule.h index ced63f3e..224e6871 100644 --- a/include/rule.h +++ b/include/rule.h @@ -175,6 +175,7 @@ extern struct table *table_lookup_fuzzy(const struct handle *h, */ enum chain_flags { CHAIN_F_BASECHAIN = 0x1, + CHAIN_F_HW_OFFLOAD = 0x2, }; /** -- cgit v1.2.3