aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgbe/ixgbe_common.c
diff options
context:
space:
mode:
authorJesse Brandeburg <jesse.brandeburg@intel.com>2008-09-11 22:55:14 -0400
committerJeff Garzik <jgarzik@redhat.com>2008-09-24 18:54:48 -0400
commitce94bf469edf84228771b58489944cf654aeb496 (patch)
tree9346eb4b25bbefbe1e1b378fab43ed6f20e52be5 /drivers/net/ixgbe/ixgbe_common.c
parenta1f96ee7cce0dce583ff2f32de6376495ef51e4d (diff)
ixgbe: fix multicast address update
after the most recent patches, the driver was not using the correct iterator for updating the receive address registers (RAR) Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_common.c')
-rw-r--r--drivers/net/ixgbe/ixgbe_common.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/ixgbe/ixgbe_common.c b/drivers/net/ixgbe/ixgbe_common.c
index 9c0d0a1964eb..f5b2617111aa 100644
--- a/drivers/net/ixgbe/ixgbe_common.c
+++ b/drivers/net/ixgbe/ixgbe_common.c
@@ -896,6 +896,7 @@ static void ixgbe_set_mta(struct ixgbe_hw *hw, u8 *mc_addr)
896static void ixgbe_add_mc_addr(struct ixgbe_hw *hw, u8 *mc_addr) 896static void ixgbe_add_mc_addr(struct ixgbe_hw *hw, u8 *mc_addr)
897{ 897{
898 u32 rar_entries = hw->mac.num_rar_entries; 898 u32 rar_entries = hw->mac.num_rar_entries;
899 u32 rar;
899 900
900 hw_dbg(hw, " MC Addr =%.2X %.2X %.2X %.2X %.2X %.2X\n", 901 hw_dbg(hw, " MC Addr =%.2X %.2X %.2X %.2X %.2X %.2X\n",
901 mc_addr[0], mc_addr[1], mc_addr[2], 902 mc_addr[0], mc_addr[1], mc_addr[2],
@@ -906,8 +907,8 @@ static void ixgbe_add_mc_addr(struct ixgbe_hw *hw, u8 *mc_addr)
906 * else put it in the MTA 907 * else put it in the MTA
907 */ 908 */
908 if (hw->addr_ctrl.rar_used_count < rar_entries) { 909 if (hw->addr_ctrl.rar_used_count < rar_entries) {
909 ixgbe_set_rar(hw, hw->addr_ctrl.rar_used_count, 910 rar = rar_entries - hw->addr_ctrl.mc_addr_in_rar_count - 1;
910 mc_addr, 0, IXGBE_RAH_AV); 911 ixgbe_set_rar(hw, rar, mc_addr, 0, IXGBE_RAH_AV);
911 hw_dbg(hw, "Added a multicast address to RAR[%d]\n", 912 hw_dbg(hw, "Added a multicast address to RAR[%d]\n",
912 hw->addr_ctrl.rar_used_count); 913 hw->addr_ctrl.rar_used_count);
913 hw->addr_ctrl.rar_used_count++; 914 hw->addr_ctrl.rar_used_count++;