From nobody Tue Feb 01 15:24:08 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id A866E1914ECA; Tue, 1 Feb 2022 15:24:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jp7y136JKz3FZ2; Tue, 1 Feb 2022 15:24:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643729049; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=AOxobqVXYrhKsMqxxBDPniCgh2d5cgE5WcYA63vXJ7s=; b=n5m6vyeGQ/rjcz1KPD5M3j1OLMxQNpq9r2C6YtVv+4nb+vvhzQBMEILa9h/25CYfwEOKdK 6Qp/Ymf8J6w8N0lpw+dExipRpoPfspC+PI/Gm+Eg6y+im3NcWJhYuRAQURR//b7tHIR7do QMWgnRFJ5lgOANXuIUy9cgzMwsoL7FmsKeXKSMJ+J61yRYr00pQ/HI4///0NNPo7furHKd RX51tkMqSYhxNXmUagubrhjSuqB9IXgLvIMJh7tiao30iJSSYsuXNFf4E9UDR8B/pYugJ6 7BI15Wx12mI1tjnas5UaC7hjYK2Oe9ugP7b7RRwkUdAGnpSUNKrZ8MphxCOz+A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DBB69133B6; Tue, 1 Feb 2022 15:24:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 211FO8eP050617; Tue, 1 Feb 2022 15:24:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 211FO8Vf050616; Tue, 1 Feb 2022 15:24:08 GMT (envelope-from git) Date: Tue, 1 Feb 2022 15:24:08 GMT Message-Id: <202202011524.211FO8Vf050616@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Hans Petter Selasky Subject: git: a60f95342488 - main - mlx5en: Make the hw_lro parameter read only tunable. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: hselasky X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a60f953424887cb4c72e2b113d4e0e0408c90bfc Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643729049; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=AOxobqVXYrhKsMqxxBDPniCgh2d5cgE5WcYA63vXJ7s=; b=iQoNJrm3FcLbL+65wQa3UaecNbLTUZBM6mn7vC3UK7cSTJQbX8lz7ZtEzgFBY0AuaQqzG/ ZACrpYmuTuBYckupsf126xC13vq2r4bFfWgY6LbMfzqlTr+PTQfwMZyzFl16YiXqM8y9aU jaW/N5UCusE89BWCC88pzoF+7Wn7nLCtVXAyygysh3A/i6NkubifA6D5LdwUGmKBm/ZGur jDVLfJxca+XOICq/ETxARBYiI81TITQamonRecenzo/UjHoDneV3huMXkHnKAQKw/zewgu SBCqtfwKyIofrVJ0aI7HrZEqxQz2mL8QaUn7nJTQ9r4qlPK3NFSc9RqPSBzIaw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1643729049; a=rsa-sha256; cv=none; b=TPSUr5MdR2T1H1NJQbMR2xcDYXGJEGflvt2JoZhaNUkZDW6eMLCP1kZiPi6BpwdHLTykZF QafE02YmL8kqKuYmz8RSGM70YRTz+8PcCVBB9uWE8kFBMnunoyAxRlgd4Z2HQUoEFd1FUj BqdqFPcqrgeh2kGtefMqwLDx+WZUg9e/Mn0RV3HhWL6XMCqjNPO27jjCkP+94E0L4gakB+ a3ku/u6j+UAIIU2h4ve0ISHImftH2HFY9gO6PLxdlkUUTjvVfyQyPdqKNuHts2rM1WKYVu qhWsgsnOVpuRxUOCinafPsG5tF12LxrVtmokehcox346xKevW1eANsAGD7yhNg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=a60f953424887cb4c72e2b113d4e0e0408c90bfc commit a60f953424887cb4c72e2b113d4e0e0408c90bfc Author: Hans Petter Selasky AuthorDate: 2022-02-01 15:20:05 +0000 Commit: Hans Petter Selasky CommitDate: 2022-02-01 15:21:14 +0000 mlx5en: Make the hw_lro parameter read only tunable. This prevents the so-called TIR context from changing during runtime. MFC after: 1 week Sponsored by: NVIDIA Networking --- sys/dev/mlx5/mlx5_en/mlx5_en_ethtool.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_ethtool.c b/sys/dev/mlx5/mlx5_en/mlx5_en_ethtool.c index 9423e274de81..654a2a15cd56 100644 --- a/sys/dev/mlx5/mlx5_en/mlx5_en_ethtool.c +++ b/sys/dev/mlx5/mlx5_en/mlx5_en_ethtool.c @@ -1473,6 +1473,12 @@ mlx5e_create_ethtool(struct mlx5e_priv *priv) mlx5e_params_desc[2 * x], CTLTYPE_U64 | CTLFLAG_RD | CTLFLAG_MPSAFE, priv, x, &mlx5e_ethtool_handler, "QU", mlx5e_params_desc[2 * x + 1]); + } else if (strcmp(mlx5e_params_desc[2 * x], "hw_lro") == 0) { + /* read-only, but tunable parameters */ + SYSCTL_ADD_PROC(&priv->sysctl_ctx, SYSCTL_CHILDREN(node), OID_AUTO, + mlx5e_params_desc[2 * x], CTLTYPE_U64 | CTLFLAG_RDTUN | + CTLFLAG_MPSAFE, priv, x, &mlx5e_ethtool_handler, "QU", + mlx5e_params_desc[2 * x + 1]); } else { /* * NOTE: In FreeBSD-11 and newer the