Author: brueffer
Date: Mon Sep  8 19:24:25 2014
New Revision: 271286
URL: http://svnweb.freebsd.org/changeset/base/271286

Log:
  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
  MFC after:    1 week

Modified:
  head/sys/dev/ixgbe/ixgbe.c
  head/sys/dev/ixgbe/ixv.c

Modified: head/sys/dev/ixgbe/ixgbe.c
==============================================================================
--- head/sys/dev/ixgbe/ixgbe.c  Mon Sep  8 19:19:10 2014        (r271285)
+++ head/sys/dev/ixgbe/ixgbe.c  Mon Sep  8 19:24:25 2014        (r271286)
@@ -514,7 +514,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

Modified: head/sys/dev/ixgbe/ixv.c
==============================================================================
--- head/sys/dev/ixgbe/ixv.c    Mon Sep  8 19:19:10 2014        (r271285)
+++ head/sys/dev/ixgbe/ixv.c    Mon Sep  8 19:24:25 2014        (r271286)
@@ -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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to