diff options
| author | Ralf Lici <ralf@mandelbit.com> | 2026-09-17 14:27:23 +0200 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-09-18 18:16:33 -0700 |
| commit | 4581c3d2adc3c73a019bc38db64ca11f28bbd7fd (patch) | |
| tree | c91a8bcb70880b6f136da258a35da4f68f4fe701 /tools/perf/scripts/python/stackcollapse.py | |
| parent | d2c31b837406395e576afeb25958c98e9938f3f6 (diff) | |
| download | linux-4581c3d2adc3c73a019bc38db64ca11f28bbd7fd.tar.gz linux-4581c3d2adc3c73a019bc38db64ca11f28bbd7fd.zip | |
net/mlx5e: advertise MACsec offload only when supported
Commit 339ccec8d43d ("net/mlx5: Enable MACsec offload feature for VLAN
interface") added NETIF_F_HW_MACSEC unconditionally to vlan_features so
that VLAN devices could inherit MACsec offload support.
mlx5e_build_nic_netdev subsequently copies vlan_features into
hw_features and features. As a result, all mlx5e NIC netdevices
advertise MACsec hardware offload, even when the firmware does not
support it and the driver does not install macsec_ops.
Set the MACsec feature bits in mlx5e_macsec_build_netdev, after device
capabilities have been validated. This preserves MACsec-over-VLAN
support and the ethtool feature control on capable devices, without
advertising either on unsupported hardware.
Fixes: 339ccec8d43d ("net/mlx5: Enable MACsec offload feature for VLAN interface")
Cc: stable@vger.kernel.org
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Ralf Lici <ralf@mandelbit.com>
Link: https://patch.msgid.link/20260917122724.654639-1-ralf@mandelbit.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
