mlxsw: spectrum: qdiscs: Add tclass number to the mlxsw_sp_qdisc
authorNogah Frankel <nogahf@mellanox.com>
Wed, 10 Jan 2018 14:00:02 +0000 (15:00 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Jan 2018 21:07:40 +0000 (16:07 -0500)
commitd56c89550bd0da43bfe9f91ade469ab3f233c62b
treebfdaa3c8e861d6732023f6537c53c5bfc358d8a4
parentc2ed6db76519902b39598ee5cde2f2f6d855e528
mlxsw: spectrum: qdiscs: Add tclass number to the mlxsw_sp_qdisc

Tclass number is needed for most of the operations related to the qdisc in
the driver. Create a field for it in the mlxsw_sp_qdisc instead of passing
it to every function as parameter.

Signed-off-by: Nogah Frankel <nogahf@mellanox.com>
Reviewed-by: Yuval Mintz <yuvalm@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c