From bbfe6b54b58b68768f6427496d8ac3c1ef38da93 Mon Sep 17 00:00:00 2001 From: Nicolas Fort Date: Mon, 27 Feb 2023 20:11:35 +0000 Subject: T5037: Firewall: Add queue action and options to firewall --- .../include/firewall/action.xml.i | 8 +++-- .../include/firewall/nft-queue.xml.i | 34 ++++++++++++++++++++++ 2 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 interface-definitions/include/firewall/nft-queue.xml.i (limited to 'interface-definitions/include/firewall') diff --git a/interface-definitions/include/firewall/action.xml.i b/interface-definitions/include/firewall/action.xml.i index 468340cbb..7c6e33839 100644 --- a/interface-definitions/include/firewall/action.xml.i +++ b/interface-definitions/include/firewall/action.xml.i @@ -3,7 +3,7 @@ Rule action - accept jump reject return drop + accept jump reject return drop queue accept @@ -25,8 +25,12 @@ drop Drop matching entries + + queue + Enqueue packet to userspace + - (accept|jump|reject|return|drop) + (accept|jump|reject|return|drop|queue) diff --git a/interface-definitions/include/firewall/nft-queue.xml.i b/interface-definitions/include/firewall/nft-queue.xml.i new file mode 100644 index 000000000..8799eac74 --- /dev/null +++ b/interface-definitions/include/firewall/nft-queue.xml.i @@ -0,0 +1,34 @@ + + + + Queue target to use. Action queue must be defined to use this setting + + u32:0-65535 + Queue target + + + + + + + + + Options used for queue target. Action queue must be defined to use this setting + + bypass fanout + + + bypass + Let packets go through if userspace application cannot back off + + + fanout + Distribute packets between several queues + + + (bypass|fanout) + + + + + \ No newline at end of file -- cgit v1.2.3