[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e8b49f3c-e950-4b8e-8169-daa6ffeb596c@isovalent.com>
Date: Tue, 26 Sep 2023 12:19:09 +0100
From: Quentin Monnet <quentin@...valent.com>
To: Daniel Borkmann <daniel@...earbox.net>, bpf@...r.kernel.org
Cc: netdev@...r.kernel.org, martin.lau@...nel.org, razor@...ckwall.org,
ast@...nel.org, andrii@...nel.org, john.fastabend@...il.com
Subject: Re: [PATCH bpf-next 5/8] bpftool: Implement link show support for
meta
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@...earbox.net>
Reviewed-by: Quentin Monnet <quentin@...valent.com>
Powered by blists - more mailing lists