net/mlx5e: Add txq to sq stats mapping
authorJoe Damato <jdamato@fastly.com>
Wed, 12 Jun 2024 20:08:56 +0000 (20:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Jun 2024 10:37:19 +0000 (11:37 +0100)
commit0a3e5c1b670f8c386bbd232ac30d74da3653a70a
tree714b4ff0c29f65de18f7bcb51138ec85b34a2d45
parent934c29999b57b835d65442da6f741d5e27f3b584
net/mlx5e: Add txq to sq stats mapping

mlx5 currently maps txqs to an sq via priv->txq2sq. It is useful to map
txqs to sq_stats, as well, for direct access to stats.

Add priv->txq2sq_stats and insert mappings. The mappings will be used
next to tabulate stats information.

Signed-off-by: Joe Damato <jdamato@fastly.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c