[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87tvfxr6l6.fsf@toke.dk>
Date: Wed, 20 Mar 2019 14:57:57 +0100
From: Toke Høiland-Jørgensen <toke@...hat.com>
To: Saeed Mahameed <saeedm@...lanox.com>,
"songliubraving\@fb.com" <songliubraving@...com>,
"daniel\@iogearbox.net" <daniel@...earbox.net>,
"andrew.gospodarek\@broadcom.com" <andrew.gospodarek@...adcom.com>,
"jesper.brouer\@gmail.com" <jesper.brouer@...il.com>,
"bblanco\@gmail.com" <bblanco@...il.com>,
"jakub.kicinski\@netronome.com" <jakub.kicinski@...ronome.com>,
"alexei.starovoitov\@gmail.com" <alexei.starovoitov@...il.com>,
"bjorn.topel\@gmail.com" <bjorn.topel@...il.com>,
"kafai\@fb.com" <kafai@...com>
Cc: "netdev\@vger.kernel.org" <netdev@...r.kernel.org>,
"bpf\@vger.kernel.org" <bpf@...r.kernel.org>,
"iovisor-dev\@lists.iovisor.org" <iovisor-dev@...ts.iovisor.org>
Subject: Re: [RFC][Proposal] BPF Control MAP
Saeed Mahameed <saeedm@...lanox.com> writes:
> In this proposal I am going to address the lack of a unified user API
> for accessing and manipulating BPF system attributes, while this
> proposal is generic and will work on any BPF subsystem (eBPF attach
> points), I will mostly focus on XDP use cases.
>
> So lately I started working on three different XDP open issues, namely
> XDP statistic, XDP redirect and XDP meta-data, while the details of
> these issues are not really relevant for the sake of this proposal, all
> of them share one common problem: the lack of unified user interface to
> manipulate and access their attributes.
>
> Examples:
> 1. Query XDP statistics.
> 2. XDP resource management, Setup XDP-redirect TX resources.
> 3. Setup and query XDP-metadata - (BTF data structure).
>
> Jesper Brouer, explains some of these issues in details at:
> https://github.com/xdp-project/xdp-project/blob/master/xdp-project.org
>
> Yes I considered, netlink, devlink, ethtool, sysctrl, etc .. but each
> one of them has it's own drawback, they are networking specific and
> will not serve the BPF general purpose.
The one concern I have with this is that it makes XDP configuration
different from regular networking configuration. One of the compelling
features of XDP is that it is less surprising than kernel offloads,
because that you can interface with it using the regular kernel tooling.
This is less the case if we're doing a BPF-specific thing...
Or to put it another way, in my mind XDP is a networking technology that
happens to use eBPF, more than it is an eBPF usage that happens to
process packets; and I think it would make more sense for the userspace
tooling to reflect this.
That being said, I do agree that there are some cool ideas in your
example, such as using BTF to express the statistics format, and the
automatic enumeration of objects.
-Toke
Powered by blists - more mailing lists