netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next V2 0/8] Offloading tc rules using underline Hardware device
@ 2016-12-01 12:06 Hadar Hen Zion
  2016-12-01 12:06 ` [PATCH net-next V2 1/8] net/sched: Add separate check for skip_hw flag Hadar Hen Zion
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Hadar Hen Zion @ 2016-12-01 12:06 UTC (permalink / raw)
  To: David S. Miller
  Cc: netdev, Saeed Mahameed, Jiri Pirko, Amir Vadai, Or Gerlitz,
	Roi Dayan, Hadar Hen Zion

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

Changes from v0:
- check if CONFIG_NET_CLS_ACT is defined befor calling tc_action_ops get_dev()

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                                | 24 ++++++
 net/sched/cls_flower.c                             | 87 ++++++++++++----------
 10 files changed, 135 insertions(+), 54 deletions(-)

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-12-02 18:30 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-01 12:06 [PATCH net-next V2 0/8] Offloading tc rules using underline Hardware device Hadar Hen Zion
2016-12-01 12:06 ` [PATCH net-next V2 1/8] net/sched: Add separate check for skip_hw flag Hadar Hen Zion
2016-12-01 12:06 ` [PATCH net-next V2 2/8] net/sched: cls_flower: Try to offload only if skip_hw flag isn't set Hadar Hen Zion
2016-12-01 12:06 ` [PATCH net-next V2 3/8] net/sched: cls_flower: Provide a filter to replace/destroy hardware filter functions Hadar Hen Zion
2016-12-01 12:06 ` [PATCH net-next V2 4/8] net/sched: act_mirred: Add new tc_action_ops get_dev() Hadar Hen Zion
2016-12-01 12:06 ` [PATCH net-next V2 5/8] net/sched: cls_flower: Add offload support using egress Hardware device Hadar Hen Zion
2016-12-01 12:06 ` [PATCH net-next V2 6/8] net/mlx5e: Bring back representor's ndos that were accidentally removed Hadar Hen Zion
2016-12-01 12:06 ` [PATCH net-next V2 7/8] net/mlx5e: Save the represntor netdevice as part of the representor Hadar Hen Zion
2016-12-01 12:06 ` [PATCH net-next V2 8/8] net/mlx5e: Support adding ingress tc rule when egress device flag is set Hadar Hen Zion
2016-12-02 18:29 ` [PATCH net-next V2 0/8] Offloading tc rules using underline Hardware device David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).