From nobody Tue Jan 09 22:16:29 2024 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 4T8ldV1XzXz56bLC; Tue, 9 Jan 2024 22:16:30 +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 4T8ldT6Tq5z4GRX; Tue, 9 Jan 2024 22:16:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704838589; 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=QSe0+Bdmykx3y9TGmIBEHhUkMoF6buOMegiB9XMn0lI=; b=Z+A0UiBORm+UfYbG9y1QlbOIk0JoX+AO2VPc6M7nvxm9yVMmbewSt6Vgeage3UmwtDCMWb djKaBQTP9mcCGhnPJAsdd+oL5XBNrLRC4pwjVAVDDou3Pp/6pPwy017wEcTx3bhVbGmyqe fV+0GqUXoJ3w2g3cpdxNVVOsO7j4K1B65svgErNsFHbm7uTOnhA35F5odeTBNNi65pxt7x 1HssL2R9vIDORAMpVyet7zW5Z/XAtiuSMWuzvyP9HgVTuI7gsZ+s0baArPfgSsSXQ+BfWr uVBIVmTwIefgfyRYW1EEE6UGDNuIUuBcf2qme1nyG4nUYN6uMcxkCNuTl1U4Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704838589; 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=QSe0+Bdmykx3y9TGmIBEHhUkMoF6buOMegiB9XMn0lI=; b=ltw59TH/XY2cSJgtL3FAxDPLMZwm+wTxPhO4W0QVLe8/tEDRccPHKGlPCcMLoy4JqETvtm JutwVN2DHN7Vwe4D0VEiYoKw0v7XDhC34i8YmKvw24msK0e/glxnDOu4kt3XTXkR22raRu Yo3TUrDnLSgi6kroVdnoHir3CTQlcIACm1X3ztQzUJill79cDDXWCxH24NMaB+jXd1qaJt r1M5Qj+FWIesNrql/EjypuT5FbSVnKDMrR9oVIf4Ql1I24y3w6TEYjtrgUEcLvRI1LcvKq LMJyH4yjWqlVsAbkHlnGh0E88g/crJAdw6cJeA0HSSU19vSL5fL1r5uqk5BNiw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704838589; a=rsa-sha256; cv=none; b=MDNMfxU3AvRN7dh2eFO9hP1WEZBkEd/+W3aI5L7Dnj23U6VUF1xsLnKWuAaKmJ/jh6l2UP ZoewSAPOeetwrTjjS2W7vZnAn7slyJPEdhSUX8qp4t2MKOg2uqKol9vlgjjOwKWzm8tHzl 2ceGxMjEGN/1oQZx9ORBlQFX9fAj5R2sCsyzr5fcqyZsFYS9pRLculnujcD9LmR1iXZgVg pVY2mQXNT0DrEgYj/KWs1C8Qz7sBR+673V7aMv/YtglUhyF8a+BhEpfSub+de5SbTWKYWX 1xDKeUSmyoH+J/UxcAtTRGzGpZB0qMlCBlXQ5M1sygkbJK0JB85PyTxi7h1GgA== 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 4T8ldT5ZNSz17Wp; Tue, 9 Jan 2024 22:16:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 409MGTVr019057; Tue, 9 Jan 2024 22:16:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 409MGTMA019054; Tue, 9 Jan 2024 22:16:29 GMT (envelope-from git) Date: Tue, 9 Jan 2024 22:16:29 GMT Message-Id: <202401092216.409MGTMA019054@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Marius Strobl Subject: git: f221d35be7a5 - main - igb(4): Remove disconnected SYSCTL 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: marius X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f221d35be7a5749e2a1246c81adc9c03c1dc545c Auto-Submitted: auto-generated The branch main has been updated by marius: URL: https://cgit.FreeBSD.org/src/commit/?id=f221d35be7a5749e2a1246c81adc9c03c1dc545c commit f221d35be7a5749e2a1246c81adc9c03c1dc545c Author: Marius Strobl AuthorDate: 2024-01-09 22:01:46 +0000 Commit: Marius Strobl CommitDate: 2024-01-09 22:15:44 +0000 igb(4): Remove disconnected SYSCTL The global hw.igb.rx_process_limit knob never was adhered to by the in-tree version of this driver but similar functionality is available via the device-specific dev.igb.N.iflib.rx_budget. While at it, remove the - besides initialization of tx_process_limit - unused {r,t}x_process_limit members. --- share/man/man4/igc.4 | 6 +----- sys/dev/igc/if_igc.c | 9 --------- sys/dev/igc/if_igc.h | 2 -- 3 files changed, 1 insertion(+), 16 deletions(-) diff --git a/share/man/man4/igc.4 b/share/man/man4/igc.4 index f77581edd00b..cf36e584a679 100644 --- a/share/man/man4/igc.4 +++ b/share/man/man4/igc.4 @@ -3,7 +3,7 @@ .\" Copyright 2021 Rubicon Communications, LLC (Netgate) .\" SPDX-License-Identifier: BSD-3-Clause .\" -.Dd May 10, 2021 +.Dd January 9, 2023 .Dt IGC 4 .Os .Sh NAME @@ -118,10 +118,6 @@ maximum delay in which a transmit interrupt is generated. .It Va hw.igc.sbp Show bad packets when in promiscuous mode. Default is false. -.It Va hw.igc.rx_process_limit -Maximum number of received packets to process at a time. -Default is 100. -A value of -1 means unlimited. .It Va hw.igc.eee_setting Disable or enable Energy Efficient Ethernet. Default 1 (disabled). diff --git a/sys/dev/igc/if_igc.c b/sys/dev/igc/if_igc.c index a0f0906e30da..bfa33c82f7ba 100644 --- a/sys/dev/igc/if_igc.c +++ b/sys/dev/igc/if_igc.c @@ -254,13 +254,6 @@ static int igc_debug_sbp = true; SYSCTL_INT(_hw_igc, OID_AUTO, sbp, CTLFLAG_RDTUN, &igc_debug_sbp, 0, "Show bad packets in promiscuous mode"); -/* How many packets rxeof tries to clean at a time */ -static int igc_rx_process_limit = 100; -SYSCTL_INT(_hw_igc, OID_AUTO, rx_process_limit, CTLFLAG_RDTUN, - &igc_rx_process_limit, 0, - "Maximum number of received packets to process " - "at a time, -1 means unlimited"); - /* Energy efficient ethernet - default to OFF */ static int igc_eee_setting = 1; SYSCTL_INT(_hw_igc, OID_AUTO, eee_setting, CTLFLAG_RDTUN, &igc_eee_setting, 0, @@ -466,8 +459,6 @@ igc_if_attach_pre(if_ctx_t ctx) adapter->media = iflib_get_media(ctx); hw = &adapter->hw; - adapter->tx_process_limit = scctx->isc_ntxd[0]; - /* SYSCTL stuff */ SYSCTL_ADD_PROC(device_get_sysctl_ctx(dev), SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), diff --git a/sys/dev/igc/if_igc.h b/sys/dev/igc/if_igc.h index 7a30f5956016..0c22ce9f76f4 100644 --- a/sys/dev/igc/if_igc.h +++ b/sys/dev/igc/if_igc.h @@ -372,8 +372,6 @@ struct igc_adapter { u32 txd_cmd; - u32 tx_process_limit; - u32 rx_process_limit; u32 rx_mbuf_sz; /* Management and WOL features */