selftests: rtnetlink: correct xfrm policy rule in kci_test_ipsec_offload
authorZhengchao Shao <shaozhengchao@huawei.com>
Thu, 1 Dec 2022 08:22:46 +0000 (16:22 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 3 Dec 2022 04:49:30 +0000 (20:49 -0800)
commit85a0506c073332a3057f5a9635fa0d4db5a8e03b
treede59831dbf1430f9647a67e122603a36d90f1236
parent6648eadba8d6b37c8e6cb1b906f68509b3b39385
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: 2766a11161cc ("selftests: rtnetlink: add ipsec offload API test")
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Acked-by: Hangbin Liu <liuhangbin@gmail.com>
Link: https://lore.kernel.org/r/20221201082246.14131-1-shaozhengchao@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/rtnetlink.sh