summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/mellanox/mlxsw/spectrum.h
diff options
context:
space:
mode:
authorPetr Machata <petrm@mellanox.com>2019-02-20 22:32:27 +0300
committerDavid S. Miller <davem@davemloft.net>2019-02-22 02:57:46 +0300
commitedf777f55aee61d1021fc496f16ef121380cfa67 (patch)
tree96d9e08226f05193261966785ba84a6224fb7b2c /drivers/net/ethernet/mellanox/mlxsw/spectrum.h
parentfe099bf682abbec77d0be73f62423ad794d88a04 (diff)
downloadlinux-edf777f55aee61d1021fc496f16ef121380cfa67.tar.xz
mlxsw: spectrum_buffers: Update port headroom configuration
The recommendation for headroom size for 100Gbps port and 100m cable is 101.6KB, reduced accordingly for split ports. The closest higher number evenly divisible by cell size for both Spectrum-1 and Spectrum-2, and such that the number of cells can be further divided by maximum split factor of 4, is 102528 bytes, or 25632 bytes per lane. Update mlxsw_sp_port_pb_init() to compute the headroom taking into account this recommended per-lane value and number of lanes actually dedicated to a given port. 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/net/ethernet/mellanox/mlxsw/spectrum.h')
0 files changed, 0 insertions, 0 deletions