net/mlx5e: fix TLS dependency
Subsystems (4)
PATCH 1/1 net/mlx5e: fix TLS dependency
With CONFIG_TLS=m and MLX5_CORE_EN=y, we get a link failure:
drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.o: In function `mlx5e_tls_handle_ooo':
tls_rxtx.c:(.text+0x24c): undefined reference to tls_get_record' drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.o: In function mlx5e_tls_handle_tx_skb':
tls_rxtx.c:(.text+0x9a8): undefined reference to `tls_device_sk_destruct'
This narrows down the dependency to only allow the configurations that will actually work. The existing dependency on TLS_DEVICE is not sufficient here since MLX5_EN_TLS is a 'bool' symbol.
--- drivers/net/ethernet/mellanox/mlx5/core/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/mellanox/mlx5/core/Kconfig +1 -0
@@ -91,6 +91,7 @@ config MLX5_EN_TLS bool "TLS cryptography-offload accelaration" depends on MLX5_CORE_EN depends on TLS_DEVICE + depends on TLS=y || MLX5_CORE=m depends on MLX5_ACCEL default n ---help---
Signature · 1 line
2.9.0
Quoted 10 lines · Arnd Bergmann
With
CONFIG_TLS=mand MLX5_CORE_EN=y, we get a link failure:
drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.o: In function `mlx5e_tls_handle_ooo':
tls_rxtx.c:(.text+0x24c): undefined reference totls_get_record' drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.o: In functionmlx5e_tls_handle_tx_skb':
tls_rxtx.c:(.text+0x9a8): undefined reference to `tls_device_sk_destruct'
Quoted 7 lines
This narrows down the dependency to only allow the configurations that will actually work. The existing dependency on
TLS_DEVICEis not sufficient here sinceMLX5_EN_TLSis a 'bool' symbol.Fixes c83294b9efa5 ("net/mlx5e: TLS, Add Innova TLS TX support")Signed-off-by Arnd Bergmann <[email protected]>---
LGTM
Thank you Arnd!
Quoted 16 lines
drivers/net/ethernet/mellanox/mlx5/core/Kconfig | 1 + 1 file changed, 1 insertion(+)drivers/net/ethernet/mellanox/mlx5/core/Kconfig +1
-0@@ -91,6 +91,7 @@ config MLX5_EN_TLS bool "TLS cryptography-offload accelaration" depends on MLX5_CORE_EN depends on TLS_DEVICE + depends on TLS=y || MLX5_CORE=m depends on MLX5_ACCEL default n ---help---
Boris Pismenny
Acked-byThank you.
Quoted 52 lines
-----Original Message-----
From: Saeed Mahameed
Sent: Saturday, May 26, 2018 2:19 AM
To: [email protected]; [email protected]; [email protected]
Cc: [email protected]; [email protected]; Boris Pismenny <[email protected]>; Or Gerlitz <[email protected]>; Feras Daoud <[email protected]>; Ilan Tayari <[email protected]>; [email protected]; Ilya Lesokhin <[email protected]>
Subject: Re: [PATCH, net-next] net/mlx5e: fix TLS dependencyQuoted 10 lines · Arnd Bergmann
With
CONFIG_TLS=mand MLX5_CORE_EN=y, we get a link failure:
drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.o: In function `mlx5e_tls_handle_ooo':
tls_rxtx.c:(.text+0x24c): undefined reference totls_get_record' drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.o: In functionmlx5e_tls_handle_tx_skb':
tls_rxtx.c:(.text+0x9a8): undefined reference to `tls_device_sk_destruct'Quoted 7 lines
This narrows down the dependency to only allow the configurations that will actually work. The existing dependency on
TLS_DEVICEis not sufficient here sinceMLX5_EN_TLSis a 'bool' symbol.Fixes c83294b9efa5 ("net/mlx5e: TLS, Add Innova TLS TX support")Signed-off-by Arnd Bergmann <[email protected]>---
LGTM
Acked-by Saeed Mahameed <[email protected]>Thank you Arnd!
Quoted 16 lines
drivers/net/ethernet/mellanox/mlx5/core/Kconfig | 1 + 1 file changed, 1 insertion(+)drivers/net/ethernet/mellanox/mlx5/core/Kconfig +1
-0@@ -91,6 +91,7 @@ config MLX5_EN_TLS bool "TLS cryptography-offload accelaration" depends on MLX5_CORE_EN depends on TLS_DEVICE + depends on TLS=y || MLX5_CORE=m depends on MLX5_ACCEL default n ---help---
From: Arnd Bergmann <[email protected]>
Date: Fri, 25 May 2018 23:36:06 +0200
Quoted 7 lines
With
CONFIG_TLS=mand MLX5_CORE_EN=y, we get a link failure:
drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.o: In function `mlx5e_tls_handle_ooo':
tls_rxtx.c:(.text+0x24c): undefined reference totls_get_record' drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.o: In functionmlx5e_tls_handle_tx_skb':
tls_rxtx.c:(.text+0x9a8): undefined reference to `tls_device_sk_destruct'
Quoted 6 lines
This narrows down the dependency to only allow the configurations that will actually work. The existing dependency on
TLS_DEVICEis not sufficient here sinceMLX5_EN_TLSis a 'bool' symbol.Fixes c83294b9efa5 ("net/mlx5e: TLS, Add Innova TLS TX support")Signed-off-by Arnd Bergmann <[email protected]>
Applied, thank you.