mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 07:04:24 +00:00
selftests: rtnetlink: correct xfrm policy rule in kci_test_ipsec_offload
[ Upstream commit85a0506c07
] 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:2766a11161
("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>
This commit is contained in:
parent
e53e257f3c
commit
42a2baf69a
1 changed files with 1 additions and 1 deletions
|
@ -782,7 +782,7 @@ kci_test_ipsec_offload()
|
|||
tmpl proto esp src $srcip dst $dstip spi 9 \
|
||||
mode transport reqid 42
|
||||
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 \
|
||||
mode transport reqid 42
|
||||
check_err $?
|
||||
|
|
Loading…
Reference in a new issue