]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_buffers: Use new CPU ingress pool for control packets
authorIdo Schimmel <idosch@mellanox.com>
Mon, 22 Apr 2019 12:08:52 +0000 (12:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Apr 2019 05:09:33 +0000 (22:09 -0700)
commita2168dd9b2020314096da7aba2a6eb860c5a9087
tree0a87f91bc0866ae7659b7ee4949f2923f71f9132
parentf5f9a3c592953b9f2b157165dbf0f5cc1a3a3572
mlxsw: spectrum_buffers: Use new CPU ingress pool for control packets

Use the new ingress pool that was added in the previous patch for
control packets (e.g., STP, LACP) that are trapped to the CPU.

The previous management pool is no longer necessary and therefore its
size is set to 0.

The maximum quota for traffic towards the CPU is increased to 50% of the
free space in the new ingress pool and therefore the reserved space is
reduced by half, to 10KB - in both the shared and headroom buffer. This
allows for more efficient utilization of the shared buffer as reserved
space cannot be used for other purposes.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c