From 4e8839b6d78c7629cd2c1daee0438472c96365a4 Mon Sep 17 00:00:00 2001 From: Nicolas Fort Date: Tue, 21 Nov 2023 17:36:20 +0000 Subject: T5419: firewall: backport firewall flowtable to Sagitta. --- interface-definitions/firewall.xml.in | 40 +++++++++++++++++++ .../include/firewall/action-forward.xml.i | 45 ++++++++++++++++++++++ .../include/firewall/ipv4-hook-forward.xml.i | 2 + .../include/firewall/ipv6-hook-forward.xml.i | 2 + .../include/firewall/offload-target.xml.i | 10 +++++ interface-definitions/interfaces-ethernet.xml.in | 6 +++ 6 files changed, 105 insertions(+) create mode 100644 interface-definitions/include/firewall/action-forward.xml.i create mode 100644 interface-definitions/include/firewall/offload-target.xml.i (limited to 'interface-definitions') diff --git a/interface-definitions/firewall.xml.in b/interface-definitions/firewall.xml.in index 4704b200e..0bb14a1b3 100644 --- a/interface-definitions/firewall.xml.in +++ b/interface-definitions/firewall.xml.in @@ -7,6 +7,46 @@ #include + + + Flowtable + + [a-zA-Z0-9][\w\-\.]* + + + + #include + + + Interfaces to use this flowtable + + + + + + + + + Offloading method + + hardware software + + + hardware + Hardware offload + + + software + Software offload + + + (hardware|software) + + + software + + + Firewall group diff --git a/interface-definitions/include/firewall/action-forward.xml.i b/interface-definitions/include/firewall/action-forward.xml.i new file mode 100644 index 000000000..87da72c97 --- /dev/null +++ b/interface-definitions/include/firewall/action-forward.xml.i @@ -0,0 +1,45 @@ + + + + Rule action + + accept continue jump reject return drop queue offload + + + accept + Accept matching entries + + + continue + Continue parsing next rule + + + jump + Jump to another chain + + + reject + Reject matching entries + + + return + Return from the current chain and continue at the next rule of the last chain + + + drop + Drop matching entries + + + queue + Enqueue packet to userspace + + + offload + Offload packet via flowtable + + + (accept|continue|jump|reject|return|drop|queue|offload) + + + + \ No newline at end of file diff --git a/interface-definitions/include/firewall/ipv4-hook-forward.xml.i b/interface-definitions/include/firewall/ipv4-hook-forward.xml.i index 9831498c9..100f1c3d9 100644 --- a/interface-definitions/include/firewall/ipv4-hook-forward.xml.i +++ b/interface-definitions/include/firewall/ipv4-hook-forward.xml.i @@ -25,8 +25,10 @@ Firewall rule number must be between 1 and 999999 + #include #include #include + #include #include diff --git a/interface-definitions/include/firewall/ipv6-hook-forward.xml.i b/interface-definitions/include/firewall/ipv6-hook-forward.xml.i index 5c86871e5..fb38267eb 100644 --- a/interface-definitions/include/firewall/ipv6-hook-forward.xml.i +++ b/interface-definitions/include/firewall/ipv6-hook-forward.xml.i @@ -25,8 +25,10 @@ Firewall rule number must be between 1 and 999999 + #include #include #include + #include #include diff --git a/interface-definitions/include/firewall/offload-target.xml.i b/interface-definitions/include/firewall/offload-target.xml.i new file mode 100644 index 000000000..b1ae39100 --- /dev/null +++ b/interface-definitions/include/firewall/offload-target.xml.i @@ -0,0 +1,10 @@ + + + + Set flowtable offload target. Action offload must be defined to use this setting + + firewall flowtable + + + + \ No newline at end of file diff --git a/interface-definitions/interfaces-ethernet.xml.in b/interface-definitions/interfaces-ethernet.xml.in index 3669336fd..5aaa7095c 100644 --- a/interface-definitions/interfaces-ethernet.xml.in +++ b/interface-definitions/interfaces-ethernet.xml.in @@ -80,6 +80,12 @@ + + + Enable Hardware Flow Offload + + + Enable Large Receive Offload -- cgit v1.2.3