[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20250515013221.25503-1-yangfeng59949@163.com>
Date: Thu, 15 May 2025 09:32:21 +0800
From: Feng Yang <yangfeng59949@....com>
To: pablo@...filter.org,
kadlec@...filter.org,
davem@...emloft.net,
edumazet@...gle.com,
kuba@...nel.org,
pabeni@...hat.com,
horms@...nel.org
Cc: netfilter-devel@...r.kernel.org,
coreteam@...filter.org,
netdev@...r.kernel.org,
linux-kernel@...r.kernel.org,
bpf@...r.kernel.org
Subject: [PATCH nf-next] netfilter: bpf: Remove bpf_nf_func_proto
From: Feng Yang <yangfeng@...inos.cn>
Only use bpf_base_func_proto, so bpf_nf_func_proto can be removed
Signed-off-by: Feng Yang <yangfeng@...inos.cn>
---
net/netfilter/nf_bpf_link.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
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,
};
--
2.43.0
Powered by blists - more mailing lists