tg3: Fix 5719 internal FIFO overflow problem
authorMatt Carlson <mcarlson@broadcom.com>
Wed, 24 Nov 2010 08:31:48 +0000 (08:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Nov 2010 19:06:17 +0000 (11:06 -0800)
commitcf79003d598b1f82a4caa0564107283b4f560e14
treea41d4548a5a09578be104b133d4f7e698d91bc8a
parentd2394e6bb1aa636f3bd142cb6f7845a4332514b5
tg3: Fix 5719 internal FIFO overflow problem

Under load, there an internal FIFO can overflow on the 5719.  The fix is
to scale back the PCIe maximum read request size based on the current
link speed and width.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c
drivers/net/tg3.h