aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/e1000
diff options
context:
space:
mode:
authorSean Bruno <sbruno@FreeBSD.org>2017-08-25 22:38:55 +0000
committerSean Bruno <sbruno@FreeBSD.org>2017-08-25 22:38:55 +0000
commit7d0d6484462bcf70e6e02c0ad8683ebab69aec7d (patch)
tree79ee5abd7afb0e7b3df0ca3913002ff0a73286ca /sys/dev/e1000
parent030edcce022407c93e1f9a3bd8b98c31973a52a2 (diff)
downloadsrc-7d0d6484462bcf70e6e02c0ad8683ebab69aec7d.tar.gz
src-7d0d6484462bcf70e6e02c0ad8683ebab69aec7d.zip
Add a different #define for the maximum number of transmit and
recieve descriptors for the igb(4) class of devices. This will allow a better definition for maximum going forward. Some igb(4) devices support more than the default 4K. Reported by: Jason (j@nitrology.com) Sponsored by: Limelight Networks
Notes
Notes: svn path=/head/; revision=322906
Diffstat (limited to 'sys/dev/e1000')
-rw-r--r--sys/dev/e1000/if_em.c4
-rw-r--r--sys/dev/e1000/if_em.h10
2 files changed, 8 insertions, 6 deletions
diff --git a/sys/dev/e1000/if_em.c b/sys/dev/e1000/if_em.c
index ed6da9d9517b..e86095decfd6 100644
--- a/sys/dev/e1000/if_em.c
+++ b/sys/dev/e1000/if_em.c
@@ -515,8 +515,8 @@ static struct if_shared_ctx igb_sctx_init = {
.isc_nrxd_min = {EM_MIN_RXD},
.isc_ntxd_min = {EM_MIN_TXD},
- .isc_nrxd_max = {EM_MAX_RXD},
- .isc_ntxd_max = {EM_MAX_TXD},
+ .isc_nrxd_max = {IGB_MAX_RXD},
+ .isc_ntxd_max = {IGB_MAX_TXD},
.isc_nrxd_default = {EM_DEFAULT_RXD},
.isc_ntxd_default = {EM_DEFAULT_TXD},
};
diff --git a/sys/dev/e1000/if_em.h b/sys/dev/e1000/if_em.h
index f3ba10439e23..6e19449ac8b4 100644
--- a/sys/dev/e1000/if_em.h
+++ b/sys/dev/e1000/if_em.h
@@ -96,10 +96,10 @@
/* Tunables */
/*
- * EM_TXD: Maximum number of Transmit Descriptors
+ * EM_MAX_TXD: Maximum number of Transmit Descriptors
* Valid Range: 80-256 for 82542 and 82543-based adapters
* 80-4096 for others
- * Default Value: 256
+ * Default Value: 1024
* This value is the number of transmit descriptors allocated by the driver.
* Increasing this value allows the driver to queue more transmits. Each
* descriptor is 16 bytes.
@@ -111,12 +111,13 @@
#define EM_MAX_TXD 4096
#define EM_DEFAULT_TXD 1024
#define EM_DEFAULT_MULTI_TXD 4096
+#define IGB_MAX_TXD 4096
/*
- * EM_RXD - Maximum number of receive Descriptors
+ * EM_MAX_RXD - Maximum number of receive Descriptors
* Valid Range: 80-256 for 82542 and 82543-based adapters
* 80-4096 for others
- * Default Value: 256
+ * Default Value: 1024
* This value is the number of receive descriptors allocated by the driver.
* Increasing this value allows the driver to buffer more incoming packets.
* Each descriptor is 16 bytes. A receive buffer is also allocated for each
@@ -129,6 +130,7 @@
#define EM_MAX_RXD 4096
#define EM_DEFAULT_RXD 1024
#define EM_DEFAULT_MULTI_RXD 4096
+#define IGB_MAX_RXD 4096
/*
* EM_TIDV - Transmit Interrupt Delay Value