Skip to content

Commit

Permalink
bpf/bpftool: add missing link types
Browse files Browse the repository at this point in the history
Will display the link type names in bpftool link show output

Signed-off-by: Milan Landaverde <milan@mdaverde.com>
  • Loading branch information
mdaverde authored and Nobody committed Mar 31, 2022
1 parent 08e4f95 commit de0973e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/bpf/bpftool/link.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ static const char * const link_type_name[] = {
[BPF_LINK_TYPE_CGROUP] = "cgroup",
[BPF_LINK_TYPE_ITER] = "iter",
[BPF_LINK_TYPE_NETNS] = "netns",
[BPF_LINK_TYPE_XDP] = "xdp",
[BPF_LINK_TYPE_PERF_EVENT] = "perf_event",
};

static struct hashmap *link_table;
Expand Down

0 comments on commit de0973e

Please sign in to comment.