From: Steffen Klassert Subject: [PATCH RFC 4/5] xfrm: Allow IPsec GSO with software crypto for local sockets. Date: Mon, 20 Nov 2017 08:37:51 +0100 Message-ID: <20171120073752.29094-5-steffen.klassert@secunet.com> References: <20171120073752.29094-1-steffen.klassert@secunet.com> Mime-Version: 1.0 Content-Type: text/plain Cc: Steffen Klassert To: Return-path: Received: from a.mx.secunet.com ([62.96.220.36]:50400 "EHLO a.mx.secunet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751086AbdKTHiQ (ORCPT ); Mon, 20 Nov 2017 02:38:16 -0500 Received: from localhost (localhost [127.0.0.1]) by a.mx.secunet.com (Postfix) with ESMTP id 16002201DF for ; Mon, 20 Nov 2017 08:38:15 +0100 (CET) Received: from a.mx.secunet.com ([127.0.0.1]) by localhost (a.mx.secunet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id psDH8TPl2xVr for ; Mon, 20 Nov 2017 08:38:14 +0100 (CET) Received: from mail-essen-01.secunet.de (mail-essen-01.secunet.de [10.53.40.204]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a.mx.secunet.com (Postfix) with ESMTPS id AA647201E3 for ; Mon, 20 Nov 2017 08:38:14 +0100 (CET) In-Reply-To: <20171120073752.29094-1-steffen.klassert@secunet.com> Sender: netdev-owner@vger.kernel.org List-ID: 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 --- 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