Skip to content

Commit 43590d2

Browse files
liuhangbingregkh
authored andcommitted
selftests: rtnetlink: update netdevsim ipsec output format
commit 3ec920bb978ccdc68a7dfb304d303d598d038cb1 upstream. After the netdevsim update to use human-readable IP address formats for IPsec, we can now use the source and destination IPs directly in testing. Here is the result: # ./rtnetlink.sh -t kci_test_ipsec_offload PASS: ipsec_offload Signed-off-by: Hangbin Liu <[email protected]> Acked-by: Stanislav Fomichev <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]> Signed-off-by: Harshit Mogalapalli <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent ab2121f commit 43590d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/testing/selftests/net/rtnetlink.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -813,10 +813,10 @@ kci_test_ipsec_offload()
813813
# does driver have correct offload info
814814
diff $sysfsf - << EOF
815815
SA count=2 tx=3
816-
sa[0] tx ipaddr=0x00000000 00000000 00000000 00000000
816+
sa[0] tx ipaddr=$dstip
817817
sa[0] spi=0x00000009 proto=0x32 salt=0x61626364 crypt=1
818818
sa[0] key=0x34333231 38373635 32313039 36353433
819-
sa[1] rx ipaddr=0x00000000 00000000 00000000 037ba8c0
819+
sa[1] rx ipaddr=$srcip
820820
sa[1] spi=0x00000009 proto=0x32 salt=0x61626364 crypt=1
821821
sa[1] key=0x34333231 38373635 32313039 36353433
822822
EOF

0 commit comments

Comments
 (0)