Thread (9 messages) 9 messages, 3 authors, 2017-11-21

[PATCH RFC 4/5] xfrm: Allow IPsec GSO with software crypto for local sockets.

flat view
STALE3266d SUPERSEDED

From: Steffen Klassert <steffen.klassert@secunet.com>
Date: 2017-11-20 07:38:16
Subsystem: networking [general], networking [ipsec], the rest · Maintainers: "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Steffen Klassert, Herbert Xu, Linus Torvalds

Status: Superseded by v2 (posted 2017-12-15). [go to v2]

Revision rfc (2 revisions archived).

Revisions (2)
  1. rfc current
  2. v2 [diff against previous]
With support of async crypto operations in the GSO codepath
we have everything in place to allow GSO for local sockets.
This patch enables the GSO codepath.

Signed-off-by: Steffen Klassert <steffen.klassert@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 76ae5c306776..80b6a1f1290e 100644
--- a/include/net/xfrm.h
+++ b/include/net/xfrm.h
@@ -1873,6 +1873,8 @@ static inline bool xfrm_dst_offload_ok(struct dst_entry *dst)
 	if (!x || !x->type_offload)
 		return false;
 
+	if (!x->xso.offload_handle && !dst->child->xfrm)
+		return true;
 	if (x->xso.offload_handle && (x->xso.dev == dst->path->dev) &&
 	    !dst->child->xfrm)
 		return true;
-- 
2.14.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help