diff options
author | Leon Romanovsky <leonro@nvidia.com> | 2022-05-05 12:06:45 +0200 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2022-05-06 08:35:46 +0200 |
commit | 254c4a824c7c6a53360bc4974710e4213b8b7f5d (patch) | |
tree | c20b9dd17aa82558fbd12f2e573cfdef0456d841 /net/xfrm | |
parent | net/mlx5e: Use XFRM state direction instead of flags (diff) | |
download | linux-254c4a824c7c6a53360bc4974710e4213b8b7f5d.tar.xz linux-254c4a824c7c6a53360bc4974710e4213b8b7f5d.zip |
xfrm: drop not needed flags variable in XFRM offload struct
After drivers were converted to rely on direction, the flags is not
used anymore and can be removed.
Reviewed-by: Raed Salem <raeds@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/xfrm')
-rw-r--r-- | net/xfrm/xfrm_device.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/xfrm/xfrm_device.c b/net/xfrm/xfrm_device.c index c818afca9137..35c7e89b2e7d 100644 --- a/net/xfrm/xfrm_device.c +++ b/net/xfrm/xfrm_device.c @@ -264,8 +264,6 @@ int xfrm_dev_state_add(struct net *net, struct xfrm_state *x, xso->dev = dev; netdev_tracker_alloc(dev, &xso->dev_tracker, GFP_ATOMIC); xso->real_dev = dev; - /* Don't forward bit that is not implemented */ - xso->flags = xuo->flags & ~XFRM_OFFLOAD_IPV6; if (xuo->flags & XFRM_OFFLOAD_INBOUND) xso->dir = XFRM_DEV_OFFLOAD_IN; @@ -274,7 +272,6 @@ int xfrm_dev_state_add(struct net *net, struct xfrm_state *x, err = dev->xfrmdev_ops->xdo_dev_state_add(x); if (err) { - xso->flags = 0; xso->dev = NULL; xso->dir = 0; xso->real_dev = NULL; |