Re: [PATCH net 04/10] bpf: offload: move offload device validation out to the drivers

2017-11-19 Thread Jiri Pirko
Mon, Nov 20, 2017 at 05:55:16AM CET, jakub.kicin...@netronome.com wrote: >With TC shared block changes we can't depend on correct netdev >pointer being available in cls_bpf. Move the device validation >to the driver. Core will only make sure that offloaded programs >are always attached in the

[PATCH net 04/10] bpf: offload: move offload device validation out to the drivers

2017-11-19 Thread Jakub Kicinski
With TC shared block changes we can't depend on correct netdev pointer being available in cls_bpf. Move the device validation to the driver. Core will only make sure that offloaded programs are always attached in the driver (or in HW by the driver). We trust that drivers which implement offload