net/mlx5: E-switch, Move QoS related code to dedicated file
authorDmytro Linkin <dlinkin@nvidia.com>
Fri, 28 May 2021 14:30:22 +0000 (17:30 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 20 Aug 2021 04:50:39 +0000 (21:50 -0700)
commit2d116e3e7e49b9ef01b8546fd32711e18f8a943d
tree757dda173a2cc64517208e4bf47e8d7413892139
parent2741f22309054a2100e47c0aef42159d3d266ebc
net/mlx5: E-switch, Move QoS related code to dedicated file

Move eswitch QoS related code into dedicated file. Provide eswitch API
to access this code meaning it is isolated and restricted to be used
only by eswitch.c. Exception is legacy NDO vf set rate, which moved to
esw/legacy.c.

Signed-off-by: Dmytro Linkin <dlinkin@nvidia.com>
Reviewed-by: Huy Nguyen <huyn@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Reviewed-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/Makefile
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.h [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h