diff options
author | Petr Machata <petrm@nvidia.com> | 2020-09-16 09:35:27 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-16 15:19:30 -0700 |
commit | a41b96267c1d5b3a84492a01b0924541639a3372 (patch) | |
tree | 7d395477db397bbbf5485783f5d1016ef303cecf /drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c | |
parent | 0cda1a9b452333fbb4d74636de0a92f128972fd0 (diff) |
mlxsw: spectrum_buffers: Introduce shared buffer ops
The size of the internal buffer is currently calculated in the SPAN module.
Logically it belongs to the spectrum_buffers module, where it should be
moved. However, that being a chip-specific operation, it needs dynamic
dispatch. There currently is a chip-specific structure for description of
shared buffer values, struct mlxsw_sp_sb_vals. However placing ops into
this structure would be confusing. Therefore introduce a new per-chip
structure, currently empty, and initialize the ops pointer as appropriate.
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c')
0 files changed, 0 insertions, 0 deletions