[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ad37a96a-1fe1-7b00-25fd-ea3ed5279f4d@iogearbox.net>
Date: Thu, 24 Jan 2019 12:40:57 +0100
From: Daniel Borkmann <daniel@...earbox.net>
To: Maciej Żenczykowski <zenczykowski@...il.com>,
Alexei Starovoitov <ast@...nel.org>
Cc: Linux NetDev <netdev@...r.kernel.org>
Subject: Re: eBPF equivalent of SKF_AD_HATYPE / skb->dev->type
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
Powered by blists - more mailing lists