]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_buffers: Set a minimum quota for CPU port traffic
authorIdo Schimmel <idosch@mellanox.com>
Thu, 15 Mar 2018 12:49:56 +0000 (14:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Mar 2018 21:34:54 +0000 (17:34 -0400)
commit0d786be10909be8b831f7516097c8d64b3c43758
tree2458253c20bddcd021339eb4d89502c689d77b45
parentbddedfc22783b8bc6b1b7ad7cadbb00b5f624fdf
mlxsw: spectrum_buffers: Set a minimum quota for CPU port traffic

In commit 19e2a40252c5 ("mlxsw: spectrum: Allow packets to be trapped
from any PG") I fixed a problem where packets could not be trapped to
the CPU due to exceeded shared buffer quotas. The mentioned commit
explains the problem in detail.

The problem was fixed by assigning a minimum quota for the CPU port and
the traffic class used for scheduling traffic to the CPU.

However, commit b4b0ff427e74 ("mlxsw: Create a different trap group list
for each device") assigned different traffic classes to different
packet types and rendered the fix useless.

Fix the problem by assigning a minimum quota for the CPU port and all
the traffic classes that are currently in use.

Fixes: b4b0ff427e74 ("mlxsw: Create a different trap group list for each device")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reported-by: Eddie Shklaer <eddies@mellanox.com>
Tested-by: Eddie Shklaer <eddies@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c