OSDN Git Service

mlxsw: spectrum_qdisc: Track tclass_num as int, not u8
authorPetr Machata <petrm@nvidia.com>
Tue, 20 Apr 2021 14:53:42 +0000 (16:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Apr 2021 23:43:13 +0000 (16:43 -0700)
commit017a131cdec6d3dd375d353fd25293a21896346d
tree78769fdef030edf523a54c54d542dc5dd69ad871
parent549f2aae84ddf574dda36b0bf7e3b4c0872c6675
mlxsw: spectrum_qdisc: Track tclass_num as int, not u8

tclass_num is just a number, a value that would be ordinarily passed around
as an int. (Which is unlike a u8 prio_bitmap.) In several places,
tclass_num already is an int. Convert the remaining instances.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c