[PATCH] b44: disable default tx pause

Disable default tx pause frame support.
The b44 controller has a bug that generates excessive tx pause
frames.

Signed-off-by: Gary Zambrano <zambrano@broadcom.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
Gary Zambrano 2006-04-10 12:02:21 -07:00 committed by Jeff Garzik
parent 4be5de2525
commit 2b474cf538
1 changed files with 11 additions and 18 deletions

View File

@ -410,25 +410,18 @@ static void __b44_set_flow_ctrl(struct b44 *bp, u32 pause_flags)
static void b44_set_flow_ctrl(struct b44 *bp, u32 local, u32 remote) static void b44_set_flow_ctrl(struct b44 *bp, u32 local, u32 remote)
{ {
u32 pause_enab = bp->flags & (B44_FLAG_TX_PAUSE | u32 pause_enab = 0;
B44_FLAG_RX_PAUSE);
if (local & ADVERTISE_PAUSE_CAP) { /* The driver supports only rx pause by default because
if (local & ADVERTISE_PAUSE_ASYM) { the b44 mac tx pause mechanism generates excessive
if (remote & LPA_PAUSE_CAP) pause frames.
pause_enab |= (B44_FLAG_TX_PAUSE | Use ethtool to turn on b44 tx pause if necessary.
B44_FLAG_RX_PAUSE); */
else if (remote & LPA_PAUSE_ASYM) if ((local & ADVERTISE_PAUSE_CAP) &&
pause_enab |= B44_FLAG_RX_PAUSE; (local & ADVERTISE_PAUSE_ASYM)){
} else { if ((remote & LPA_PAUSE_ASYM) &&
if (remote & LPA_PAUSE_CAP) !(remote & LPA_PAUSE_CAP))
pause_enab |= (B44_FLAG_TX_PAUSE | pause_enab |= B44_FLAG_RX_PAUSE;
B44_FLAG_RX_PAUSE);
}
} else if (local & ADVERTISE_PAUSE_ASYM) {
if ((remote & LPA_PAUSE_CAP) &&
(remote & LPA_PAUSE_ASYM))
pause_enab |= B44_FLAG_TX_PAUSE;
} }
__b44_set_flow_ctrl(bp, pause_enab); __b44_set_flow_ctrl(bp, pause_enab);