net/mlx5e: Use channel mdev reference instead of global mdev instance for coalescing
authorRahul Rameshbabu <rrameshbabu@nvidia.com>
Thu, 11 Apr 2024 11:54:42 +0000 (14:54 +0300)
committerJakub Kicinski <kuba@kernel.org>
Sat, 13 Apr 2024 02:13:53 +0000 (19:13 -0700)
commit6c685bdb9e1af966ec0278dbd4068ec39ae88c2d
treefbb5e2776d9bf7b3138daa9d1bd85ee0a17579e8
parentbf729988303a27833a86acb561f42b9a3cc12728
net/mlx5e: Use channel mdev reference instead of global mdev instance for coalescing

Channels can potentially have independent mdev instances. Do not refer to
the global mdev instance in the mlx5e_priv instance for channel FW
operations related to coalescing. CQ numbers that would be valid on the
channel's mdev instance may not be correctly referenced if using the
mlx5e_priv instance.

Fixes: 67936e138586 ("net/mlx5e: Let channels be SD-aware")
Signed-off-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://lore.kernel.org/r/20240411115444.374475-5-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c