From 54d105f7ca0754a0a05c5d7b0f088033dd16ff75 Mon Sep 17 00:00:00 2001 From: Sean Khan Date: Tue, 27 May 2025 19:13:10 -0400 Subject: [PATCH] nss-drv: additional fixes for kernel 6.12 Fixes the following sysctl table check failures: [Tue May 27 17:37:40 2025] sysctl table check failed: dev/nss/ppe_vp/(null) procname is null [Tue May 27 17:37:40 2025] sysctl table check failed: dev/nss/ppe_vp/(null) No proc_handler [Tue May 27 17:37:40 2025] sysctl table check failed: dev/nss/pppoe/(null) procname is null [Tue May 27 17:37:40 2025] sysctl table check failed: dev/nss/pppoe/(null) No proc_handler Signed-off-by: Sean Khan --- ...-nss-drv-add-support-for-kernel-6.12.patch | 10 ++++++++++ ...-nss-drv-add-support-for-kernel-6.12.patch | 20 +++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/qca-nss-drv/patches-11.4/0026-nss-drv-add-support-for-kernel-6.12.patch b/qca-nss-drv/patches-11.4/0026-nss-drv-add-support-for-kernel-6.12.patch index 702aded..0ae297f 100644 --- a/qca-nss-drv/patches-11.4/0026-nss-drv-add-support-for-kernel-6.12.patch +++ b/qca-nss-drv/patches-11.4/0026-nss-drv-add-support-for-kernel-6.12.patch @@ -667,6 +667,16 @@ { int32_t if_num; struct nss_ctx_instance *nss_ctx = nss_ppe_vp_get_context(); +@@ -779,8 +779,7 @@ static struct ctl_table nss_ppe_vp_table + .maxlen = sizeof(nss_ppe_vp_cmd), + .mode = 0644, + .proc_handler = &nss_ppe_vp_destroy_handler, +- }, +- { } ++ } + }; + + static struct ctl_table_header *nss_ppe_vp_procfs_header; --- a/nss_pppoe.c +++ b/nss_pppoe.c @@ -203,7 +203,7 @@ static void nss_pppoe_handler(struct nss diff --git a/qca-nss-drv/patches/0026-nss-drv-add-support-for-kernel-6.12.patch b/qca-nss-drv/patches/0026-nss-drv-add-support-for-kernel-6.12.patch index ca3a03e..7ceeb42 100644 --- a/qca-nss-drv/patches/0026-nss-drv-add-support-for-kernel-6.12.patch +++ b/qca-nss-drv/patches/0026-nss-drv-add-support-for-kernel-6.12.patch @@ -675,6 +675,16 @@ { int32_t if_num; struct nss_ctx_instance *nss_ctx = nss_ppe_vp_get_context(); +@@ -779,8 +779,7 @@ static struct ctl_table nss_ppe_vp_table + .maxlen = sizeof(nss_ppe_vp_cmd), + .mode = 0644, + .proc_handler = &nss_ppe_vp_destroy_handler, +- }, +- { } ++ } + }; + + static struct ctl_table_header *nss_ppe_vp_procfs_header; --- a/nss_pppoe.c +++ b/nss_pppoe.c @@ -203,7 +203,7 @@ static void nss_pppoe_handler(struct nss @@ -686,6 +696,16 @@ { struct nss_ctx_instance *nss_ctx = nss_pppoe_get_context(); struct nss_pppoe_msg npm; +@@ -349,8 +349,7 @@ static struct ctl_table nss_pppoe_table[ + .maxlen = sizeof(int), + .mode = 0644, + .proc_handler = &nss_pppoe_br_accel_mode_handler, +- }, +- { } ++ } + }; + + static struct ctl_table_header *nss_pppoe_header; --- a/nss_project.c +++ b/nss_project.c @@ -235,7 +235,7 @@ static void nss_project_msg_handler(stru