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 driver (or in HW by the driver). We >trust that drivers which implement offload callbacks will perform >necessary checks. > >Moving the checks to the driver is generally a useful thing, >in practice the check should be against a switchdev instance, >not a netdev, given that most ASICs will probably allow using >the same program on many ports. > >Signed-off-by: Jakub Kicinski <jakub.kicin...@netronome.com> >Reviewed-by: Quentin Monnet <quentin.mon...@netronome.com> >Acked-by: Alexei Starovoitov <a...@kernel.org> >Acked-by: Daniel Borkmann <dan...@iogearbox.net>
Acked-by: Jiri Pirko <j...@mellanox.com>