* [Patch bpf-next] net: filter: Remove unused bpf_load_pointer
@ 2021-03-30 2:48 He Fengqing
2021-03-30 18:08 ` Song Liu
2021-03-30 21:00 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: He Fengqing @ 2021-03-30 2:48 UTC (permalink / raw)
To: bpf, netdev, linux-kernel
Cc: ast, daniel, andrii, kafai, ongliubraving, yhs, john.fastabend, kpsingh
Remove unused bpf_load_pointer function in filter.h
Signed-off-by: He Fengqing <hefengqing@huawei.com>
---
include/linux/filter.h | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/include/linux/filter.h b/include/linux/filter.h
index eecfd82db648..9a09547bc7ba 100644
--- a/include/linux/filter.h
+++ b/include/linux/filter.h
@@ -1246,15 +1246,6 @@ static inline u16 bpf_anc_helper(const struct sock_filter *ftest)
void *bpf_internal_load_pointer_neg_helper(const struct sk_buff *skb,
int k, unsigned int size);
-static inline void *bpf_load_pointer(const struct sk_buff *skb, int k,
- unsigned int size, void *buffer)
-{
- if (k >= 0)
- return skb_header_pointer(skb, k, size, buffer);
-
- return bpf_internal_load_pointer_neg_helper(skb, k, size);
-}
-
static inline int bpf_tell_extensions(void)
{
return SKF_AD_MAX;
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Patch bpf-next] net: filter: Remove unused bpf_load_pointer
2021-03-30 2:48 [Patch bpf-next] net: filter: Remove unused bpf_load_pointer He Fengqing
@ 2021-03-30 18:08 ` Song Liu
2021-03-30 21:00 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Song Liu @ 2021-03-30 18:08 UTC (permalink / raw)
To: He Fengqing
Cc: bpf, Networking, open list, Alexei Starovoitov, Daniel Borkmann,
Andrii Nakryiko, Martin KaFai Lau, ongliubraving, Yonghong Song,
John Fastabend, KP Singh
On Mon, Mar 29, 2021 at 7:11 PM He Fengqing <hefengqing@huawei.com> wrote:
>
> Remove unused bpf_load_pointer function in filter.h
>
> Signed-off-by: He Fengqing <hefengqing@huawei.com>
Acked-by: Song Liu <songliubraving@fb.com>
[...]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Patch bpf-next] net: filter: Remove unused bpf_load_pointer
2021-03-30 2:48 [Patch bpf-next] net: filter: Remove unused bpf_load_pointer He Fengqing
2021-03-30 18:08 ` Song Liu
@ 2021-03-30 21:00 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-03-30 21:00 UTC (permalink / raw)
To: He Fengqing
Cc: bpf, netdev, linux-kernel, ast, daniel, andrii, kafai,
ongliubraving, yhs, john.fastabend, kpsingh
Hello:
This patch was applied to bpf/bpf-next.git (refs/heads/master):
On Tue, 30 Mar 2021 02:48:43 +0000 you wrote:
> Remove unused bpf_load_pointer function in filter.h
>
> Signed-off-by: He Fengqing <hefengqing@huawei.com>
> ---
> include/linux/filter.h | 9 ---------
> 1 file changed, 9 deletions(-)
Here is the summary with links:
- [bpf-next] net: filter: Remove unused bpf_load_pointer
https://git.kernel.org/bpf/bpf-next/c/913d55037616
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-03-30 21:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-30 2:48 [Patch bpf-next] net: filter: Remove unused bpf_load_pointer He Fengqing
2021-03-30 18:08 ` Song Liu
2021-03-30 21:00 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).