]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
eth: mlx5: fix macsec dependency
authorArnd Bergmann <arnd@arndb.de>
Mon, 22 Jun 2026 12:41:07 +0000 (14:41 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 25 Jun 2026 02:05:25 +0000 (19:05 -0700)
commit87ab8276ed24d688febfef4d0c1794896e778192
treeb133b70d1568fdec984d7475e495328f7bca8fb3
parent47b6bcef6e679593d2e86e04ee72c46a4e2f7139
eth: mlx5: fix macsec dependency

Configurations with mlx5 built-in but macsec=m fail to link:

x86_64-linux-ld: drivers/infiniband/hw/mlx5/macsec.o: in function `mlx5r_add_gid_macsec_operations':
macsec.c:(.text+0x77d): undefined reference to `macsec_netdev_is_offloaded'
x86_64-linux-ld: drivers/infiniband/hw/mlx5/macsec.o: in function `mlx5r_del_gid_macsec_operations':
macsec.c:(.text+0xe81): undefined reference to `macsec_netdev_is_offloaded'

Fix the dependency so this configuration cannot happen.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Sabrina Dubroca <sd@queasysnail.net>
Link: https://patch.msgid.link/20260622124229.2444502-1-arnd@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/Kconfig