summary refs log tree commit diff
path: root/arch/powerpc/kernel/cpu_setup_power.S
diff options
context:
space:
mode:
authorNogah Frankel <nogahf@mellanox.com>2016-11-25 10:33:47 +0100
committerDavid S. Miller <davem@davemloft.net>2016-11-25 21:22:14 -0500
commit9148e7cf73ced9bf9d2a1104f6ab3b69303662a2 (patch)
tree7bb70843f9279d31ad544cbf9bc87e10d1751c3b /arch/powerpc/kernel/cpu_setup_power.S
parent76a4c7d32a0b0a5a4a072a56a3dc4a2850afd8d8 (diff)
downloadlinux-9148e7cf73ced9bf9d2a1104f6ab3b69303662a2.tar.gz
mlxsw: spectrum: Add policers for trap groups
Configure policers and connect them to trap groups.

While many trap groups share policer's configuration they don't share
the actual policer because each trap group represents a different
flow / protocol and we don't want one of them to be able to exceed its
rate on behalf of another.
For example, if STP and LLDP gets to send 128 packets/sec each, if we
put them in one 256 packets/sec policer, one can send 200 packets while
the other only 50.

Note that IP2ME covers lots of flows, so it's limit is set to match the
cpu ability to handle data.

Signed-off-by: Nogah Frankel <nogahf@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/powerpc/kernel/cpu_setup_power.S')
0 files changed, 0 insertions, 0 deletions