diff mbox series

[nf-next] netfilter: bpf: Remove bpf_nf_func_proto

Message ID 20250515013221.25503-1-yangfeng59949@163.com
State Awaiting Upstream
Headers show
Series [nf-next] netfilter: bpf: Remove bpf_nf_func_proto | expand

Commit Message

Feng Yang May 15, 2025, 1:32 a.m. UTC
From: Feng Yang <yangfeng@kylinos.cn>

Only use bpf_base_func_proto, so bpf_nf_func_proto can be removed

Signed-off-by: Feng Yang <yangfeng@kylinos.cn>
---
 net/netfilter/nf_bpf_link.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
diff mbox series

Patch

diff --git a/net/netfilter/nf_bpf_link.c b/net/netfilter/nf_bpf_link.c
index 06b084844700..f277722f9025 100644
--- a/net/netfilter/nf_bpf_link.c
+++ b/net/netfilter/nf_bpf_link.c
@@ -316,13 +316,7 @@  static bool nf_is_valid_access(int off, int size, enum bpf_access_type type,
 	return false;
 }
 
-static const struct bpf_func_proto *
-bpf_nf_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
-{
-	return bpf_base_func_proto(func_id, prog);
-}
-
 const struct bpf_verifier_ops netfilter_verifier_ops = {
 	.is_valid_access	= nf_is_valid_access,
-	.get_func_proto		= bpf_nf_func_proto,
+	.get_func_proto		= bpf_base_func_proto,
 };