]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: Fix build failure when CONFIG_TLS=m
authorTom Seewald <tseewald@gmail.com>
Fri, 20 Nov 2020 19:25:28 +0000 (13:25 -0600)
committerJakub Kicinski <kuba@kernel.org>
Sat, 21 Nov 2020 21:10:18 +0000 (13:10 -0800)
commit7bee0bceeff7a02ab6002a2f46c72d07a11c8a41
tree7854a80e6f68b95fa1de2ec568057d110254f5ea
parent1452bf356e4569cef3fac3f1feaed55158440504
cxgb4: Fix build failure when CONFIG_TLS=m

After commit d8119762029f ("cxgb4/ch_ktls: decrypted bit is not enough")
whenever CONFIG_TLS=m and CONFIG_CHELSIO_T4=y, the following build
failure occurs:

ld: drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.o: in function
`cxgb_select_queue':
cxgb4_main.c:(.text+0x2dac): undefined reference to `tls_validate_xmit_skb'

Fix this by ensuring that if TLS is set to be a module, CHELSIO_T4 will
also be compiled as a module. As otherwise the cxgb4 driver will not be
able to access TLS' symbols.

Fixes: d8119762029f ("cxgb4/ch_ktls: decrypted bit is not enough")
Signed-off-by: Tom Seewald <tseewald@gmail.com>
Link: https://lore.kernel.org/r/20201120192528.615-1-tseewald@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/chelsio/Kconfig