forked from Minki/linux
netdevsim: rely on XFRM state direction instead of flags
Make sure that netdevsim relies on direction and not on flags. Reviewed-by: Raed Salem <raeds@nvidia.com> Signed-off-by: Leon Romanovsky <leonro@nvidia.com> Acked-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
This commit is contained in:
parent
0c05ab78e3
commit
55e2f83afb
@ -171,7 +171,7 @@ static int nsim_ipsec_add_sa(struct xfrm_state *xs)
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (xs->xso.flags & XFRM_OFFLOAD_INBOUND) {
|
||||
if (xs->xso.dir == XFRM_DEV_OFFLOAD_IN) {
|
||||
sa.rx = true;
|
||||
|
||||
if (xs->props.family == AF_INET6)
|
||||
|
Loading…
Reference in New Issue
Block a user