]> git.karo-electronics.de Git - linux-beck.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)
commitb11c3b4018e630dfcbdc2b9fe7aaffce5da8cfd7
tree5c9f46c9260690ba59779d354afcb531bc521808
parent94266e3278ef862bb422575a31ceb166dab1b406
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