From patchwork Thu Feb 11 11:35:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tariq Toukan X-Patchwork-Id: 12082943 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AEA4EC433E0 for ; Thu, 11 Feb 2021 11:40:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7E47064E2F for ; Thu, 11 Feb 2021 11:40:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230118AbhBKLkg (ORCPT ); Thu, 11 Feb 2021 06:40:36 -0500 Received: from hqnvemgate24.nvidia.com ([216.228.121.143]:19352 "EHLO hqnvemgate24.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229892AbhBKLhM (ORCPT ); Thu, 11 Feb 2021 06:37:12 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Thu, 11 Feb 2021 03:36:14 -0800 Received: from HQMAIL111.nvidia.com (172.20.187.18) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 11 Feb 2021 11:36:14 +0000 Received: from vdi.nvidia.com (172.20.145.6) by mail.nvidia.com (172.20.187.18) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 11 Feb 2021 11:36:11 +0000 From: Tariq Toukan To: "David S. Miller" , Jakub Kicinski CC: Boris Pismenny , , Tariq Toukan , Moshe Shemesh , "Maxim Mikityanskiy" , Saeed Mahameed , "John Fastabend" , Daniel Borkmann , Alexei Starovoitov , Tariq Toukan Subject: [PATCH net-next 2/3] net/tls: Select SOCK_RX_QUEUE_MAPPING from TLS_DEVICE Date: Thu, 11 Feb 2021 13:35:52 +0200 Message-ID: <20210211113553.8211-3-tariqt@nvidia.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20210211113553.8211-1-tariqt@nvidia.com> References: <20210211113553.8211-1-tariqt@nvidia.com> MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1613043374; bh=46Ejv8QFduxYBeMowkQSnD1kJdnzWdQLHpMB10zNevs=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:In-Reply-To: References:MIME-Version:Content-Transfer-Encoding:Content-Type; b=ed/KypqyhegMsQjJecSnAbHPfwxVcXfKvT2qrX2Y7ZYT5Oiw7OU3WTe5+SR6ybSZQ UFiH1oByMVj3EMv9qfgfjCvbqTwe/nvc4h4h2bslo2CBPBnQL/wkU6ZTzd/ufv+3vm vYgTqMkM9aQkmPg193Yw4u/CtV2RNFyje5S4Y5VSTCMZ7O8IJZmDkMb7wrjXBNzicO kgFyZlMBjBZ5BdLpuYjzaTq/uJNwZSF0Wee4nPnfOSUTv0msPYMxKfgaARDc3eF3Vm CLnt3e0etsDftqZGKq11ck2DTTSzGsZvj1QEqyvGbPMu1cl9nbj1uzWbybvnrtBUFM AwJurXRewAEDg== Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Compile-in the socket RX queue mapping field and logic when TLS_DEVICE is enabled. This allows device drivers to pick the recorded socket's RX queue and use it for streams distribution. Signed-off-by: Tariq Toukan Reviewed-by: Maxim Mikityanskiy --- net/tls/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/net/tls/Kconfig b/net/tls/Kconfig index fa0724fd84b4..0cdc1f7b6b08 100644 --- a/net/tls/Kconfig +++ b/net/tls/Kconfig @@ -21,6 +21,7 @@ config TLS_DEVICE bool "Transport Layer Security HW offload" depends on TLS select SOCK_VALIDATE_XMIT + select SOCK_RX_QUEUE_MAPPING default n help Enable kernel support for HW offload of the TLS protocol.