Does CONFIG_XFRM_OFFLOAD depends any other configs?
Subsystems (2)
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
Jakub Kicinski
maintainerQuoted 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=yviavng[1], but the result .config actually doesn't containCONFIG_XFRM_OFFLOAD=y. I sawXFRM_OFFLOADinnet/xfrm/Kconfigdoesn'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)
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=yviavng[1], but the result .config actually doesn't containCONFIG_XFRM_OFFLOAD=y. I sawXFRM_OFFLOADinnet/xfrm/Kconfigdoesn'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_OFFLOADandINET6_ESP_OFFLOADinstead (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
Jakub Kicinski
maintainerQuoted 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_OFFLOADandINET6_ESP_OFFLOADinstead (which "select" it)Thanks for your reply. How to know if an option is hide other than review all
make menuconfigresult?
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).
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_OFFLOADandINET6_ESP_OFFLOADinstead (which "select" it)Thanks for your reply. How to know if an option is hide other than review all
make menuconfigresult?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=yCONFIG_INET_ESP_OFFLOAD=y
in tools/testing/selftests/drivers/net/bonding/config enough?
Thanks
Hangbin
Jakub Kicinski
maintainerQuoted 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_OFFLOADwill selectXFRM_OFFLOAD, Isn't adding
CONFIG_INET_ESP=yCONFIG_INET_ESP_OFFLOAD=yin
tools/testing/selftests/drivers/net/bonding/configenough?
Sorry, I misunderstood. Yes, for the test that should be enough.