Commit 9a7f8736 authored by Magali Lemes's avatar Magali Lemes Committed by sanglipeng
Browse files

selftests: net: fcnal-test: check if FIPS mode is enabled

stable inclusion
from stable-v5.10.186
commit 31cd0d4a4470e28707471dd0f1b746af4d26ebbc
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8L5XP

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=31cd0d4a4470e28707471dd0f1b746af4d26ebbc



--------------------------------

[ Upstream commit d7a2fc14 ]

There are some MD5 tests which fail when the kernel is in FIPS mode,
since MD5 is not FIPS compliant. Add a check and only run those tests
if FIPS mode is not enabled.

Fixes: f0bee1eb ("fcnal-test: Add TCP MD5 tests")
Fixes: 5cad8bce ("fcnal-test: Add TCP MD5 tests for VRF")
Reviewed-by: default avatarDavid Ahern <dsahern@kernel.org>
Signed-off-by: default avatarMagali Lemes <magali.lemes@canonical.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 19a566de
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment