public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Alexei Starovoitov <ast@plumgrid•com>
To: Daniel Borkmann <daniel@iogearbox•net>, stephen@networkplumber•org
Cc: jhs@mojatatu•com, jiri@resnulli•us, netdev@vger•kernel.org
Subject: Re: [PATCH iproute2 -next 2/2] tc: add eBPF support to f_bpf
Date: Mon, 16 Mar 2015 10:45:35 -0700	[thread overview]
Message-ID: <550716BF.9030607@plumgrid.com> (raw)
In-Reply-To: <f7e40a542ad415742037bab62ed2348f07ba4c94.1426525312.git.daniel@iogearbox.net>

On 3/16/15 10:10 AM, Daniel Borkmann wrote:

> +
> +/* ELF section names, etc (ABI) */
> +#define ELF_SECTION_LICENSE	"license"
> +#define ELF_SECTION_MAPS	"maps"
> +#define ELF_SECTION_CLASSIFIER	"classifier"
> +#define ELF_SECTION_ACTION	"action"
> +
> +#define ELF_MAX_MAPS		64
> +#define ELF_MAX_LICENSE_LEN	128
> +
> +/* ELF map definition (ABI) */
> +struct bpf_elf_map {
> +	__u32 type;
> +	__u32 size_key;
> +	__u32 size_value;
> +	__u32 max_elem;
> +};

I think people might freak out that the above section names and
the struct are a kernel ABI. It's obviously not.
Would be good to say that this is a present convention between
C program that describes tc classifier and tc elf reader
and it can change in the future.

  reply	other threads:[~2015-03-16 17:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-16 17:10 [PATCH iproute2 -next 0/2] f_bpf update Daniel Borkmann
2015-03-16 17:10 ` [PATCH iproute2 -next 1/2] misc: header rebase, add bpf.h Daniel Borkmann
2015-03-16 17:10 ` [PATCH iproute2 -next 2/2] tc: add eBPF support to f_bpf Daniel Borkmann
2015-03-16 17:45   ` Alexei Starovoitov [this message]
2015-03-16 17:49     ` Daniel Borkmann

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=550716BF.9030607@plumgrid.com \
    --to=ast@plumgrid$(echo .)com \
    --cc=daniel@iogearbox$(echo .)net \
    --cc=jhs@mojatatu$(echo .)com \
    --cc=jiri@resnulli$(echo .)us \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=stephen@networkplumber$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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