summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjfv <jfv@FreeBSD.org>2011-06-23 17:42:27 +0000
committerjfv <jfv@FreeBSD.org>2011-06-23 17:42:27 +0000
commit4a9f970de4a7f79286fa73de073a7c44187a9f60 (patch)
tree33a92216b19a91b356d256372c5374c9ff3f68dc
parent258f54d7675dfc59ad893a6433815f854e0467a1 (diff)
downloadFreeBSD-src-4a9f970de4a7f79286fa73de073a7c44187a9f60.zip
FreeBSD-src-4a9f970de4a7f79286fa73de073a7c44187a9f60.tar.gz
Put back the global for rx processing due to popular demand.
-rw-r--r--sys/dev/e1000/if_igb.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/e1000/if_igb.c b/sys/dev/e1000/if_igb.c
index 08735ac..a1a14b6 100644
--- a/sys/dev/e1000/if_igb.c
+++ b/sys/dev/e1000/if_igb.c
@@ -346,6 +346,10 @@ TUNABLE_INT("hw.igb.hdr_split", &igb_header_split);
static int igb_num_queues = 0;
TUNABLE_INT("hw.igb.num_queues", &igb_num_queues);
+/* How many packets rxeof tries to clean at a time */
+static int igb_rx_process_limit = 100;
+TUNABLE_INT("hw.igb.rx_process_limit", &igb_rx_process_limit);
+
/*********************************************************************
* Device identification routine
*
@@ -465,7 +469,7 @@ igb_attach(device_t dev)
/* Sysctl for limiting the amount of work done in the taskqueue */
igb_set_sysctl_value(adapter, "rx_processing_limit",
"max number of rx packets to process",
- &adapter->rx_process_limit, 100);
+ &adapter->rx_process_limit, igb_rx_process_limit);
/*
* Validate number of transmit and receive descriptors. It
OpenPOWER on IntegriCloud