]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Dec 2022 10:30:45 +0000 (11:30 +0100)
commita6b2b8f87dbada7c0d259a62919d185e2575ce7e
tree1d06e4dea439abc1977e822e16d8e2d2aa6cbd05
parent51929f05b6492511436385faf8e0162f206ec9a7
selftests: rtnetlink: correct xfrm policy rule in kci_test_ipsec_offload

[ Upstream commit 9264d0fdbc924eba7cbcd0fc586fc02c9b1534c9 ]

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: 01ccdbdfa370 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/net/rtnetlink.sh