e1000e: bad short packets received when jumbos enabled on 82579
authorBruce Allan <bruce.w.allan@intel.com>
Fri, 30 Sep 2011 08:07:00 +0000 (08:07 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 7 Oct 2011 05:44:13 +0000 (22:44 -0700)
When short packets are received with jumbos enabled on 82579, they can be
interpreted to have a receive address that does not match any configured
address.  This is due to a hardware bug that can be worked around by
reducing the number of IPG octets added when the packet is transferred from
the PHY to the MAC.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Jeff Pieper <jeffrey.e.pieper@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/e1000e/ich8lan.c

index ad34de086ee1071f38ddcf0e38fb1ff5677527dc..4f709749dbce0299e74076c2c56abd1fccbd8b65 100644 (file)
@@ -1578,7 +1578,7 @@ s32 e1000_lv_jumbo_workaround_ich8lan(struct e1000_hw *hw, bool enable)
                ret_val = e1e_wphy(hw, PHY_REG(776, 20), data);
                if (ret_val)
                        goto out;
-               ret_val = e1e_wphy(hw, PHY_REG(776, 23), 0xFE00);
+               ret_val = e1e_wphy(hw, PHY_REG(776, 23), 0xF100);
                if (ret_val)
                        goto out;
                e1e_rphy(hw, HV_PM_CTRL, &data);