diff mbox series

[PATCH-22.03,2/4] kernel: support more encap for flowtable

Message ID 1669289048-51420-2-git-send-email-lxliu@ikuai8.com
State New
Headers show
Series [PATCH-22.03,1/4] kernel: fix flowtable pppoe header offset bug | expand

Commit Message

LiXiong Liu Nov. 24, 2022, 11:24 a.m. UTC
Some need use 8021q + 8021q + pppoe,
The current encap number cannot meet the demand.

Signed-off-by: LiXiong Liu <lxliu@ikuai8.com>
---
 ...02-netfilter-flowtable-support-more-encap.patch | 24 ++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 target/linux/generic/pending-5.10/706-02-netfilter-flowtable-support-more-encap.patch
diff mbox series

Patch

diff --git a/target/linux/generic/pending-5.10/706-02-netfilter-flowtable-support-more-encap.patch b/target/linux/generic/pending-5.10/706-02-netfilter-flowtable-support-more-encap.patch
new file mode 100644
index 0000000..2216a2b
--- /dev/null
+++ b/target/linux/generic/pending-5.10/706-02-netfilter-flowtable-support-more-encap.patch
@@ -0,0 +1,24 @@ 
+--- a/include/linux/netdevice.h
++++ b/include/linux/netdevice.h
+@@ -882,8 +882,8 @@ struct net_device_path {
+ 	};
+ };
+ 
+-#define NET_DEVICE_PATH_STACK_MAX	5
+-#define NET_DEVICE_PATH_VLAN_MAX	2
++#define NET_DEVICE_PATH_STACK_MAX	8
++#define NET_DEVICE_PATH_VLAN_MAX	3
+ 
+ struct net_device_path_stack {
+ 	int			num_paths;
+--- a/include/net/netfilter/nf_flow_table.h
++++ b/include/net/netfilter/nf_flow_table.h
+@@ -96,7 +96,7 @@ enum flow_offload_xmit_type {
+ 	FLOW_OFFLOAD_XMIT_DIRECT,
+ };
+ 
+-#define NF_FLOW_TABLE_ENCAP_MAX		2
++#define NF_FLOW_TABLE_ENCAP_MAX		3
+ 
+ struct flow_offload_tuple {
+ 	union {