diff options
| author | Leon Romanovsky <leonro@nvidia.com> | 2025-02-19 16:51:00 +0300 |
|---|---|---|
| committer | Steffen Klassert <steffen.klassert@secunet.com> | 2025-02-21 10:08:15 +0300 |
| commit | cc18f482e8b60a2bcf2d7d57b48740bd0837fc04 (patch) | |
| tree | 6051bfc1df6eeb21bd4821d78678d7b99ad63d34 /drivers/net/netdevsim/netdevsim.h | |
| parent | 49431af6c4ef20b4d9fa474341cf3e71a375db11 (diff) | |
| download | linux-cc18f482e8b60a2bcf2d7d57b48740bd0837fc04.tar.xz | |
xfrm: provide common xdo_dev_offload_ok callback implementation
Almost all drivers except bond and nsim had same check if device
can perform XFRM offload on that specific packet. The check was that
packet doesn't have IPv4 options and IPv6 extensions.
In NIC drivers, the IPv4 HELEN comparison was slightly different, but
the intent was to check for the same conditions. So let's chose more
strict variant as a common base.
Reviewed-by: Zhu Yanjun <yanjun.zhu@linux.dev>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'drivers/net/netdevsim/netdevsim.h')
| -rw-r--r-- | drivers/net/netdevsim/netdevsim.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/netdevsim/netdevsim.h b/drivers/net/netdevsim/netdevsim.h index 96d54c08043d..ca8f1a620044 100644 --- a/drivers/net/netdevsim/netdevsim.h +++ b/drivers/net/netdevsim/netdevsim.h @@ -54,7 +54,6 @@ struct nsim_ipsec { struct dentry *pfile; u32 count; u32 tx; - u32 ok; }; #define NSIM_MACSEC_MAX_SECY_COUNT 3 |
