summaryrefslogtreecommitdiffstats
path: root/sys/dev/ixgbe
diff options
context:
space:
mode:
authorbrueffer <brueffer@FreeBSD.org>2014-09-15 12:36:40 +0000
committerbrueffer <brueffer@FreeBSD.org>2014-09-15 12:36:40 +0000
commit8f5f705c7e3eff6c2b776113587643af03eae24e (patch)
tree3a6d93fc5db32286c7721f5031879ca0daf75375 /sys/dev/ixgbe
parent7b29f9e4e179d4d34772b6075a0cc1bbd4a0b77e (diff)
downloadFreeBSD-src-8f5f705c7e3eff6c2b776113587643af03eae24e.zip
FreeBSD-src-8f5f705c7e3eff6c2b776113587643af03eae24e.tar.gz
MFC: r271286
Use the right constants in comparisons. This is currently a nop, as MIN_RXD == MIN_TXD and MAX_RXD == MAX_TXD. Reviewed by: Eric Joyner @ Intel Approved by: re (kib)
Diffstat (limited to 'sys/dev/ixgbe')
-rw-r--r--sys/dev/ixgbe/ixgbe.c2
-rw-r--r--sys/dev/ixgbe/ixv.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ixgbe/ixgbe.c b/sys/dev/ixgbe/ixgbe.c
index 75ab2eb..1e9b980 100644
--- a/sys/dev/ixgbe/ixgbe.c
+++ b/sys/dev/ixgbe/ixgbe.c
@@ -517,7 +517,7 @@ ixgbe_attach(device_t dev)
}
if (((ixgbe_rxd * sizeof(union ixgbe_adv_rx_desc)) % DBA_ALIGN) != 0 ||
- ixgbe_rxd < MIN_TXD || ixgbe_rxd > MAX_TXD) {
+ ixgbe_rxd < MIN_RXD || ixgbe_rxd > MAX_RXD) {
device_printf(dev, "RXD config issue, using default!\n");
adapter->num_rx_desc = DEFAULT_RXD;
} else
diff --git a/sys/dev/ixgbe/ixv.c b/sys/dev/ixgbe/ixv.c
index a471da9..01c187b 100644
--- a/sys/dev/ixgbe/ixv.c
+++ b/sys/dev/ixgbe/ixv.c
@@ -347,7 +347,7 @@ ixv_attach(device_t dev)
adapter->num_tx_desc = ixv_txd;
if (((ixv_rxd * sizeof(union ixgbe_adv_rx_desc)) % DBA_ALIGN) != 0 ||
- ixv_rxd < MIN_TXD || ixv_rxd > MAX_TXD) {
+ ixv_rxd < MIN_RXD || ixv_rxd > MAX_RXD) {
device_printf(dev, "RXD config issue, using default!\n");
adapter->num_rx_desc = DEFAULT_RXD;
} else
OpenPOWER on IntegriCloud