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 <datapronix@protonmail.com>
This commit is contained in:
Sean Khan 2025-05-27 19:13:10 -04:00
parent 9762fbaabe
commit 54d105f7ca
2 changed files with 30 additions and 0 deletions

View File

@ -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

View File

@ -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