]> www.infradead.org Git - users/hch/misc.git/commit
net/mlx5e: Be consistent with bitmap handling of link modes
authorGal Pressman <gal@nvidia.com>
Thu, 8 Aug 2024 05:59:21 +0000 (08:59 +0300)
committerJakub Kicinski <kuba@kernel.org>
Sat, 10 Aug 2024 05:13:15 +0000 (22:13 -0700)
commit4384bcff035e3699ab97286875d190f3661acc15
tree38194b9ddb559ce2a0db9ddd11bfb4668da370bc
parentb11bde56246ee85a67364efa0e181b479543dfef
net/mlx5e: Be consistent with bitmap handling of link modes

Use the bitmap operations when accessing the advertised/supported link
modes and remove places that access them as arrays of unsigned longs
(underlying implementation of the bitmap), this makes the code much more
readable and clear.

Signed-off-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Carolina Jubran <cjubran@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20240808055927.2059700-6-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c