net: sched: move the can_offload check from binding phase to rule insertion phase
authorJiri Pirko <jiri@mellanox.com>
Wed, 1 Nov 2017 10:47:39 +0000 (11:47 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Nov 2017 07:10:39 +0000 (16:10 +0900)
commit44ae12a768b7212976a362c590075716a77e8f28
tree02eeee68258d3f0b1c03c260852f51c4fadb2a24
parent0b5a89caee5c9958c18cd933c7f8891e35b21781
net: sched: move the can_offload check from binding phase to rule insertion phase

This restores the original behaviour before the block callbacks were
introduced. Allow the drivers to do binding of block always, no matter
if the NETIF_F_HW_TC feature is on or off. Move the check to the block
callback which is called for rule insertion.

Reported-by: Alexander Duyck <alexander.duyck@gmail.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/netronome/nfp/bpf/main.c
drivers/net/ethernet/netronome/nfp/flower/offload.c
net/dsa/slave.c
net/sched/cls_api.c