[SRU][N][PATCH 3/4] netdevsim: fix rtnetlink.sh selftest
Alessio Faina
alessio.faina at canonical.com
Fri Dec 12 11:14:56 UTC 2025
From: David Wei <dw at davidwei.uk>
I cleared IFF_NOARP flag from netdevsim dev->flags in order to support
skb forwarding. This breaks the rtnetlink.sh selftest
kci_test_ipsec_offload() test because ipsec does not connect to peers it
cannot transmit to.
Fix the issue by adding a neigh entry manually. ipsec_offload test now
successfully pass.
Signed-off-by: David Wei <dw at davidwei.uk>
Signed-off-by: David S. Miller <davem at davemloft.net>
(cherry picked from commit 8ee60f9c41fb01440e8a8f97127869c9b1978362)
Signed-off-by: Alessio Faina <alessio.faina at canonical.com>
---
tools/testing/selftests/net/rtnetlink.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/testing/selftests/net/rtnetlink.sh b/tools/testing/selftests/net/rtnetlink.sh
index b3fe44c557ade..aa050d5dbb546 100755
--- a/tools/testing/selftests/net/rtnetlink.sh
+++ b/tools/testing/selftests/net/rtnetlink.sh
@@ -806,6 +806,8 @@ kci_test_ipsec_offload()
end_test "FAIL: ipsec_offload SA offload missing from list output"
fi
+ # we didn't create a peer, make sure we can Tx
+ ip neigh add $dstip dev $dev lladdr 00:11:22:33:44:55
# use ping to exercise the Tx path
ping -I $dev -c 3 -W 1 -i 0 $dstip >/dev/null
--
2.43.0
More information about the kernel-team
mailing list