OSDN Git Service

mlxsw: spectrum_qdisc: Introduce struct mlxsw_sp_qdisc_state
authorPetr Machata <petrm@mellanox.com>
Thu, 5 Mar 2020 07:16:41 +0000 (09:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Mar 2020 22:03:31 +0000 (14:03 -0800)
commitee88450d2509f11fc5cb3fc8b4430b4186981886
tree36464cdb566ca3eb37304cd22d4913527b96216d
parentaaca9408078914380fbfd8aef3c38a34b515a654
mlxsw: spectrum_qdisc: Introduce struct mlxsw_sp_qdisc_state

In order to have a tidy structure where to put information related to Qdisc
offloads, introduce a new structure. Move there the two existing pieces of
data: root_qdisc and tclass_qdiscs. Embed them directly, because there's no
reason to go through pointer anymore. Convert users, update init/fini
functions.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c