Skip to contentSkip to conversation

selftests/net: enable fragments for fib-onlink-tests

PATCH In review Anders Roxell 3 participants 3 messages Mar 8, 2018

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

PATCH 1/1 selftests/net: enable fragments for fib-onlink-tests

We miss CONFIG_* fragments so test fib-onlink-tests.sh can do:
ip li add lisa type vrf table 1101
ip li add veth1 type veth peer name veth2

And the follow message occurs if it isn't enabled:
Configuring interfaces
RTNETLINK answers: Operation not supported

This enables for NET_NRF (and friends) and VETH so we can create a vrf table and veth.

Fixes 153e1b84f477 ("selftests: Add FIB onlink tests")
Signed-off-by Anders Roxell <anders.roxell at linaro.org>
---
 tools/testing/selftests/net/config | 5 +++++
 1 file changed, 5 insertions(+)
tools/testing/selftests/net/config +5 -0
index 7177bea1fdfa..6a75a3ea44ad 100644
@@ -2,3 +2,8 @@ CONFIG_USER_NS=y
 CONFIG_BPF_SYSCALL=y
 CONFIG_TEST_BPF=m
 CONFIG_NUMA=y
+CONFIG_NET_VRF=y
+CONFIG_NET_L3_MASTER_DEV=y
+CONFIG_IPV6=y
+CONFIG_IPV6_MULTIPLE_TABLES=y
+CONFIG_VETH=y
Signature · 6 lines
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
maintainer
#1 lore raw

From: Anders Roxell <[email protected]>
Date: Thu, 8 Mar 2018 11:17:23 +0100

Quoted 8 lines

We miss CONFIG_* fragments so test fib-onlink-tests.sh can do:
ip li add lisa type vrf table 1101
ip li add veth1 type veth peer name veth2

And the follow message occurs if it isn't enabled:
Configuring interfaces
RTNETLINK answers: Operation not supported

Quoted 5 lines

This enables for NET_NRF (and friends) and VETH so we can create a vrf table and veth.

Fixes 153e1b84f477 ("selftests: Add FIB onlink tests")
Signed-off-by Anders Roxell <anders.roxell at linaro.org>

Applied, thank you.
--
To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
In reply to Anders Roxell
Quoted 23 lines · Anders Roxell

We miss CONFIG_* fragments so test fib-onlink-tests.sh can do:
ip li add lisa type vrf table 1101
ip li add veth1 type veth peer name veth2

And the follow message occurs if it isn't enabled:
Configuring interfaces
RTNETLINK answers: Operation not supported

This enables for NET_NRF (and friends) and VETH so we can create a vrf table and veth.

Fixes 153e1b84f477 ("selftests: Add FIB onlink tests")
Signed-off-by Anders Roxell <anders.roxell at linaro.org>
---
 tools/testing/selftests/net/config | 5 +++++
 1 file changed, 5 insertions(+)
tools/testing/selftests/net/config +0 -0
index 7177bea1fdfa..6a75a3ea44ad 100644

tools/testing/selftests/net/config CONFIG_USER_NS=y · line 9

Quoted 8 lines
tools/testing/selftests/net/config +5 -0
@@ -2,3 +2,8 @@ CONFIG_USER_NS=y
 CONFIG_BPF_SYSCALL=y
 CONFIG_TEST_BPF=m
 CONFIG_NUMA=y
+CONFIG_NET_VRF=y
+CONFIG_NET_L3_MASTER_DEV=y
+CONFIG_IPV6=y
+CONFIG_IPV6_MULTIPLE_TABLES=y
+CONFIG_VETH=y

Thanks for updating the config.

The recent pmtu test needs quite a bit of additional configs as well. --
To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html