Re: [RFC 02/12] bpf: offload: add infrastructure for loading programs for a specific netdev

2017-11-01 Thread Jakub Kicinski
On Tue, 31 Oct 2017 22:23:42 -0700, Alexei Starovoitov wrote: > On Tue, Oct 31, 2017 at 06:52:07PM -0700, Jakub Kicinski wrote: > > The fact that we don't know which device the program is going > > to be used on is quite limiting in current eBPF infrastructure. > > We have to reverse or limit the

Re: [RFC 02/12] bpf: offload: add infrastructure for loading programs for a specific netdev

2017-10-31 Thread Alexei Starovoitov
On Tue, Oct 31, 2017 at 06:52:07PM -0700, Jakub Kicinski wrote: > The fact that we don't know which device the program is going > to be used on is quite limiting in current eBPF infrastructure. > We have to reverse or limit the changes which kernel makes to > the loaded bytecode if we want it to

[RFC 02/12] bpf: offload: add infrastructure for loading programs for a specific netdev

2017-10-31 Thread Jakub Kicinski
The fact that we don't know which device the program is going to be used on is quite limiting in current eBPF infrastructure. We have to reverse or limit the changes which kernel makes to the loaded bytecode if we want it to be offloaded to a networking device. We also have to invent new APIs for