xfrm: Allow IPsec GSO with software crypto for local sockets.
authorSteffen Klassert <steffen.klassert@secunet.com>
Wed, 20 Dec 2017 09:41:48 +0000 (10:41 +0100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 20 Dec 2017 09:41:48 +0000 (10:41 +0100)
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

index 2517c4f7781a6c548997d2cc11370d4b670789c2..357764a2bb4e4dbe11fc50220a9f50434c7cfad1 100644 (file)
@@ -1910,6 +1910,8 @@ static inline bool xfrm_dst_offload_ok(struct dst_entry *dst)
                return false;
 
        xdst = (struct xfrm_dst *) dst;
+       if (!x->xso.offload_handle && !xdst->child->xfrm)
+               return true;
        if (x->xso.offload_handle && (x->xso.dev == xfrm_dst_path(dst)->dev) &&
            !xdst->child->xfrm)
                return true;