Received: by 10.223.164.202 with SMTP id h10csp6036078wrb; Tue, 21 Nov 2017 21:09:42 -0800 (PST) X-Google-Smtp-Source: AGs4zMY9JbOPuHsPD+EG5pw/8nb3Ms8ZgvhcSsddIhIlIq06uHp+IcHnnoZ/eZqWBuGohOP+04XC X-Received: by 10.159.229.136 with SMTP id az8mr20080665plb.423.1511327382038; Tue, 21 Nov 2017 21:09:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511327382; cv=none; d=google.com; s=arc-20160816; b=kU5EE1OZDNA24DD3m44FzwC2QmBUDPJKFNmw+huGAz3UEx5hv75dLDZMKNkLcfpVN8 +eqOnHo/ih22HI1ZdPPORHW5RxEEQEB1DlU41QL1/TbhNNpLONpQxcIvBmgNjEUbE8LR ye/b8SE9Iqb4AAGX4JY9LKQfhvancymhnjz45xaijcC4jTvlPCqXY7qzDEaDy4/hirrj wnZ1R1cviBQgq9N7wzQ0glGya32kd8h2aSJK8v26cq/fCKImlmMxBSmp1wXqGgBNkPif Bk0WISUYdz7n0g+rLjqTuc2CNNNOoIMScShD5wD2Kd7ifEp9HcLnvAvM3iDJDkvf23G5 KRkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=5OlcQf9Je3F4KYs51AmcKvhAgXl2FVZ8FcBjhskJ8Q4=; b=xCNPArboIx0vHyboDoTzL9FaY1nA1I8DxPafskcF35mivET6ZzY82lylqFrcNv8GZ1 fdI3NODO4y97Y+mUla2CmfB92pTNJCMIoiqRH7w7sN6mTlQr+LE31gbSbuRamEc54QZi o4zwMWK7FXwFpZVZ0oU+eSjDXt/FHF7oD7/vfJGPOnWi+CNOdzWtS1XFA6NiVAhN+yUa Lj+lldKsPsy3qcJT3k0AcwiBLawRACrHKw+68CgFrrwqv0GT38e+VGT9Fjkr26gqPJmh DQl8/05AhriqmTPM4SBPD9PupRuuuqT6UW1kCAEH68ppULGPcHHRTF+vzgoE55/c1J9v FyRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FVWlbRKX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t194si12084675pgb.377.2017.11.21.21.09.29; Tue, 21 Nov 2017 21:09:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FVWlbRKX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751293AbdKVFIu (ORCPT + 76 others); Wed, 22 Nov 2017 00:08:50 -0500 Received: from mail-pf0-f195.google.com ([209.85.192.195]:36213 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750959AbdKVFIs (ORCPT ); Wed, 22 Nov 2017 00:08:48 -0500 Received: by mail-pf0-f195.google.com with SMTP id i15so11545059pfa.3; Tue, 21 Nov 2017 21:08:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=5OlcQf9Je3F4KYs51AmcKvhAgXl2FVZ8FcBjhskJ8Q4=; b=FVWlbRKXk0YU/Rd3mJZTJxoOgPhs2wPAbR2uM/9Wgp2ofwl1VLpM9bF8+P1VB7nqza EJ6LdZkc9f22a4c19dHrb4eEpYHM3X9AOwpTNkVavFuiF9x2pwkqaYzAUVzknYUocx0A IHyTzxCnLDYVxlqQryx3cC8Dntabx/qwFI6iVZS6PuXeZ467IWj+MT7I/CLIqezjsZRT MiRCD0HJbsVV8GyKcUGfs6/RvsTz3oRt9E7sl6is5KZbRFK4OAnqhio3u0rhbIBvMsyg e2IClzX8Whk5gdRROEXTqxvNmAXJHOpW/BPzcPfWYWC29/weKWC1bYkuRAXFIu+rsuxl PZ4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=5OlcQf9Je3F4KYs51AmcKvhAgXl2FVZ8FcBjhskJ8Q4=; b=lSAdvY/6oIp045NwxwumwtbuiMwHH06jQI4xQfI3v7I2TuKAN93Vgpfqlxd92Yl2Sw pPy5YTa/h34hfclQ4A61SA9pRgwqk1pM9IT2fTLBqEGT3koZgh229Eg9oTyWQcubmOjN DR8HRHt91QTGCt/fyqmIeQiGl2yN9+uPfnau5MOG/7y2rwYQE4yuYw1wxuOrMivoMZ6c pzYOzzrBD3nhViwB33svRgEqzFh03D/8aNm/CRz3CkCNUch0SoYtwI5Y3PSPZs4ONzto 9RqBGuc0gsj5F/BdR3H59IpfjT6RjVOsJd+sEvrWTC0oOZA8Tui0gUmMU8Z5LaFyad5H ckzw== X-Gm-Message-State: AJaThX7a+Lc/CUS1ATsqd1z6s0H3fAGUyZD7x9OEefHM4C2nVhXJamsc 68QmH6hDFzZK+TFv2Jxp8M3/HOBI X-Received: by 10.98.66.74 with SMTP id p71mr13125949pfa.214.1511327328371; Tue, 21 Nov 2017 21:08:48 -0800 (PST) Received: from 192-168-1-6.tpgi.com.com (110-175-8-199.static.tpgi.com.au. [110.175.8.199]) by smtp.gmail.com with ESMTPSA id u6sm11452178pfk.126.2017.11.21.21.08.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 21 Nov 2017 21:08:47 -0800 (PST) From: Jon Maxwell To: herbert@gondor.apana.org.au, davem@davemloft.net Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, jmaxwell@redhat.com, Jon Maxwell Subject: [PATCH net-next] cryptd: Add cryptd_max_cpu_qlen module parameter Date: Wed, 22 Nov 2017 16:08:17 +1100 Message-Id: <20171122050817.21385-1-jmaxwell37@gmail.com> X-Mailer: git-send-email 2.13.6 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Make the cryptd queue length configurable. We recently had customer where this needed to be tuned to accommodate the aesni_intel module and prevent packet drop. Signed-off-by: Jon Maxwell --- crypto/cryptd.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/crypto/cryptd.c b/crypto/cryptd.c index bd43cf5be14c..b1eb131c0f10 100644 --- a/crypto/cryptd.c +++ b/crypto/cryptd.c @@ -32,7 +32,9 @@ #include #include -#define CRYPTD_MAX_CPU_QLEN 1000 +unsigned int cryptd_max_cpu_qlen = 1000; +module_param(cryptd_max_cpu_qlen, uint, 0); +MODULE_PARM_DESC(cryptd_max_cpu_qlen, "Set cryptd Max queue depth"); struct cryptd_cpu_queue { struct crypto_queue queue; @@ -116,6 +118,7 @@ static int cryptd_init_queue(struct cryptd_queue *queue, crypto_init_queue(&cpu_queue->queue, max_cpu_qlen); INIT_WORK(&cpu_queue->work, cryptd_queue_worker); } + pr_info("cryptd: max_cpu_qlen set to %d\n", max_cpu_qlen); return 0; } @@ -1372,7 +1375,7 @@ static int __init cryptd_init(void) { int err; - err = cryptd_init_queue(&queue, CRYPTD_MAX_CPU_QLEN); + err = cryptd_init_queue(&queue, cryptd_max_cpu_qlen); if (err) return err; -- 2.13.6 From 1585381612162993030@xxx Wed Nov 29 06:42:05 +0000 2017 X-GM-THRID: 1585381612162993030 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread