]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
ixgbe: X540 Cleanup
authorGreg Rose <gregory.v.rose@intel.com>
Tue, 1 Mar 2011 04:37:15 +0000 (04:37 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 3 Mar 2011 12:33:57 +0000 (04:33 -0800)
Clean up commented out include file and use #define instead of hard coded
value for number of RAR entries.

Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ixgbe/ixgbe_x540.c

index fbc0a8bab396f7c5dfae8fca44b36819a8ace8b0..11cb136c0150de127b4b28b56a009024cdc169b8 100644 (file)
@@ -31,7 +31,6 @@
 
 #include "ixgbe.h"
 #include "ixgbe_phy.h"
-//#include "ixgbe_mbx.h"
 
 #define IXGBE_X540_MAX_TX_QUEUES 128
 #define IXGBE_X540_MAX_RX_QUEUES 128
@@ -201,7 +200,7 @@ mac_reset_top:
         * clear the multicast table.  Also reset num_rar_entries to 128,
         * since we modify this value when programming the SAN MAC address.
         */
-       hw->mac.num_rar_entries = 128;
+       hw->mac.num_rar_entries = IXGBE_X540_MAX_TX_QUEUES;
        hw->mac.ops.init_rx_addrs(hw);
 
        /* Store the permanent mac address */