Re: [PATCH bpf-next v4 3/3] devmap: Allow map lookups from eBPF

2019-06-14 Thread Andrii Nakryiko
On Thu, Jun 13, 2019 at 8:31 AM Toke Høiland-Jørgensen wrote: > > From: Toke Høiland-Jørgensen > > We don't currently allow lookups into a devmap from eBPF, because the map > lookup returns a pointer directly to the dev->ifindex, which shouldn't be > modifiable from eBPF. > > However, being able

[PATCH bpf-next v4 3/3] devmap: Allow map lookups from eBPF

2019-06-13 Thread Toke Høiland-Jørgensen
From: Toke Høiland-Jørgensen We don't currently allow lookups into a devmap from eBPF, because the map lookup returns a pointer directly to the dev->ifindex, which shouldn't be modifiable from eBPF. However, being able to do lookups in devmaps is useful to know (e.g.) whether forwarding to a spe