Mon, Nov 20, 2017 at 05:55:16AM CET, [email protected] 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 <[email protected]> >Reviewed-by: Quentin Monnet <[email protected]> >Acked-by: Alexei Starovoitov <[email protected]> >Acked-by: Daniel Borkmann <[email protected]>
Acked-by: Jiri Pirko <[email protected]>
