Skip to contentSkip to conversation

Does CONFIG_XFRM_OFFLOAD depends any other configs?

Question Hangbin Liu 2 participants 6 messages Aug 19, 2024 – Aug 20, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi Herbert, Jakub,

Yesterday I tried to build the kernel with CONFIG_XFRM_OFFLOAD=y via vng[1], but the result .config actually doesn't contain CONFIG_XFRM_OFFLOAD=y. I saw XFRM_OFFLOAD in net/xfrm/Kconfig doesn't has any dependences. Do you know if I missed something?

Here are my steps:

# cat tools/testing/selftests/drivers/net/bonding/config
CONFIG_BONDING=y
CONFIG_BRIDGE=y
CONFIG_DUMMY=y
CONFIG_IPV6=y
CONFIG_MACVLAN=y
CONFIG_NET_ACT_GACT=y
CONFIG_NET_CLS_FLOWER=y
CONFIG_NET_SCH_INGRESS=y
CONFIG_NLMON=y
CONFIG_VETH=y
CONFIG_XFRM_OFFLOAD=y
# vng --build --config tools/testing/selftests/drivers/net/bonding/config

[1] https://github.com/linux-netdev/nipa/wiki/How-to-run-netdev-selftests-CI-style

Thanks
Hangbin

maintainer
#1 lore raw
Quoted 4 lines · On Tue, 20 Aug 2024 07:39:08 +0800 Hangbin Liu wrote:

Yesterday I tried to build the kernel with CONFIG_XFRM_OFFLOAD=y via vng[1], but the result .config actually doesn't contain CONFIG_XFRM_OFFLOAD=y. I saw XFRM_OFFLOAD in net/xfrm/Kconfig doesn't has any dependences. Do you know if I missed something?

It's a hidden config option, not directly controlled by the user. You should enable INET_ESP_OFFLOAD and INET6_ESP_OFFLOAD instead (which "select" it)

#2 lore raw

Hi Jakub,

Quoted 9 lines · Jakub Kicinski
Quoted 4 lines · On Tue, 20 Aug 2024 07:39:08 +0800 Hangbin Liu wrote:

Yesterday I tried to build the kernel with CONFIG_XFRM_OFFLOAD=y via vng[1], but the result .config actually doesn't contain CONFIG_XFRM_OFFLOAD=y. I saw XFRM_OFFLOAD in net/xfrm/Kconfig doesn't has any dependences. Do you know if I missed something?

It's a hidden config option, not directly controlled by the user. You should enable INET_ESP_OFFLOAD and INET6_ESP_OFFLOAD instead (which "select" it)

Thanks for your reply. How to know if an option is hide other than review all make menuconfig result?

Should we add a "depends on" for XFRM_OFFLOAD?

Regards
Hangbin

maintainer
#3 lore raw
Quoted 6 lines · On Tue, 20 Aug 2024 08:58:51 +0800 Hangbin Liu wrote:
Quoted 3 lines

It's a hidden config option, not directly controlled by the user. You should enable INET_ESP_OFFLOAD and INET6_ESP_OFFLOAD instead (which "select" it)

Thanks for your reply. How to know if an option is hide other than review all make menuconfig result?

If it has no description after bool or tristate -- it will be hidden

Quoted 1 line

Should we add a "depends on" for XFRM_OFFLOAD?

You need it in bonding? You should use select (but not that select doesn't resolve dependencies, it only enables that single option).

#4 lore raw
Quoted 9 lines · Jakub Kicinski
Quoted 6 lines · On Tue, 20 Aug 2024 08:58:51 +0800 Hangbin Liu wrote:
Quoted 3 lines

It's a hidden config option, not directly controlled by the user. You should enable INET_ESP_OFFLOAD and INET6_ESP_OFFLOAD instead (which "select" it)

Thanks for your reply. How to know if an option is hide other than review all make menuconfig result?

If it has no description after bool or tristate -- it will be hidden

Appreciate, another tips learned.

Quoted 4 lines
Quoted 2 lines

Should we add a "depends on" for XFRM_OFFLOAD?

You need it in bonding? You should use select (but not that select

Yes, I may write some xfrm offload tests for bonding.

Quoted 1 line

doesn't resolve dependencies, it only enables that single option).

I didn't get which "select" you mean here. Since INET_ESP_OFFLOAD will select XFRM_OFFLOAD, Isn't adding

CONFIG_INET_ESP=y
CONFIG_INET_ESP_OFFLOAD=y

in tools/testing/selftests/drivers/net/bonding/config enough?

Thanks
Hangbin

maintainer
#5 lore raw
Quoted 9 lines · On Tue, 20 Aug 2024 09:26:49 +0800 Hangbin Liu wrote:
Quoted 1 line

doesn't resolve dependencies, it only enables that single option).

I didn't get which "select" you mean here. Since INET_ESP_OFFLOAD will select XFRM_OFFLOAD, Isn't adding

CONFIG_INET_ESP=y
CONFIG_INET_ESP_OFFLOAD=y

in tools/testing/selftests/drivers/net/bonding/config enough?

Sorry, I misunderstood. Yes, for the test that should be enough.