mlxsw: spectrum_dcb: Convert mlxsw_sp_port_pg_prio_map() to hdroom code
authorPetr Machata <petrm@nvidia.com>
Wed, 16 Sep 2020 06:35:22 +0000 (09:35 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Sep 2020 22:19:30 +0000 (15:19 -0700)
commite9c97e0ece6b89cfe1cb33f171c62917522c4ce3
treef128f8be2042ffd9a264c5d19858ec6ae57bc495
parent8ec5e6b9776b21ac5d2b55c9632b5f9d394a4c5f
mlxsw: spectrum_dcb: Convert mlxsw_sp_port_pg_prio_map() to hdroom code

The new hdroom code has certain conventions: iteration over priorities is
done through a variable named `prio', configuration is not pushed unless it
is dirty, but a `force' flag can be used to override this, updated
configuration is written to port. Convert the function
mlxsw_sp_port_pg_prio_map() to use these conventions and rename
appropriately to fit in.

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