summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@nvidia.com>2022-05-05 12:06:43 +0200
committerSteffen Klassert <steffen.klassert@secunet.com>2022-05-06 08:34:33 +0200
commit55e2f83afb1c142885da63c5a9ce2998b6f6ab21 (patch)
tree184ea57d62527fe10b8cbe9d7dcc517a6d5143f7
parentixgbe: propagate XFRM offload state direction instead of flags (diff)
downloadlinux-55e2f83afb1c142885da63c5a9ce2998b6f6ab21.tar.xz
linux-55e2f83afb1c142885da63c5a9ce2998b6f6ab21.zip
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>
-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)