linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] selftests/net: enable fragments for fib-onlink-tests
@ 2018-03-08 10:17 Anders Roxell
  2018-03-08 16:14 ` David Miller
  2018-03-08 17:59 ` David Ahern
  0 siblings, 2 replies; 3+ messages in thread
From: Anders Roxell @ 2018-03-08 10:17 UTC (permalink / raw)
  To: davem, shuah; +Cc: netdev, linux-kselftest, linux-kernel, 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@linaro.org>
---
 tools/testing/selftests/net/config | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tools/testing/selftests/net/config b/tools/testing/selftests/net/config
index 7177bea1fdfa..6a75a3ea44ad 100644
--- a/tools/testing/selftests/net/config
+++ b/tools/testing/selftests/net/config
@@ -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
-- 
2.11.0


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

* Re: [PATCH] selftests/net: enable fragments for fib-onlink-tests
  2018-03-08 10:17 [PATCH] selftests/net: enable fragments for fib-onlink-tests Anders Roxell
@ 2018-03-08 16:14 ` David Miller
  2018-03-08 17:59 ` David Ahern
  1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2018-03-08 16:14 UTC (permalink / raw)
  To: anders.roxell; +Cc: shuah, netdev, linux-kselftest, linux-kernel

From: Anders Roxell <anders.roxell@linaro.org>
Date: Thu,  8 Mar 2018 11:17:23 +0100

> 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@linaro.org>

Applied, thank you.

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

* Re: [PATCH] selftests/net: enable fragments for fib-onlink-tests
  2018-03-08 10:17 [PATCH] selftests/net: enable fragments for fib-onlink-tests Anders Roxell
  2018-03-08 16:14 ` David Miller
@ 2018-03-08 17:59 ` David Ahern
  1 sibling, 0 replies; 3+ messages in thread
From: David Ahern @ 2018-03-08 17:59 UTC (permalink / raw)
  To: Anders Roxell, davem, shuah; +Cc: netdev, linux-kselftest, linux-kernel

On 3/8/18 3:17 AM, Anders Roxell wrote:
> 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@linaro.org>
> ---
>  tools/testing/selftests/net/config | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/tools/testing/selftests/net/config b/tools/testing/selftests/net/config
> index 7177bea1fdfa..6a75a3ea44ad 100644
> --- a/tools/testing/selftests/net/config
> +++ b/tools/testing/selftests/net/config
> @@ -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.

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

end of thread, other threads:[~2018-03-08 17:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-08 10:17 [PATCH] selftests/net: enable fragments for fib-onlink-tests Anders Roxell
2018-03-08 16:14 ` David Miller
2018-03-08 17:59 ` David Ahern

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