This series adds flower classifier support in offloading tc rules when the Software ingress device is different from the Hardware ingress device, such as when dealing with IP tunnels
The first two patches are a small fixes to flower, checking the skip_hw flag wasn't set before calling the Hardware offloading functions which will try to offload the rule. The next two patches are infrastructure patches, a preparation for the fourth patch which is adding support in flower to offload rules when the ingress device is not a Hardware device and therefore can't offload. In this case ndo_setup_tc is called with the mirred (egress) device. The last three patchs are adding mlx5e support to offload rules using the new "egress_device" flag. Thanks, Hadar Hadar Hen Zion (8): net/sched: Add separate check for skip_hw flag net/sched: cls_flower: Try to offload only if skip_hw flag isn't set net/sched: cls_flower: Provide a filter to replace/destroy hardware filter functions net/sched: act_mirred: Add new tc_action_ops get_dev() net/sched: cls_flower: Add offload support using egress Hardware device net/mlx5e: Bring back representor's ndos that were accidentally removed net/mlx5e: Save the represntor netdevice as part of the representor net/mlx5e: Support adding ingress tc rule when egress device flag is set drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 2 +- drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 25 +++++-- drivers/net/ethernet/mellanox/mlx5/core/eswitch.h | 3 +- .../ethernet/mellanox/mlx5/core/eswitch_offloads.c | 12 ++- include/linux/netdevice.h | 1 + include/net/act_api.h | 2 + include/net/pkt_cls.h | 21 +++++- net/sched/act_mirred.c | 12 +++ net/sched/cls_api.c | 22 ++++++ net/sched/cls_flower.c | 87 ++++++++++++---------- 10 files changed, 133 insertions(+), 54 deletions(-) -- 1.8.3.1