]> 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)
commite3cbc63505933f5cf6ef3ac202223b5d28e0e0d4
treea3edf212791cf1914d5e20b81a439441a8bd04db
parent72ed2a0e6571230aac9327581b30cb18b1905a5e
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