aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/netdevsim/ipsec.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/netdevsim/ipsec.c')
-rw-r--r--drivers/net/netdevsim/ipsec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/netdevsim/ipsec.c b/drivers/net/netdevsim/ipsec.c
index b80ed2ffd45e..386336a38f34 100644
--- a/drivers/net/netdevsim/ipsec.c
+++ b/drivers/net/netdevsim/ipsec.c
@@ -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)