diff options
| author | 2019-02-20 19:32:29 +0000 | |
|---|---|---|
| committer | 2019-02-21 15:57:46 -0800 | |
| commit | bb6c346cef6fb0414865aaa6e2f3a11ceeeae14a (patch) | |
| tree | a5c798c59afc7badb31061b7eaf3b6f5a036488f /net/switchdev/switchdev.c | |
| parent | mlxsw: spectrum_buffers: Update port headroom configuration (diff) | |
| download | wireguard-linux-bb6c346cef6fb0414865aaa6e2f3a11ceeeae14a.tar.xz wireguard-linux-bb6c346cef6fb0414865aaa6e2f3a11ceeeae14a.zip | |
mlxsw: spectrum_buffers: Reject overlarge headroom size requests
cap_max_headroom_size holds maximum headroom size supported.
Overstepping that limit might under certain conditions lead to ASIC
freeze.
Query and store the value, and add mlxsw_sp_sb_max_headroom_cells() for
obtaining the stored value. In __mlxsw_sp_port_headroom_set(), reject
requests where the total port buffer is larger than the advertised
maximum.
Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
