summaryrefslogtreecommitdiff
path: root/drivers/net/ixgbe/ixgbe_x540.c
diff options
context:
space:
mode:
authorGreg Rose <gregory.v.rose@intel.com>2011-03-01 04:37:15 (GMT)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2011-03-03 12:33:57 (GMT)
commit93cb38dc185f31159d1be70ffcc46802312fa537 (patch)
treeb7c8c5056b1e7bdd07b5741e679c25ddb6f1a28e /drivers/net/ixgbe/ixgbe_x540.c
parent75f19c3c5eeb67d37ce96e0ea78dc0beb485a723 (diff)
downloadlinux-fsl-qoriq-93cb38dc185f31159d1be70ffcc46802312fa537.tar.xz
ixgbe: X540 Cleanup
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>
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_x540.c')
-rw-r--r--drivers/net/ixgbe/ixgbe_x540.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ixgbe/ixgbe_x540.c b/drivers/net/ixgbe/ixgbe_x540.c
index fbc0a8b..11cb136 100644
--- a/drivers/net/ixgbe/ixgbe_x540.c
+++ b/drivers/net/ixgbe/ixgbe_x540.c
@@ -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 */