public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 00/13] net: act_police offload support
@ 2019-05-04 11:46 Jakub Kicinski
  2019-05-04 11:46 ` [PATCH net-next 01/13] net/sched: add sample action to the hardware intermediate representation Jakub Kicinski
                   ` (13 more replies)
  0 siblings, 14 replies; 28+ messages in thread
From: Jakub Kicinski @ 2019-05-04 11:46 UTC (permalink / raw)
  To: davem
  Cc: netdev, oss-drivers, jiri, xiyou.wangcong, idosch, f.fainelli,
	andrew, vivien.didelot, gerlitz.or, simon.horman, Jakub Kicinski

Hi,

this set starts by converting cls_matchall to the new flow offload
infrastructure. It so happens that all drivers implementing cls_matchall
offload today also offload cls_flower, so its a little easier for
them to handle the actions in unified flow_rule format, even though
in cls_matchall there is no flow to speak of. If a driver ever appears
which would prefer the old, direct access to TC exts, we can add the
pointer in the offload structure back and support both.

Next the act_police is added to actions supported by flow offload API.

NFP support for act_police offload is added as the final step.  The flower
firmware is configured to perform TX rate limiting in a way which matches
act_police's behaviour.  It does not use DMA.IN back pressure, and
instead	drops packets after they had been already DMAed into the NIC.
IOW it uses our standard traffic policing implementation, future patches
will extend it to other ports and traffic directions.

Pieter Jansen van Vuuren (13):
  net/sched: add sample action to the hardware intermediate
    representation
  net/sched: use the hardware intermediate representation for matchall
  mlxsw: use intermediate representation for matchall offload
  net/dsa: use intermediate representation for matchall offload
  net/sched: remove unused functions for matchall offload
  net/sched: move police action structures to header
  net/sched: add police action to the hardware intermediate
    representation
  net/sched: extend matchall offload for hardware statistics
  net/sched: allow stats updates from offloaded police actions
  net/sched: add block pointer to tc_cls_common_offload structure
  nfp: flower: add qos offload framework
  nfp: flower: add qos offload install and remove functionality.
  nfp: flower: add qos offload stats request and reply

 .../net/ethernet/mellanox/mlxsw/spectrum.c    |  38 +-
 drivers/net/ethernet/netronome/nfp/Makefile   |   3 +-
 .../net/ethernet/netronome/nfp/flower/cmsg.c  |   3 +
 .../net/ethernet/netronome/nfp/flower/cmsg.h  |   3 +
 .../net/ethernet/netronome/nfp/flower/main.c  |   6 +
 .../net/ethernet/netronome/nfp/flower/main.h  |  29 ++
 .../ethernet/netronome/nfp/flower/offload.c   |   3 +
 .../ethernet/netronome/nfp/flower/qos_conf.c  | 366 ++++++++++++++++++
 include/net/flow_offload.h                    |  23 ++
 include/net/pkt_cls.h                         |  36 +-
 include/net/tc_act/tc_police.h                |  70 ++++
 net/dsa/slave.c                               |  16 +-
 net/sched/act_police.c                        |  52 +--
 net/sched/cls_api.c                           |  14 +
 net/sched/cls_bpf.c                           |   7 +-
 net/sched/cls_flower.c                        |  11 +-
 net/sched/cls_matchall.c                      |  65 +++-
 net/sched/cls_u32.c                           |  17 +-
 18 files changed, 654 insertions(+), 108 deletions(-)
 create mode 100644 drivers/net/ethernet/netronome/nfp/flower/qos_conf.c
 create mode 100644 include/net/tc_act/tc_police.h

-- 
2.21.0


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

end of thread, other threads:[~2019-05-06 18:11 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-04 11:46 [PATCH net-next 00/13] net: act_police offload support Jakub Kicinski
2019-05-04 11:46 ` [PATCH net-next 01/13] net/sched: add sample action to the hardware intermediate representation Jakub Kicinski
2019-05-04 12:41   ` Jiri Pirko
2019-05-04 11:46 ` [PATCH net-next 02/13] net/sched: use the hardware intermediate representation for matchall Jakub Kicinski
2019-05-04 12:42   ` Jiri Pirko
2019-05-04 11:46 ` [PATCH net-next 03/13] mlxsw: use intermediate representation for matchall offload Jakub Kicinski
2019-05-04 12:59   ` Jiri Pirko
2019-05-04 11:46 ` [PATCH net-next 04/13] net/dsa: " Jakub Kicinski
2019-05-04 13:00   ` Jiri Pirko
2019-05-04 11:46 ` [PATCH net-next 05/13] net/sched: remove unused functions " Jakub Kicinski
2019-05-04 13:01   ` Jiri Pirko
2019-05-04 11:46 ` [PATCH net-next 06/13] net/sched: move police action structures to header Jakub Kicinski
2019-05-04 13:04   ` Jiri Pirko
2019-05-04 11:46 ` [PATCH net-next 07/13] net/sched: add police action to the hardware intermediate representation Jakub Kicinski
2019-05-04 13:08   ` Jiri Pirko
2019-05-04 11:46 ` [PATCH net-next 08/13] net/sched: extend matchall offload for hardware statistics Jakub Kicinski
2019-05-04 13:10   ` Jiri Pirko
2019-05-04 11:46 ` [PATCH net-next 09/13] net/sched: allow stats updates from offloaded police actions Jakub Kicinski
2019-05-04 13:20   ` Jiri Pirko
2019-05-04 11:46 ` [PATCH net-next 10/13] net/sched: add block pointer to tc_cls_common_offload structure Jakub Kicinski
2019-05-04 13:16   ` Jiri Pirko
2019-05-05 17:34     ` Jakub Kicinski
2019-05-06  6:16       ` Jiri Pirko
2019-05-06 18:11         ` Jakub Kicinski
2019-05-04 11:46 ` [PATCH net-next 11/13] nfp: flower: add qos offload framework Jakub Kicinski
2019-05-04 11:46 ` [PATCH net-next 12/13] nfp: flower: add qos offload install and remove functionality Jakub Kicinski
2019-05-04 11:46 ` [PATCH net-next 13/13] nfp: flower: add qos offload stats request and reply Jakub Kicinski
2019-05-06  4:49 ` [PATCH net-next 00/13] net: act_police offload support David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox