]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_buffers: Add pools for CPU traffic
authorIdo Schimmel <idosch@mellanox.com>
Mon, 22 Apr 2019 12:08:51 +0000 (12:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Apr 2019 05:09:32 +0000 (22:09 -0700)
commitf5f9a3c592953b9f2b157165dbf0f5cc1a3a3572
treea3edf212791cf1914d5e20b81a439441a8bd04db
parenteee9c7b1e3897dd8bf7c034d77043eb1636ad5fd
mlxsw: spectrum_buffers: Add pools for CPU traffic

Packets that are trapped to the CPU are transmitted through the CPU port
to the attached host. The CPU port is therefore like any other port and
needs to have shared buffer configuration.

The maximum quotas configured for the CPU are provided using dynamic
threshold and cannot be changed by the user. In order to make sure that
these thresholds are always valid, the configuration of the threshold
type of these pools is forbidden.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Petr Machata <petrm@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