Re: [PATCH bpf-next 6/9] bpf: offload: allow program and map sharing per-ASIC

2018-07-16 Thread Jakub Kicinski
On Mon, 16 Jul 2018 20:00:47 -0700, Alexei Starovoitov wrote: > On Mon, Jul 16, 2018 at 07:37:20PM -0700, Jakub Kicinski wrote: > > Create a higher-level entity to represent a device/ASIC to allow > > programs and maps to be shared between device ports. The extra > > work is required to make sure

Re: [PATCH bpf-next 6/9] bpf: offload: allow program and map sharing per-ASIC

2018-07-16 Thread Alexei Starovoitov
On Mon, Jul 16, 2018 at 07:37:20PM -0700, Jakub Kicinski wrote: > Create a higher-level entity to represent a device/ASIC to allow > programs and maps to be shared between device ports. The extra > work is required to make sure we don't destroy BPF objects as > soon as the netdev for which they we

[PATCH bpf-next 6/9] bpf: offload: allow program and map sharing per-ASIC

2018-07-16 Thread Jakub Kicinski
Create a higher-level entity to represent a device/ASIC to allow programs and maps to be shared between device ports. The extra work is required to make sure we don't destroy BPF objects as soon as the netdev for which they were loaded gets destroyed, as other ports may still be using them. When