]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
e1000: Enble early receive (ERT) on 82573
authorAuke Kok <auke\-jan.h.kok@intel.com>
Wed, 1 Nov 2006 16:47:39 +0000 (08:47 -0800)
committerJeff Garzik <jeff@garzik.org>
Sat, 2 Dec 2006 05:11:59 +0000 (00:11 -0500)
Enable early receives on 82573 for jumbo frame performance. Jumbo's
are only supported on 82573L with ASPM disabled.

Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
drivers/net/e1000/e1000_main.c

index 38ee39e570ea33f04ffad3924f6cf9698ee97ba2..93b97c6b8a63204d7588163f1a6d13ea7b9ce72b 100644 (file)
@@ -1934,6 +1934,12 @@ e1000_configure_rx(struct e1000_adapter *adapter)
                E1000_WRITE_REG(hw, RXCSUM, rxcsum);
        }
 
+       /* enable early receives on 82573, only takes effect if using > 2048
+        * byte total frame size.  for example only for jumbo frames */
+#define E1000_ERT_2048 0x100
+       if (hw->mac_type == e1000_82573)
+               E1000_WRITE_REG(hw, ERT, E1000_ERT_2048);
+
        /* Enable Receives */
        E1000_WRITE_REG(hw, RCTL, rctl);
 }