Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1547472 > unrolled thread

[PATCH net] net: xdp: remove unused bfp_warn_invalid_xdp_buffer()

Started byJason Wang <jasowang@redhat.com>
First post2016-12-27 04:00 +0100
Last post2016-12-27 18:40 +0100
Articles 3 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH net] net: xdp: remove unused bfp_warn_invalid_xdp_buffer() Jason Wang <jasowang@redhat.com> - 2016-12-27 04:00 +0100
    Re: [PATCH net] net: xdp: remove unused bfp_warn_invalid_xdp_buffer() Daniel Borkmann <daniel@iogearbox.net> - 2016-12-27 10:30 +0100
    Re: [PATCH net] net: xdp: remove unused  bfp_warn_invalid_xdp_buffer() David Miller <davem@davemloft.net> - 2016-12-27 18:40 +0100

#1547472 — [PATCH net] net: xdp: remove unused bfp_warn_invalid_xdp_buffer()

FromJason Wang <jasowang@redhat.com>
Date2016-12-27 04:00 +0100
Subject[PATCH net] net: xdp: remove unused bfp_warn_invalid_xdp_buffer()
Message-ID<sSQ9z-4CO-3@gated-at.bofh.it>
After commit 73b62bd085f4737679ea9afc7867fa5f99ba7d1b ("virtio-net:
remove the warning before XDP linearizing"), there's no users for
bpf_warn_invalid_xdp_buffer(), so remove it. This is a revert for
commit f23bc46c30ca5ef58b8549434899fcbac41b2cfc.

Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
---
 include/linux/filter.h | 1 -
 net/core/filter.c      | 6 ------
 2 files changed, 7 deletions(-)

diff --git a/include/linux/filter.h b/include/linux/filter.h
index 7023142..a0934e6 100644
--- a/include/linux/filter.h
+++ b/include/linux/filter.h
@@ -610,7 +610,6 @@ bool bpf_helper_changes_pkt_data(void *func);
 struct bpf_prog *bpf_patch_insn_single(struct bpf_prog *prog, u32 off,
 				       const struct bpf_insn *patch, u32 len);
 void bpf_warn_invalid_xdp_action(u32 act);
-void bpf_warn_invalid_xdp_buffer(void);
 
 #ifdef CONFIG_BPF_JIT
 extern int bpf_jit_enable;
diff --git a/net/core/filter.c b/net/core/filter.c
index 7190bd6..b146170 100644
--- a/net/core/filter.c
+++ b/net/core/filter.c
@@ -2972,12 +2972,6 @@ void bpf_warn_invalid_xdp_action(u32 act)
 }
 EXPORT_SYMBOL_GPL(bpf_warn_invalid_xdp_action);
 
-void bpf_warn_invalid_xdp_buffer(void)
-{
-	WARN_ONCE(1, "Illegal XDP buffer encountered, expect throughput degradation\n");
-}
-EXPORT_SYMBOL_GPL(bpf_warn_invalid_xdp_buffer);
-
 static u32 sk_filter_convert_ctx_access(enum bpf_access_type type, int dst_reg,
 					int src_reg, int ctx_off,
 					struct bpf_insn *insn_buf,
-- 
2.7.4

[toc] | [next] | [standalone]


#1547530

FromDaniel Borkmann <daniel@iogearbox.net>
Date2016-12-27 10:30 +0100
Message-ID<sSWeZ-eg-23@gated-at.bofh.it>
In reply to#1547472
On 12/27/2016 03:49 AM, Jason Wang wrote:
> After commit 73b62bd085f4737679ea9afc7867fa5f99ba7d1b ("virtio-net:
> remove the warning before XDP linearizing"), there's no users for
> bpf_warn_invalid_xdp_buffer(), so remove it. This is a revert for
> commit f23bc46c30ca5ef58b8549434899fcbac41b2cfc.
>
> Cc: Daniel Borkmann <daniel@iogearbox.net>
> Cc: John Fastabend <john.r.fastabend@intel.com>
> Signed-off-by: Jason Wang <jasowang@redhat.com>

Thanks for following up.

Acked-by: Daniel Borkmann <daniel@iogearbox.net>

[toc] | [prev] | [next] | [standalone]


#1547706 — Re: [PATCH net] net: xdp: remove unused bfp_warn_invalid_xdp_buffer()

FromDavid Miller <davem@davemloft.net>
Date2016-12-27 18:40 +0100
SubjectRe: [PATCH net] net: xdp: remove unused bfp_warn_invalid_xdp_buffer()
Message-ID<sT3Tc-53g-17@gated-at.bofh.it>
In reply to#1547472
From: Jason Wang <jasowang@redhat.com>
Date: Tue, 27 Dec 2016 10:49:54 +0800

> After commit 73b62bd085f4737679ea9afc7867fa5f99ba7d1b ("virtio-net:
> remove the warning before XDP linearizing"), there's no users for
> bpf_warn_invalid_xdp_buffer(), so remove it. This is a revert for
> commit f23bc46c30ca5ef58b8549434899fcbac41b2cfc.
> 
> Cc: Daniel Borkmann <daniel@iogearbox.net>
> Cc: John Fastabend <john.r.fastabend@intel.com>
> Signed-off-by: Jason Wang <jasowang@redhat.com>

Applied.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web