netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Toke Høiland-Jørgensen" <toke@redhat.com>
To: Saeed Mahameed <saeedm@mellanox.com>,
	"songliubraving\@fb.com" <songliubraving@fb.com>,
	"daniel\@iogearbox.net" <daniel@iogearbox.net>,
	"andrew.gospodarek\@broadcom.com"
	<andrew.gospodarek@broadcom.com>,
	"jesper.brouer\@gmail.com" <jesper.brouer@gmail.com>,
	"bblanco\@gmail.com" <bblanco@gmail.com>,
	"jakub.kicinski\@netronome.com" <jakub.kicinski@netronome.com>,
	"alexei.starovoitov\@gmail.com" <alexei.starovoitov@gmail.com>,
	"bjorn.topel\@gmail.com" <bjorn.topel@gmail.com>,
	"kafai\@fb.com" <kafai@fb.com>
Cc: "netdev\@vger.kernel.org" <netdev@vger.kernel.org>,
	"bpf\@vger.kernel.org" <bpf@vger.kernel.org>,
	"iovisor-dev\@lists.iovisor.org" <iovisor-dev@lists.iovisor.org>
Subject: Re: [RFC][Proposal] BPF Control MAP
Date: Wed, 20 Mar 2019 14:57:57 +0100	[thread overview]
Message-ID: <87tvfxr6l6.fsf@toke.dk> (raw)
In-Reply-To: <df010a2772ae07af29c9aac1c6d329b14203710c.camel@mellanox.com>

Saeed Mahameed <saeedm@mellanox.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

      parent reply	other threads:[~2019-03-20 13:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-08 20:51 [RFC][Proposal] BPF Control MAP Saeed Mahameed
2019-03-19 15:36 ` Alexei Starovoitov
2019-03-19 18:54   ` Saeed Mahameed
2019-03-20  3:04     ` Alexei Starovoitov
2019-03-20  4:47       ` Saeed Mahameed
2019-03-20  5:27         ` Alexei Starovoitov
2019-03-20 13:57 ` Toke Høiland-Jørgensen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tvfxr6l6.fsf@toke.dk \
    --to=toke@redhat.com \
    --cc=alexei.starovoitov@gmail.com \
    --cc=andrew.gospodarek@broadcom.com \
    --cc=bblanco@gmail.com \
    --cc=bjorn.topel@gmail.com \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=iovisor-dev@lists.iovisor.org \
    --cc=jakub.kicinski@netronome.com \
    --cc=jesper.brouer@gmail.com \
    --cc=kafai@fb.com \
    --cc=netdev@vger.kernel.org \
    --cc=saeedm@mellanox.com \
    --cc=songliubraving@fb.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).