diff options
author | Steffen Klassert <steffen.klassert@secunet.com> | 2017-12-20 10:41:48 +0100 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2017-12-20 10:41:48 +0100 |
commit | 2271d5190ec60b06921c2e4e184fd1f4fad4e634 (patch) | |
tree | 10b9e2df510b1d0be0ecbf4c7794d5773a8c5dfa /include/net/xfrm.h | |
parent | xfrm: Allow to use the layer2 IPsec GSO codepath for software crypto. (diff) | |
download | linux-2271d5190ec60b06921c2e4e184fd1f4fad4e634.tar.xz linux-2271d5190ec60b06921c2e4e184fd1f4fad4e634.zip |
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 <steffen.klassert@secunet.com>
Diffstat (limited to 'include/net/xfrm.h')
-rw-r--r-- | include/net/xfrm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index 2517c4f7781a..357764a2bb4e 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; |