]> www.infradead.org Git - users/dwmw2/linux.git/commit
net/mlx5e: Support FEC settings for 100G/lane modes
authorCosmin Ratiu <cratiu@nvidia.com>
Thu, 4 Apr 2024 17:33:54 +0000 (20:33 +0300)
committerJakub Kicinski <kuba@kernel.org>
Sat, 6 Apr 2024 04:54:40 +0000 (21:54 -0700)
commit4aafb8ab2a626ac714931ec7894cf16df948b359
treeb2fb4719f3d76d1f6b0b8d51d3088973e1e84fd7
parentd4383ce15f5bb0e889406961372d31199f3f6edc
net/mlx5e: Support FEC settings for 100G/lane modes

This consists of:
1. Expose the 100G/lane capability bit in the PCAM reg.
2. Expose the per link mode FEC capability masks in the PPLM reg.
3. Set the overrides according to ethtool parameters.
FEC for new modes is set if and only if the PCAM 100G/lane capability is
advertised and the capability mask for a given link mode reports that it
can accept the requested FEC mode.

Signed-off-by: Cosmin Ratiu <cratiu@nvidia.com>
Reviewed-by: Gal Pressman <gal@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://lore.kernel.org/r/20240404173357.123307-3-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en/port.c
include/linux/mlx5/mlx5_ifc.h