netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] xfrm: kconfig: Fix XFRM_OFFLOAD dependency on XFRM
@ 2023-07-24  9:00 Ilia Lin
  2023-07-24 18:11 ` Leon Romanovsky
  0 siblings, 1 reply; 8+ messages in thread
From: Ilia Lin @ 2023-07-24  9:00 UTC (permalink / raw)
  To: steffen.klassert, herbert, davem, edumazet, kuba, pabeni
  Cc: netdev, linux-kernel, jeffrey.t.kirsher

If XFRM_OFFLOAD is configured, but XFRM is not, it will cause
compilation error on include xfrm.h:
 C 05:56:39 In file included from /src/linux/kernel_platform/msm-kernel/net/core/sock.c:127:
 C 05:56:39 /src/linux/kernel_platform/msm-kernel/include/net/xfrm.h:1932:30: error: no member named 'xfrm' in 'struct dst_entry'
 C 05:56:39         struct xfrm_state *x = dst->xfrm;
 C 05:56:39                                ~~~  ^

Making the XFRM_OFFLOAD select the XFRM.

Fixes: 48e01e001da31 ("ixgbe/ixgbevf: fix XFRM_ALGO dependency")
Reported-by: Ilia Lin <ilia.lin@kernel.org>
Signed-off-by: Ilia Lin <ilia.lin@kernel.org>
---
 net/xfrm/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/xfrm/Kconfig b/net/xfrm/Kconfig
index 3adf31a83a79a..3fc2c1bcb5bbe 100644
--- a/net/xfrm/Kconfig
+++ b/net/xfrm/Kconfig
@@ -10,6 +10,7 @@ config XFRM

 config XFRM_OFFLOAD
 	bool
+	select XFRM

 config XFRM_ALGO
 	tristate
--
2.25.1


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

end of thread, other threads:[~2023-07-25 10:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-24  9:00 [PATCH] xfrm: kconfig: Fix XFRM_OFFLOAD dependency on XFRM Ilia Lin
2023-07-24 18:11 ` Leon Romanovsky
2023-07-25  4:41   ` Ilia Lin
2023-07-25  5:19     ` Leon Romanovsky
2023-07-25  9:11       ` Ilia Lin
2023-07-25  9:38         ` Leon Romanovsky
2023-07-25 10:15           ` Ilia Lin
2023-07-25 10:27             ` Leon Romanovsky

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).