This patch adds the callbacks we need for IPsec GSO and maybe also for IPsec hardware offload.
Signed-off-by: Steffen Klassert <steffen.klass...@secunet.com> --- include/linux/netdevice.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 6fd1f1d..6936e96f 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -778,6 +778,12 @@ static inline bool netdev_phys_item_id_same(struct netdev_phys_item_id *a, typedef u16 (*select_queue_fallback_t)(struct net_device *dev, struct sk_buff *skb); +struct xfrmdev_ops { + int (*xdo_dev_encap) (struct sk_buff *skb); + int (*xdo_dev_prepare) (struct sk_buff *skb); + int (*xdo_dev_validate) (struct sk_buff *skb); + void (*xdo_dev_resume) (struct sk_buff *skb, int err); +}; /* * This structure defines the management hooks for network devices. @@ -1625,6 +1631,9 @@ struct net_device { #ifdef CONFIG_NET_L3_MASTER_DEV const struct l3mdev_ops *l3mdev_ops; #endif +#ifdef CONFIG_XFRM + const struct xfrmdev_ops *xfrmdev_ops; +#endif const struct header_ops *header_ops; -- 1.9.1