tg3: Fix jumbo loopback test on 5719
authorMichael Chan <mchan@broadcom.com>
Sun, 4 Mar 2012 14:48:13 +0000 (14:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Mar 2012 01:39:31 +0000 (20:39 -0500)
commitc441b456767357322dbc14b55bdc7da0051d0d98
treed45342e5023639107919d97d67cac3c7ad4ccea5
parent2556cd8603cd1f39205aaf61f054a76133359ae6
tg3: Fix jumbo loopback test on 5719

Loopback on 9K packet fails because the chip has a DMA limit of 4K.  The
loopback test logic uses a single BD for simplicity.  Fix it by reducing
the jumbo packet size to the DMA limit.

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