]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
igb: correct typo that was setting vfta mask to 1
authorAlexander Duyck <alexander.h.duyck@intel.com>
Fri, 13 Mar 2009 20:41:55 +0000 (20:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 14 Mar 2009 19:41:04 +0000 (12:41 -0700)
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>
drivers/net/igb/e1000_mac.c
drivers/net/igb/igb_main.c

index f11592fe1371306d859634cf50ff063722bd203d..f4c315b5a900f315488d3f6d84e2dc4459946029 100644 (file)
@@ -129,7 +129,7 @@ void igb_write_vfta(struct e1000_hw *hw, u32 offset, u32 value)
 s32 igb_vfta_set(struct e1000_hw *hw, u32 vid, bool add)
 {
        u32 index = (vid >> E1000_VFTA_ENTRY_SHIFT) & E1000_VFTA_ENTRY_MASK;
-       u32 mask = 1 < (vid & E1000_VFTA_ENTRY_BIT_SHIFT_MASK);
+       u32 mask = 1 << (vid & E1000_VFTA_ENTRY_BIT_SHIFT_MASK);
        u32 vfta = array_rd32(E1000_VFTA, index);
        s32 ret_val = 0;
 
index a3c2f83fb495307558d566c3c71be7c8b14e1398..ff1cd4a1ec1f12a1e79a8992a5b60cbdbd672349 100644 (file)
@@ -3828,7 +3828,7 @@ static void igb_restore_vf_multicasts(struct igb_adapter *adapter)
 
        for (i = 0; i < adapter->vfs_allocated_count; i++) {
                vf_data = &adapter->vf_data[i];
-               for (j = 0; j < vf_data[i].num_vf_mc_hashes; j++)
+               for (j = 0; j < vf_data->num_vf_mc_hashes; j++)
                        igb_mta_set(hw, vf_data->vf_mc_hashes[j]);
        }
 }