From: Steffen Klassert Date: Wed, 20 Dec 2017 09:41:48 +0000 (+0100) Subject: xfrm: Allow IPsec GSO with software crypto for local sockets. X-Git-Tag: v4.16-rc1~123^2~286^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2271d5190ec60b06921c2e4e184fd1f4fad4e634;p=thirdparty%2Flinux.git xfrm: Allow IPsec GSO with software crypto for local sockets. 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 --- diff --git a/include/net/xfrm.h b/include/net/xfrm.h index 2517c4f7781a6..357764a2bb4e4 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h @@ -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;