[B][F][G][Unstable][OEM-5.6][OEM-B-OSP1][SRU][PATCH 0/1] Fix for kci_test_encap_fou() test in rtnetlink.sh from kselftests/net

Po-Hsu Lin po-hsu.lin at canonical.com
Mon Oct 26 05:46:09 UTC 2020


BugLink: https://bugs.launchpad.net/bugs/1891421

== SRU Justification ==
The kci_test_encap_fou() from kci_test_encap() in rtnetlink.sh of
kselftests/net will fail with non-zero return value, and print:
  "FAIL: can't add fou port 7777, skipping test"

How to reproduce this:
 devdummy="test-dummy0"
 testns="testns"
 ip netns add "$testns"
 ip netns exec "$testns" ip link set lo up
 ip netns exec "$testns" ip link add name "$devdummy" type dummy
 ip netns exec "$testns" ip link set "$devdummy" up
 ip netns exec "$testns" ip fou add port 7777 ipproto 47
RTNETLINK answers: No such file or directory
Error talking to the kernel

This test would require the fou module to be loaded before it gets
started.

== Fix
* 26ebd6fed9bb ("selftests: rtnetlink: load fou module for
kci_test_encap_fou() test")

This patch needs to be backported for series after Xenial.

== Test ==
Patch tested directly on the kernel tree, the test will now pass as
expected.

== Regression Potential ==
Low, change limited to the testing tool.

Po-Hsu Lin (1):
  selftests: rtnetlink: load fou module for kci_test_encap_fou() test

 tools/testing/selftests/net/config       | 1 +
 tools/testing/selftests/net/rtnetlink.sh | 5 +++++
 2 files changed, 6 insertions(+)

-- 
2.7.4




More information about the kernel-team mailing list