netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch net-next 00/19] mlxsw: traps, trap groups and policers
@ 2016-11-25  9:33 Jiri Pirko
  2016-11-25  9:33 ` [patch net-next 01/19] mlxsw: spectrum: Remove unused traps Jiri Pirko
                   ` (19 more replies)
  0 siblings, 20 replies; 21+ messages in thread
From: Jiri Pirko @ 2016-11-25  9:33 UTC (permalink / raw)
  To: netdev; +Cc: davem, nogahf, idosch, eladr, yotamg, arkadis, ogerlitz

From: Jiri Pirko <jiri@mellanox.com>

Nogah says:

For a packet to be sent from the HW to the cpu, it needs to be trapped.
For a trap to be activate it should be assigned to a trap group.
Those trap groups can have policers, to limit the packet rate (the max
number of packets that can be sent to the cpu in a time slot, the rest
will be discarded) or the data rate (the same, but the count is not by the
number of packets but by their total length in bytes).

This patchset rearrange the trap setting API, re-write the traps and the
trap groups list in spectrum and assign them policers.

Nogah Frankel (19):
  mlxsw: spectrum: Remove unused traps
  mlxsw: core: Create a generic function to register / unregister traps
  mlxsw: core: Expose generic macros for rx trap
  mlxsw: spectrum: Use generic listener struct for rx traps
  mlxsw: switchx2: Use generic listener struct for rx traps
  mlxsw: core: Introduce generic macro for event
  mlxsw: spectrum: Use generic listener struct for events
  mlxsw: switchx2: Use generic listener struct for events
  mlxsw: switchib: Use generic listener struct for events
  mlxsw: Change trap set function
  mlxsw: Add option to choose trap group
  mlxsw: core: Change emad trap group settings
  mlxsw: resources: Add max trap groups resource
  mlxsw: Change trap groups setting
  mlxsw: spectrum: Add BGP trap
  mlxsw: Create a different trap group list for each device
  mlxsw: resources: Add max cpu policers resource
  mlxsw: reg: Add QoS Policer Configuration Register
  mlxsw: spectrum: Add policers for trap groups

 drivers/net/ethernet/mellanox/mlxsw/core.c      | 116 ++++++---
 drivers/net/ethernet/mellanox/mlxsw/core.h      |  52 ++++
 drivers/net/ethernet/mellanox/mlxsw/reg.h       | 231 +++++++++++++----
 drivers/net/ethernet/mellanox/mlxsw/resources.h |   4 +
 drivers/net/ethernet/mellanox/mlxsw/spectrum.c  | 322 ++++++++++++++----------
 drivers/net/ethernet/mellanox/mlxsw/switchib.c  |  78 +++---
 drivers/net/ethernet/mellanox/mlxsw/switchx2.c  | 229 +++++------------
 drivers/net/ethernet/mellanox/mlxsw/trap.h      |   1 +
 8 files changed, 625 insertions(+), 408 deletions(-)

-- 
2.7.4

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

end of thread, other threads:[~2016-11-26  2:23 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-25  9:33 [patch net-next 00/19] mlxsw: traps, trap groups and policers Jiri Pirko
2016-11-25  9:33 ` [patch net-next 01/19] mlxsw: spectrum: Remove unused traps Jiri Pirko
2016-11-25  9:33 ` [patch net-next 02/19] mlxsw: core: Create a generic function to register / unregister traps Jiri Pirko
2016-11-25  9:33 ` [patch net-next 03/19] mlxsw: core: Expose generic macros for rx trap Jiri Pirko
2016-11-25  9:33 ` [patch net-next 04/19] mlxsw: spectrum: Use generic listener struct for rx traps Jiri Pirko
2016-11-25  9:33 ` [patch net-next 05/19] mlxsw: switchx2: " Jiri Pirko
2016-11-25  9:33 ` [patch net-next 06/19] mlxsw: core: Introduce generic macro for event Jiri Pirko
2016-11-25  9:33 ` [patch net-next 07/19] mlxsw: spectrum: Use generic listener struct for events Jiri Pirko
2016-11-25  9:33 ` [patch net-next 08/19] mlxsw: switchx2: " Jiri Pirko
2016-11-25  9:33 ` [patch net-next 09/19] mlxsw: switchib: " Jiri Pirko
2016-11-25  9:33 ` [patch net-next 10/19] mlxsw: Change trap set function Jiri Pirko
2016-11-25  9:33 ` [patch net-next 11/19] mlxsw: Add option to choose trap group Jiri Pirko
2016-11-25  9:33 ` [patch net-next 12/19] mlxsw: core: Change emad trap group settings Jiri Pirko
2016-11-25  9:33 ` [patch net-next 13/19] mlxsw: resources: Add max trap groups resource Jiri Pirko
2016-11-25  9:33 ` [patch net-next 14/19] mlxsw: Change trap groups setting Jiri Pirko
2016-11-25  9:33 ` [patch net-next 15/19] mlxsw: spectrum: Add BGP trap Jiri Pirko
2016-11-25  9:33 ` [patch net-next 16/19] mlxsw: Create a different trap group list for each device Jiri Pirko
2016-11-25  9:33 ` [patch net-next 17/19] mlxsw: resources: Add max cpu policers resource Jiri Pirko
2016-11-25  9:33 ` [patch net-next 18/19] mlxsw: reg: Add QoS Policer Configuration Register Jiri Pirko
2016-11-25  9:33 ` [patch net-next 19/19] mlxsw: spectrum: Add policers for trap groups Jiri Pirko
2016-11-26  2:22 ` [patch net-next 00/19] mlxsw: traps, trap groups and policers 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).