Commit 85a0506c authored by Zhengchao Shao's avatar Zhengchao Shao Committed by Jakub Kicinski

selftests: rtnetlink: correct xfrm policy rule in kci_test_ipsec_offload

When testing in kci_test_ipsec_offload, srcip is configured as $dstip,
it should add xfrm policy rule in instead of out.
The test result of this patch is as follows:
PASS: ipsec_offload

Fixes: 2766a111 ("selftests: rtnetlink: add ipsec offload API test")
Signed-off-by: default avatarZhengchao Shao <shaozhengchao@huawei.com>
Acked-by: default avatarHangbin Liu <liuhangbin@gmail.com>
Link: https://lore.kernel.org/r/20221201082246.14131-1-shaozhengchao@huawei.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 6648eadb
...@@ -782,7 +782,7 @@ kci_test_ipsec_offload() ...@@ -782,7 +782,7 @@ kci_test_ipsec_offload()
tmpl proto esp src $srcip dst $dstip spi 9 \ tmpl proto esp src $srcip dst $dstip spi 9 \
mode transport reqid 42 mode transport reqid 42
check_err $? check_err $?
ip x p add dir out src $dstip/24 dst $srcip/24 \ ip x p add dir in src $dstip/24 dst $srcip/24 \
tmpl proto esp src $dstip dst $srcip spi 9 \ tmpl proto esp src $dstip dst $srcip spi 9 \
mode transport reqid 42 mode transport reqid 42
check_err $? check_err $?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment