Message ID | 20220513151218.4010119-7-steffen.klassert@secunet.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 55e2f83afb1c142885da63c5a9ce2998b6f6ab21 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [1/8] xfrm: free not used XFRM_ESP_NO_TRAILER flag | expand |
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)