Skip to content

bpf, xdp: Add tracepoint to xdp attaching failure

Leon Hwang bpf linux-kselftest linux-trace-kernel lkml netdev 4 versions – Applied

Status from this message: This series was applied to bpf/bpf-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest2 patches 2 repliesApplied 2/2
  2. v42 patches 4 repliesSuperseded
  3. v3 posting 2/22 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v3 posting 1/22 patches2 repliesSuperseded

Changes in v5 from the cover letter

* Initialise the extack variable.
* Fix code style issue of variable declaration lines.

Patches in v5 All 2 applied

#Subject and filesSizeRepliesApplied
1/2bpf, xdp: Add tracepoint to xdp attaching failureinclude/trace/events/xdp.h net/core/dev.c+21 -12 repliesApplied
2/2selftests/bpf: Add testcase for xdp attaching failure tracepointtools/testing/selftests/bpf/prog_tests/xdp_attach.c tools/testing/selftests/bpf/progs/test_xdp_attach_fail.c+119 -00 repliesApplied

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchJakub Kicinski
1/2Whatevered-by
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

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

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

Signature · 1 line
2.41.0