Netdev List
 help / color / mirror / Atom feed
From: "Maciej Żenczykowski" <zenczykowski@gmail.com>
To: Alexei Starovoitov <ast@kernel.org>,
	Daniel Borkmann <daniel@iogearbox.net>
Cc: Linux NetDev <netdev@vger.kernel.org>
Subject: eBPF equivalent of SKF_AD_HATYPE / skb->dev->type
Date: Thu, 24 Jan 2019 03:27:07 -0800	[thread overview]
Message-ID: <CANP3RGcxAOY6mBBqFa26Cc4s3++T0QH1z+mcLFbPGdbxZXqTYQ@mail.gmail.com> (raw)

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)

Cheers,
Maciej

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

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