Re: [PATCH bpf-next V1 3/6] bpf: add BPF-helper for reading MTU from net_device via ifindex

From
David Ahern <hidden>
Date
2020-10-07 16:35:44
Also in
bpf
Reply to
Maciej Żenczykowski, 2020-10-07
On 10/6/20 6:24 PM, Maciej Żenczykowski wrote:
FYI: It would be nice to have a similar function to return a device's
L2 header size (ie. 14 for ethernet) and/or hwtype.
Why does that need to be looked up via a helper? It's a static number
for a device and can plumbed to a program in a number of ways.
Thread (19 messages) 19 messages, 5 authors, last reply 2020-10-07
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help