On 26/09/2023 06:59, Daniel Borkmann wrote: > Add support to dump meta link information to bpftool in similar way > as we have for XDP. The meta link info only exposes the ifindex. > > Below shows an example link dump output, and a cgroup link is included > for comparison, too: > > # bpftool link > [...] > 10: cgroup prog 2466 > cgroup_id 1 attach_type cgroup_inet6_post_bind > [...] > 8: meta prog 35 > ifindex meta1(18) > [...] > > Equivalent json output: > > # bpftool link --json > [...] > { > "id": 10, > "type": "cgroup", > "prog_id": 2466, > "cgroup_id": 1, > "attach_type": "cgroup_inet6_post_bind" > }, > [...] > { > "id": 12, > "type": "meta", > "prog_id": 61, > "devname": "meta1", > "ifindex": 21 > } > [...] > > Signed-off-by: Daniel Borkmann <daniel@xxxxxxxxxxxxx> Reviewed-by: Quentin Monnet <quentin@xxxxxxxxxxxxx>