diff options
author | Petr Machata | 2019-02-20 20:32:14 +0100 |
---|---|---|
committer | David S. Miller | 2019-02-22 00:57:45 +0100 |
commit | 93d201f7757e0ec079bc72344fe3577b7333a585 (patch) | |
tree | 24994ed92e11416395512489cb8e95c670d29654 /drivers/infiniband/core/uverbs_std_types_dm.c | |
parent | mlxsw: spectrum: Add struct mlxsw_sp_sb_vals (diff) | |
download | kernel-qcow2-linux-93d201f7757e0ec079bc72344fe3577b7333a585.tar.gz kernel-qcow2-linux-93d201f7757e0ec079bc72344fe3577b7333a585.tar.xz kernel-qcow2-linux-93d201f7757e0ec079bc72344fe3577b7333a585.zip |
mlxsw: spectrum_buffers: Allocate prs & pms dynamically
Spectrum-2 will be configured with a different set of pools than
Spectrum-1. The size of prs and pms buffers will therefore depend on the
chip type of the device.
Therefore, instead of reserving an array directly in a structure
definition, allocate the buffer in mlxsw_sp_sb_port{,s}_init().
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 'drivers/infiniband/core/uverbs_std_types_dm.c')
0 files changed, 0 insertions, 0 deletions