linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH, net-next] net/mlx5e: fix TLS dependency
@ 2018-05-25 21:36 Arnd Bergmann
  2018-05-25 23:18 ` Saeed Mahameed
  2018-05-29 14:04 ` David Miller
  0 siblings, 2 replies; 4+ messages in thread
From: Arnd Bergmann @ 2018-05-25 21:36 UTC (permalink / raw)
  To: Saeed Mahameed, Leon Romanovsky, David S. Miller
  Cc: Arnd Bergmann, Boris Pismenny, Ilan Tayari, Or Gerlitz,
	Ilya Lesokhin, Feras Daoud, netdev, linux-rdma, linux-kernel

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.

Fixes: c83294b9efa5 ("net/mlx5e: TLS, Add Innova TLS TX support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/net/ethernet/mellanox/mlx5/core/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/mellanox/mlx5/core/Kconfig b/drivers/net/ethernet/mellanox/mlx5/core/Kconfig
index ee6684779d11..2545296a0c08 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/Kconfig
+++ b/drivers/net/ethernet/mellanox/mlx5/core/Kconfig
@@ -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---
-- 
2.9.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH, net-next] net/mlx5e: fix TLS dependency
  2018-05-25 21:36 [PATCH, net-next] net/mlx5e: fix TLS dependency Arnd Bergmann
@ 2018-05-25 23:18 ` Saeed Mahameed
  2018-05-26 14:17   ` Boris Pismenny
  2018-05-29 14:04 ` David Miller
  1 sibling, 1 reply; 4+ messages in thread
From: Saeed Mahameed @ 2018-05-25 23:18 UTC (permalink / raw)
  To: davem, arnd, leon
  Cc: linux-kernel, linux-rdma, Boris Pismenny, Or Gerlitz,
	Feras Daoud, Ilan Tayari, netdev, Ilya Lesokhin

On Fri, 2018-05-25 at 23:36 +0200, Arnd Bergmann wrote:
> 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.
> 
> Fixes: c83294b9efa5 ("net/mlx5e: TLS, Add Innova TLS TX support")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---

LGTM

Acked-by: Saeed Mahameed <saeedm@mellanox.com>

Thank you Arnd!


>  drivers/net/ethernet/mellanox/mlx5/core/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/net/ethernet/mellanox/mlx5/core/Kconfig
> b/drivers/net/ethernet/mellanox/mlx5/core/Kconfig
> index ee6684779d11..2545296a0c08 100644
> --- a/drivers/net/ethernet/mellanox/mlx5/core/Kconfig
> +++ b/drivers/net/ethernet/mellanox/mlx5/core/Kconfig
> @@ -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---

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [PATCH, net-next] net/mlx5e: fix TLS dependency
  2018-05-25 23:18 ` Saeed Mahameed
@ 2018-05-26 14:17   ` Boris Pismenny
  0 siblings, 0 replies; 4+ messages in thread
From: Boris Pismenny @ 2018-05-26 14:17 UTC (permalink / raw)
  To: Saeed Mahameed, davem, arnd, leon
  Cc: linux-kernel, linux-rdma, Or Gerlitz, Feras Daoud, netdev

Acked-by: Boris Pismenny <borisp@mellanox.com>

Thank you.

> -----Original Message-----
> From: Saeed Mahameed
> Sent: Saturday, May 26, 2018 2:19 AM
> To: davem@davemloft.net; arnd@arndb.de; leon@kernel.org
> Cc: linux-kernel@vger.kernel.org; linux-rdma@vger.kernel.org; Boris
> Pismenny <borisp@mellanox.com>; Or Gerlitz <ogerlitz@mellanox.com>;
> Feras Daoud <ferasda@mellanox.com>; Ilan Tayari <ilant@mellanox.com>;
> netdev@vger.kernel.org; Ilya Lesokhin <ilyal@mellanox.com>
> Subject: Re: [PATCH, net-next] net/mlx5e: fix TLS dependency
> 
> On Fri, 2018-05-25 at 23:36 +0200, Arnd Bergmann wrote:
> > 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.
> >
> > Fixes: c83294b9efa5 ("net/mlx5e: TLS, Add Innova TLS TX support")
> > Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> > ---
> 
> LGTM
> 
> Acked-by: Saeed Mahameed <saeedm@mellanox.com>
> 
> Thank you Arnd!
> 
> 
> >  drivers/net/ethernet/mellanox/mlx5/core/Kconfig | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/drivers/net/ethernet/mellanox/mlx5/core/Kconfig
> > b/drivers/net/ethernet/mellanox/mlx5/core/Kconfig
> > index ee6684779d11..2545296a0c08 100644
> > --- a/drivers/net/ethernet/mellanox/mlx5/core/Kconfig
> > +++ b/drivers/net/ethernet/mellanox/mlx5/core/Kconfig
> > @@ -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---

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH, net-next] net/mlx5e: fix TLS dependency
  2018-05-25 21:36 [PATCH, net-next] net/mlx5e: fix TLS dependency Arnd Bergmann
  2018-05-25 23:18 ` Saeed Mahameed
@ 2018-05-29 14:04 ` David Miller
  1 sibling, 0 replies; 4+ messages in thread
From: David Miller @ 2018-05-29 14:04 UTC (permalink / raw)
  To: arnd
  Cc: saeedm, leon, borisp, ilant, ogerlitz, ilyal, ferasda, netdev,
	linux-rdma, linux-kernel

From: Arnd Bergmann <arnd@arndb.de>
Date: Fri, 25 May 2018 23:36:06 +0200

> 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.
> 
> Fixes: c83294b9efa5 ("net/mlx5e: TLS, Add Innova TLS TX support")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Applied, thank you.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-05-29 14:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-25 21:36 [PATCH, net-next] net/mlx5e: fix TLS dependency Arnd Bergmann
2018-05-25 23:18 ` Saeed Mahameed
2018-05-26 14:17   ` Boris Pismenny
2018-05-29 14:04 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).