]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_buffers: Change initialization of PG 9
authorJiri Pirko <jiri@mellanox.com>
Thu, 14 Apr 2016 16:19:21 +0000 (18:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Apr 2016 20:22:04 +0000 (16:22 -0400)
commit63035cec709e82ae13aa8c1568d06af3f496a818
treec26159fca676ce6269b40cecee20dec67887edaf
parent3e9fdf14409028fe498c0bdaa32b849b5790dc5c
mlxsw: spectrum_buffers: Change initialization of PG 9

As explained in commit ed58190c1058 ("mlxsw: spectrum: Correctly
configure headroom size") control packets are directed to priority group
buffer 9 (PG9) in the ports' headroom buffers.

Since we don't want to drop control packets in case they can't be
admitted to the switch's shared buffer we bind PG9 to a different
ingress pool from the one used by all other PGs.

Unlike other PGs, we currently don't expose the binding between PG9 to a
pool and leave it fixed.

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