]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'mlxsw-trap-groups-and-policers'
authorDavid S. Miller <davem@davemloft.net>
Sat, 26 Nov 2016 02:22:28 +0000 (21:22 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Nov 2016 02:22:28 +0000 (21:22 -0500)
commit9f0ba8927e65b3fc0173c4479fa2373b3b44eeae
tree7bb70843f9279d31ad544cbf9bc87e10d1751c3b
parent267ddc301a9bb6ea3977f339f1eec5d1f2f8dba1
parentf4480546c7c3fda142b2124b21367bb3483e4c7e
Merge branch 'mlxsw-trap-groups-and-policers'

Jiri Pirko says:

====================
mlxsw: traps, trap groups and policers

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.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>