mbox series

[bpf-next,v5,0/2] bpf, xdp: Add tracepoint to xdp attaching failure

Message ID 20230801142621.7925-1-hffilwlqm@gmail.com (mailing list archive)
Headers show
Series bpf, xdp: Add tracepoint to xdp attaching failure | expand

Message

Leon Hwang Aug. 1, 2023, 2:26 p.m. UTC
This series introduces a new tracepoint in bpf_xdp_link_attach(). By
this tracepoint, error message will be captured when error happens in
dev_xdp_attach(), e.g. invalid attaching flags.

v4 -> v5:
* Initialise the extack variable.
* Fix code style issue of variable declaration lines.

v3 -> v4:
* Fix selftest-crashed issue.

Leon Hwang (2):
  bpf, xdp: add tracepoint to xdp attaching failure
  selftests/bpf: Add testcase for xdp attaching failure tracepoint

 include/trace/events/xdp.h                    | 17 +++++
 net/core/dev.c                                |  5 +-
 .../selftests/bpf/prog_tests/xdp_attach.c     | 65 +++++++++++++++++++
 .../bpf/progs/test_xdp_attach_fail.c          | 54 +++++++++++++++
 4 files changed, 140 insertions(+), 1 deletion(-)
 create mode 100644 tools/testing/selftests/bpf/progs/test_xdp_attach_fail.c


base-commit: a33d978500acd8fb67efac9773ba0a8502c1ff06

Comments

patchwork-bot+netdevbpf@kernel.org Aug. 2, 2023, 9:40 p.m. UTC | #1
Hello:

This series was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@kernel.org>:

On Tue,  1 Aug 2023 22:26:19 +0800 you wrote:
> This series introduces a new tracepoint in bpf_xdp_link_attach(). By
> this tracepoint, error message will be captured when error happens in
> dev_xdp_attach(), e.g. invalid attaching flags.
> 
> v4 -> v5:
> * Initialise the extack variable.
> * Fix code style issue of variable declaration lines.
> 
> [...]

Here is the summary with links:
  - [bpf-next,v5,1/2] bpf, xdp: Add tracepoint to xdp attaching failure
    https://git.kernel.org/bpf/bpf-next/c/bf4ea1d0b2cb
  - [bpf-next,v5,2/2] selftests/bpf: Add testcase for xdp attaching failure tracepoint
    https://git.kernel.org/bpf/bpf-next/c/7fedbf32fcc7

You are awesome, thank you!