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

2019-06-24 Thread Jonathan Lemon
On 22 Jun 2019, at 19:17, 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 to do

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

2019-06-22 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