Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Apr 2017 21:17:57 +0000 (UTC)
From:      Sean Bruno <sbruno@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r316474 - head/sys/dev/e1000
Message-ID:  <201704032117.v33LHvao088478@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sbruno
Date: Mon Apr  3 21:17:57 2017
New Revision: 316474
URL: https://svnweb.freebsd.org/changeset/base/316474

Log:
  Remove rx_processing_limit sysctl and now orphaned function em_set_sysctl_value
  
  Sponsored by:	Limelight Networks

Modified:
  head/sys/dev/e1000/if_em.c

Modified: head/sys/dev/e1000/if_em.c
==============================================================================
--- head/sys/dev/e1000/if_em.c	Mon Apr  3 21:10:02 2017	(r316473)
+++ head/sys/dev/e1000/if_em.c	Mon Apr  3 21:17:57 2017	(r316474)
@@ -290,8 +290,6 @@ static void	em_handle_link(void *context
 
 static void	em_enable_vectors_82574(if_ctx_t);
 
-static void	em_set_sysctl_value(struct adapter *, const char *,
-		    const char *, int *, int);
 static int	em_set_flowcntl(SYSCTL_HANDLER_ARGS);
 static int	em_sysctl_eee(SYSCTL_HANDLER_ARGS);
 static void	em_if_led_func(if_ctx_t ctx, int onoff);
@@ -896,11 +894,6 @@ em_if_attach_pre(if_ctx_t ctx)
 	    E1000_REGISTER(hw, E1000_ITR),
 	    DEFAULT_ITR);
 
-	/* Sysctl for limiting the amount of work done in the taskqueue */
-	em_set_sysctl_value(adapter, "rx_processing_limit",
-	    "max number of rx packets to process", &adapter->rx_process_limit,
-	    em_rx_process_limit);
-
 	hw->mac.autoneg = DO_AUTO_NEG;
 	hw->phy.autoneg_wait_to_complete = FALSE;
 	hw->phy.autoneg_advertised = AUTONEG_ADV_DEFAULT;
@@ -4217,17 +4210,6 @@ em_add_int_delay_sysctl(struct adapter *
 	    info, 0, em_sysctl_int_delay, "I", description);
 }
 
-static void
-em_set_sysctl_value(struct adapter *adapter, const char *name,
-	const char *description, int *limit, int value)
-{
-	*limit = value;
-	SYSCTL_ADD_INT(device_get_sysctl_ctx(adapter->dev),
-	    SYSCTL_CHILDREN(device_get_sysctl_tree(adapter->dev)),
-	    OID_AUTO, name, CTLFLAG_RW, limit, value, description);
-}
-
-
 /*
  * Set flow control using sysctl:
  * Flow control values:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704032117.v33LHvao088478>