Commit 55e2f83a authored by Leon Romanovsky's avatar Leon Romanovsky Committed by Steffen Klassert

netdevsim: rely on XFRM state direction instead of flags

Make sure that netdevsim relies on direction and not on flags.
Reviewed-by: default avatarRaed Salem <raeds@nvidia.com>
Signed-off-by: default avatarLeon Romanovsky <leonro@nvidia.com>
Acked-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
parent 0c05ab78
...@@ -171,7 +171,7 @@ static int nsim_ipsec_add_sa(struct xfrm_state *xs) ...@@ -171,7 +171,7 @@ static int nsim_ipsec_add_sa(struct xfrm_state *xs)
return ret; return ret;
} }
if (xs->xso.flags & XFRM_OFFLOAD_INBOUND) { if (xs->xso.dir == XFRM_DEV_OFFLOAD_IN) {
sa.rx = true; sa.rx = true;
if (xs->props.family == AF_INET6) if (xs->props.family == AF_INET6)
......
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