Skip to content

bpftool: add tcx subcommand in net

Tao Chen bpf lkml 3 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. v3 Latest4 patches 1 replyApplied 1/4
  2. v24 patches 2 repliesSuperseded
  3. v1 RFC3 patches 3 repliesSuperseded

Patches in v3 Applied · 1/4

#Subject and filesSizeRepliesApplied
1/4bpftool: refactor xdp attach/detach type judgmenttools/bpf/bpftool/net.c+21 -50 repliesApplied
2/4bpftool: add net attach/detach command to tcx progtools/bpf/bpftool/net.c+42 -11 reply
3/4bpftool: add bash-completion for tcx subcommandtools/bpf/bpftool/bash-completion/bpftool+1 -10 replies
4/4bpftool: add document for net attach/detach on tcx subcommandtools/bpf/bpftool/Documentation/bpftool-net.rst+21 -10 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchQuentin Monnet
1/4A-b
2/4A-b
3/4A-b
4/4A-b

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

Read the v3 thread

Cover letter [v3 PATCH bpf-next 0/4] bpftool: add tcx subcommand in net

XDP prog has already realised with net attach/detach subcommand. As Qmonnet said [0], tcx prog may also can be added. So this patch set adds tcx subcommand in net attach/detach.

[0] https://github.com/libbpf/bpftool/issues/124

Change list:
- v2 -> v3:
- fix return value in patch2
- replace tabs with spaces patch2
- v1 -> v2:
- As suggested by Quentin, modification as fellows:
- refactor xdp attach/detach type judgment in patch1
- err handle fix for xdp in patch2
- change command tcx* to tcx_* in patch2
- some code modification for readable in patch2
- document modification for readable in patch4

Revisions:
- v1 https://lore.kernel.org/bpf/[email protected]
- v2 https://lore.kernel.org/bpf/[email protected]

Tao Chen (4):
bpftool: refactor xdp attach/detach type judgment
bpftool: add net attach/detach command to tcx prog
bpftool: add bash-completion for tcx subcommand
bpftool: add document for net attach/detach on tcx subcommand

 .../bpf/bpftool/Documentation/bpftool-net.rst | 22 +++++-
 tools/bpf/bpftool/bash-completion/bpftool     |  2 +-
 tools/bpf/bpftool/net.c                       | 69 +++++++++++++++++--
 3 files changed, 85 insertions(+), 8 deletions(-)
Signature · 1 line
2.34.1