Netdev List
 help / color / mirror / Atom feed
From: Daniel Borkmann <daniel@iogearbox.net>
To: "Maciej Żenczykowski" <zenczykowski@gmail.com>,
	"Alexei Starovoitov" <ast@kernel.org>
Cc: Linux NetDev <netdev@vger.kernel.org>
Subject: Re: eBPF equivalent of SKF_AD_HATYPE / skb->dev->type
Date: Thu, 24 Jan 2019 12:40:57 +0100	[thread overview]
Message-ID: <ad37a96a-1fe1-7b00-25fd-ea3ed5279f4d@iogearbox.net> (raw)
In-Reply-To: <CANP3RGcxAOY6mBBqFa26Cc4s3++T0QH1z+mcLFbPGdbxZXqTYQ@mail.gmail.com>

On 01/24/2019 12:27 PM, Maciej Żenczykowski wrote:
> In classic BPF 'SKF_AD_HATYPE' can be used to fetch skb->dev->type.
> 
> Are my eyes deceiving me, or is there a similar way to get at it from eBPF?
> 
> (while we're at it, skb->dev->mtu would probably be useful too)

Yeah we can add it if you have a concrete use case for access out of the BPF
program, feel free to send a patch. So far nobody ran into the need for it
which is why it hasn't been added yet.

Thanks,
Daniel

  reply	other threads:[~2019-01-24 11:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-24 11:27 eBPF equivalent of SKF_AD_HATYPE / skb->dev->type Maciej Żenczykowski
2019-01-24 11:40 ` Daniel Borkmann [this message]
2019-01-24 11:59   ` Maciej Żenczykowski
2019-01-24 13:12     ` 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=ad37a96a-1fe1-7b00-25fd-ea3ed5279f4d@iogearbox.net \
    --to=daniel@iogearbox.net \
    --cc=ast@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=zenczykowski@gmail.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