This patch prepares struct xfrm_type for IPsec GSO offloading by adding a encap() callback for encapsulation and a output_tail() callback to do the crypto operations after the return from the GSO layer. We need the output_tail() callback to handle async crypto operations.
Signed-off-by: Steffen Klassert <steffen.klass...@secunet.com> --- include/net/xfrm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/net/xfrm.h b/include/net/xfrm.h index aed7153..a33ceb7 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h @@ -375,6 +375,8 @@ struct xfrm_type { void (*destructor)(struct xfrm_state *); int (*input)(struct xfrm_state *, struct sk_buff *skb); int (*output)(struct xfrm_state *, struct sk_buff *pskb); + int (*output_tail)(struct xfrm_state *x, struct sk_buff *skb); + void (*encap)(struct xfrm_state *x, struct sk_buff *skb); int (*reject)(struct xfrm_state *, struct sk_buff *, const struct flowi *); int (*hdr_offset)(struct xfrm_state *, struct sk_buff *, u8 **); -- 1.9.1