diff options
author | Alexander Duyck <alexander.h.duyck@intel.com> | 2009-03-13 16:41:55 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-14 15:41:04 -0400 |
commit | 75f4f382e3f92d1d2fcb77fe6ed7beda19185f0f (patch) | |
tree | 2b14409040b8710376ebc5f07335968fe170ed5f | |
parent | cad6d05f5676d879bb2a48154aea26cd81ebf1bb (diff) |
igb: correct typo that was setting vfta mask to 1
This patch corrects a typo that was doing a less than comparison instead of
a left shift due to the fact that I didn't get enough <'s in there.
This resolves an issue in which vlans were not functioning correctly.
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Acked-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/igb/e1000_mac.c | 2 | ||||
-rw-r--r-- | drivers/net/igb/igb_main.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/igb/e1000_mac.c b/drivers/net/igb/e1000_mac.c index f11592fe1371..f4c315b5a900 100644 --- a/drivers/net/igb/e1000_mac.c +++ b/drivers/net/igb/e1000_mac.c | |||
@@ -129,7 +129,7 @@ void igb_write_vfta(struct e1000_hw *hw, u32 offset, u32 value) | |||
129 | s32 igb_vfta_set(struct e1000_hw *hw, u32 vid, bool add) | 129 | s32 igb_vfta_set(struct e1000_hw *hw, u32 vid, bool add) |
130 | { | 130 | { |
131 | u32 index = (vid >> E1000_VFTA_ENTRY_SHIFT) & E1000_VFTA_ENTRY_MASK; | 131 | u32 index = (vid >> E1000_VFTA_ENTRY_SHIFT) & E1000_VFTA_ENTRY_MASK; |
132 | u32 mask = 1 < (vid & E1000_VFTA_ENTRY_BIT_SHIFT_MASK); | 132 | u32 mask = 1 << (vid & E1000_VFTA_ENTRY_BIT_SHIFT_MASK); |
133 | u32 vfta = array_rd32(E1000_VFTA, index); | 133 | u32 vfta = array_rd32(E1000_VFTA, index); |
134 | s32 ret_val = 0; | 134 | s32 ret_val = 0; |
135 | 135 | ||
diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c index a3c2f83fb495..ff1cd4a1ec1f 100644 --- a/drivers/net/igb/igb_main.c +++ b/drivers/net/igb/igb_main.c | |||
@@ -3828,7 +3828,7 @@ static void igb_restore_vf_multicasts(struct igb_adapter *adapter) | |||
3828 | 3828 | ||
3829 | for (i = 0; i < adapter->vfs_allocated_count; i++) { | 3829 | for (i = 0; i < adapter->vfs_allocated_count; i++) { |
3830 | vf_data = &adapter->vf_data[i]; | 3830 | vf_data = &adapter->vf_data[i]; |
3831 | for (j = 0; j < vf_data[i].num_vf_mc_hashes; j++) | 3831 | for (j = 0; j < vf_data->num_vf_mc_hashes; j++) |
3832 | igb_mta_set(hw, vf_data->vf_mc_hashes[j]); | 3832 | igb_mta_set(hw, vf_data->vf_mc_hashes[j]); |
3833 | } | 3833 | } |
3834 | } | 3834 | } |