lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 4 Feb 2016 07:36:58 +0100 From: Steffen Klassert <steffen.klassert@...unet.com> To: <netdev@...r.kernel.org> CC: Steffen Klassert <steffen.klassert@...unet.com>, <sowmini.varadhan@...cle.com> Subject: [PATCH RFC 05/13] xfrm: Add callbacks for IPsec GSO offloading 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.klassert@...unet.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
Powered by blists - more mailing lists