Skip to content

Commit 8ee60f9

Browse files
spikehdavem330
authored andcommitted
netdevsim: fix rtnetlink.sh selftest
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent dfb429e commit 8ee60f9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/testing/selftests/net/rtnetlink.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -801,6 +801,8 @@ kci_test_ipsec_offload()
801801
end_test "FAIL: ipsec_offload SA offload missing from list output"
802802
fi
803803

804+
# we didn't create a peer, make sure we can Tx
805+
ip neigh add $dstip dev $dev lladdr 00:11:22:33:44:55
804806
# use ping to exercise the Tx path
805807
ping -I $dev -c 3 -W 1 -i 0 $dstip >/dev/null
806808

0 commit comments

Comments
 (0)