]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_buffers: Push out indexes and direction out of SB structs
authorJiri Pirko <jiri@mellanox.com>
Thu, 14 Apr 2016 16:19:17 +0000 (18:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Apr 2016 20:22:04 +0000 (16:22 -0400)
commitc532c16446399f136b863a8cced42767833f04d1
tree5c9f46c9260690ba59779d354afcb531bc521808
parent9a849a2b40ada444f3ea6477f19181a1ab0e7c91
mlxsw: spectrum_buffers: Push out indexes and direction out of SB structs

Structs are in arrays so use array index as pool/tc/prio index. With
that, there is need to maintain separate arrays for ingress and egress.

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