]> 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)
commit6debb0ca314476712bc1c1c40b7c5f031b0f9eac
tree0a87f91bc0866ae7659b7ee4949f2923f71f9132
parente3cbc63505933f5cf6ef3ac202223b5d28e0e0d4
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