Skip to contentSkip to conversation

selftests: net: add config fragments

PATCH In review Anders Roxell 3 participants 3 messages Jun 19, 2018 – Jun 21, 2018

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

PATCH 1/1 selftests: net: add config fragments

Add fragments to pass bridge and vlan tests.

Fixes 33b01b7b4f19 ("selftests: add rtnetlink test script")
Signed-off-by Anders Roxell <anders.roxell at linaro.org>

---

Hi,

net/rtnetlink.sh still fails on tc hbt hierarchy, addrlabel and ipsec:
Error: Specified qdisc not found.
RTNETLINK answers: No such file or directory
Error: Parent Qdisc doesn't exists.
We have an error talking to the kernel, -1
Error: Parent Qdisc doesn't exists.
We have an error talking to the kernel, -1
Error: Parent Qdisc doesn't exists.
We have an error talking to the kernel, -1
Error: Parent Qdisc doesn't exists.
We have an error talking to the kernel, -1
Error: Parent Qdisc doesn't exists.
We have an error talking to the kernel, -1
Error: Parent Qdisc doesn't exists.
We have an error talking to the kernel, -1
Error: Invalid handle.
FAIL: tc htb hierarchy

FAIL: ipv6 addrlabel

FAIL: can't add fou port 7777, skipping test
RTNETLINK answers: Operation not supported
FAIL: can't add macsec interface, skipping test
RTNETLINK answers: Protocol not supported
RTNETLINK answers: No such process
RTNETLINK answers: No such process
./rtnetlink.sh: line 527: 5356 Terminated ip x m >
$tmpfile
FAIL: ipsec

I'm using iproute2 tag: 4.17 and tried the qdisc command from the function kci_test_tc in net/rtnetlink.sh:

$ tc qdisc add dev lo root handle 1: htb
Error: Specified qdisc not found.

For kci_test_addrlabel it fails on this row:
ip addrlabel list |grep -q "prefix dead::/64 dev lo label 1"

Any idea why these three fails?

Cheers,
Anders

 tools/testing/selftests/net/config | 2 ++
 1 file changed, 2 insertions(+)
tools/testing/selftests/net/config +2 -0
index 7ba089b33e8b..cd3a2f1545b5 100644
@@ -12,3 +12,5 @@ CONFIG_NET_IPVTI=y
 CONFIG_INET6_XFRM_MODE_TUNNEL=y
 CONFIG_IPV6_VTI=y
 CONFIG_DUMMY=y
+CONFIG_BRIDGE=y
+CONFIG_VLAN_8021Q=y
Signature · 6 lines
2.17.1

--
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
#1 lore raw
Quoted 41 lines · Anders Roxell

Add fragments to pass bridge and vlan tests.

Fixes 33b01b7b4f19 ("selftests: add rtnetlink test script")
Signed-off-by Anders Roxell <anders.roxell at linaro.org>

---

Hi,

net/rtnetlink.sh still fails on tc hbt hierarchy, addrlabel and ipsec:
Error: Specified qdisc not found.
RTNETLINK answers: No such file or directory
Error: Parent Qdisc doesn't exists.
We have an error talking to the kernel, -1
Error: Parent Qdisc doesn't exists.
We have an error talking to the kernel, -1
Error: Parent Qdisc doesn't exists.
We have an error talking to the kernel, -1
Error: Parent Qdisc doesn't exists.
We have an error talking to the kernel, -1
Error: Parent Qdisc doesn't exists.
We have an error talking to the kernel, -1
Error: Parent Qdisc doesn't exists.
We have an error talking to the kernel, -1
Error: Invalid handle.
FAIL: tc htb hierarchy

FAIL: ipv6 addrlabel

FAIL: can't add fou port 7777, skipping test RTNETLINK answers: Operation not supported
FAIL: can't add macsec interface, skipping test RTNETLINK answers: Protocol not supported RTNETLINK answers: No such process RTNETLINK answers: No such process
./rtnetlink.sh: line 527: 5356 Terminated ip x m >
$tmpfile
FAIL: ipsec

I'm using iproute2 tag: 4.17 and tried the qdisc command from the function kci_test_tc in net/rtnetlink.sh:

Quoted 7 lines
$ tc qdisc add dev lo root handle 1: htb
Error: Specified qdisc not found.

For kci_test_addrlabel it fails on this row:
ip addrlabel list |grep -q "prefix dead::/64 dev lo label 1"

Any idea why these three fails?

The "Terminated" line is there because "ip x m" had been put into the background, and at the end of the ipsec test it is killed. I can try to play some games with exec and redirection to make that go away.

The "FAIL: ipsec" is partly because the test isn't smart enough to look to see if there is any offload actually available to test. I'm working on a patch to netdevsim to add the ipsec-offload in order to have a better test. And yes, this should say "ipsec-offload", not "ipsec".

I don't know about the qdisk or addrlabel issues.

Cheers,
sln

Quoted 13 lines

Cheers,
Anders

  tools/testing/selftests/net/config | 2 ++
  1 file changed, 2 insertions(+)
tools/testing/selftests/net/config +0 -0
index 7ba089b33e8b..cd3a2f1545b5 100644

tools/testing/selftests/net/config CONFIG_NET_IPVTI=y · line 16

Quoted 5 lines
tools/testing/selftests/net/config +2 -0
@@ -12,3 +12,5 @@ CONFIG_NET_IPVTI=y
  CONFIG_INET6_XFRM_MODE_TUNNEL=y
  CONFIG_IPV6_VTI=y
  CONFIG_DUMMY=y
+CONFIG_BRIDGE=y
+CONFIG_VLAN_8021Q=y

--
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
#2 lore raw
In reply to Anders Roxell

From: Anders Roxell <anders.roxell at linaro.org>
Date: Tue, 19 Jun 2018 18:41:11 +0200

Quoted 4 lines

Add fragments to pass bridge and vlan tests.

Fixes 33b01b7b4f19 ("selftests: add rtnetlink test script")
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