Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1843236lql; Wed, 13 Mar 2024 09:35:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWkDlal/uO2p9R0weXZFD/JBt3HjFd9CqwsekIZia15Tlk6IH4tzN1BH9wOQm5dfBAoGpCoGVqmvG79U03JwjGiAqRJLDii7vEY3VEEuA== X-Google-Smtp-Source: AGHT+IFPcc7hS/2QRSjKHH8+nDkccu2d52McQovYb7HOfUwVQKiHhsT81k85AJsNKEuGlS5caZku X-Received: by 2002:a2e:9dcf:0:b0:2d2:f394:fc19 with SMTP id x15-20020a2e9dcf000000b002d2f394fc19mr3218202ljj.27.1710347700804; Wed, 13 Mar 2024 09:35:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710347700; cv=pass; d=google.com; s=arc-20160816; b=Om1sBK89MAGnvVxS6MUAw/cLl2cdMZ3Wirweu4Pymqccs38g1Tdg/G85ihg94Bg4SO zw5W9+9ih8CJkNM/c3gvF5nxkrA599eTSNvQcrpsuZ1A6reFG3ee7IqflSnWKnGvZeyp v7EhZMF4LS0imwKXPC9FMqBwqAxLrjA4Fw9JICUAxL3ZRd0oesL6eOZCbBaiDsq23kcn SSbJK8CX5ON0SQ7T2bROAAJyrFMyjBhyvY5M+4ePy8QCNiW4dbSHYWB0fKgBmaaSwz31 R0PZZXy/XrFlrBZAgphVUPN5wkpOkmB1g7ZYhvjIgT6VAmlICNPIgp0/419Mj9nXRCux WtEQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=LPZ3tegTDxMalqOqUSxpFJbffAJXzIvhAzaWVkS4l6s=; fh=WhoKTtOAq5p9TNyhjIbgD0FQfzzvCnB3JHq0doTeAEA=; b=0BLGifzzRIAtnDuHFC9Y136XecGrMvv6x3tsmAkJ5dPMeH33zjVgVKlxbp/ZQ2RcJD gnE6LUzX/gGDBNaWeQOuVwFd8glUuHR2oIDXHDZY1hhyXhptdKtpyjeqJOPJTKmjw3wm WfR8bCnFwV+W3ArV7SusQO8l8vh4SMG2Ok5TcNDVBIQBWqzrxQTheMQGfzkV+T0/DaBh QpSFjCPInxNg1/jhr2GzMTmOh7fNmDFhzAxF9ebCApqmB+Sqxr5dofuH9MospQoqRbOB 2TavmtCaiKFZ+QV/GIAehjrXNxSHyDQBtfu5zG6cePzO6y1uFccBdkjrocBhBkf6iAfA jvfQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HFniQbpM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-101748-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101748-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id k13-20020aa7d8cd000000b0056864c54b3csi2722033eds.195.2024.03.13.09.35.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 09:35:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101748-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HFniQbpM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-101748-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101748-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7EC591F231A1 for ; Wed, 13 Mar 2024 16:35:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1F6AE5917B; Wed, 13 Mar 2024 16:32:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HFniQbpM" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 465B65914B; Wed, 13 Mar 2024 16:32:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710347570; cv=none; b=FSU6Mv/7G7J595dozJOYzQP+bHcG/Y8trS1Tb8zFlLYayWeW5iQQTJ6nsrTlRpzncYoXXIqyk8iPhfvIHNlWoE5roG00IJBgCFwyVwl6BO9nDLlCstoUfsLbk6xswpipgzSMmxJggZ5H3cenR4KtXeP0VXytdXiJtDCfy8bV688= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710347570; c=relaxed/simple; bh=mER1yfa1dH9o/9mw+NAa4OwuQlcgdGWtxZnPh2QN7k0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=H64VD8WqH8qFisSBOGJ9hiButr05T9+AjOiOUqHCvd/FRXuCaGHnMqwSPG+JBRLO3yCjwO3d3SZl1tOA5fx2PhMRwJuB+rMtYRrvrqeFmnWqdQQdjZWVgZBeA9pWlhQmcKHv3rL1Gurkm6g1vsFTbID6k7QsD5jpMSFLQ2N9kIU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HFniQbpM; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E53B0C433F1; Wed, 13 Mar 2024 16:32:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710347569; bh=mER1yfa1dH9o/9mw+NAa4OwuQlcgdGWtxZnPh2QN7k0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HFniQbpMy28SxrVYYCxhFkXOrTh3sFNnzgZI7d3H2qF8hpLEDHDFdLNtPlAYB/Ehs vQe9Ov1Qj5Rc9gfSKg5oYISJMtUZ1XgtcxISIwH3P9a+j9znRg9gtX1B7YG6XSi5pS X11+Pv1St36SydMMIhQ3mNy9QjsBanOTgzXAaiWvpWrDHRsjTuu4SF4TY5hZ8HkdRX ozjuFbkFyFcSc2nJ2V9eaKtyOoqge6l7ooK2dPav4b4CfxBnR2w4X3NeOz4c+emup1 VnvIWgH9uCu56XYAGFU0hcA01q/tTmOOSE+LokeMFUU4qtaxrNj2rUlrAUgeQJeF+J EBPk6Sx8xHDEg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Leon Romanovsky , Steffen Klassert , Mike Yu , Saeed Mahameed , Sasha Levin Subject: [PATCH 6.7 09/61] xfrm: Pass UDP encapsulation in TX packet offload Date: Wed, 13 Mar 2024 12:31:44 -0400 Message-ID: <20240313163236.613880-10-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240313163236.613880-1-sashal@kernel.org> References: <20240313163236.613880-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.7.10-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-6.7.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 6.7.10-rc1 X-KernelTest-Deadline: 2024-03-15T16:32+00:00 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Leon Romanovsky [ Upstream commit 983a73da1f996faee9997149eb05b12fa7bd8cbf ] In addition to citied commit in Fixes line, allow UDP encapsulation in TX path too. Fixes: 89edf40220be ("xfrm: Support UDP encapsulation in packet offload mode") CC: Steffen Klassert Reported-by: Mike Yu Signed-off-by: Leon Romanovsky Signed-off-by: Saeed Mahameed Signed-off-by: Steffen Klassert Signed-off-by: Sasha Levin --- net/xfrm/xfrm_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/xfrm/xfrm_device.c b/net/xfrm/xfrm_device.c index 3784534c91855..653e51ae39648 100644 --- a/net/xfrm/xfrm_device.c +++ b/net/xfrm/xfrm_device.c @@ -407,7 +407,7 @@ bool xfrm_dev_offload_ok(struct sk_buff *skb, struct xfrm_state *x) struct xfrm_dst *xdst = (struct xfrm_dst *)dst; struct net_device *dev = x->xso.dev; - if (!x->type_offload || x->encap) + if (!x->type_offload) return false; if (x->xso.type == XFRM_DEV_OFFLOAD_PACKET || -- 2.43.0