Skip to content

Commit 4b9cffa

Browse files
liuhangbinvijay-suman
authored andcommitted
selftests: rtnetlink: update netdevsim ipsec output format
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]> (cherry picked from commit 3ec920b) Orabug: 37547931 Signed-off-by: Harshit Mogalapalli <[email protected]> Reviewed-by: Liam Merwick <[email protected]> Signed-off-by: Vijayendra Suman <[email protected]>
1 parent 9db6a9c commit 4b9cffa

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)