bnx2: fixing a timout error due not refreshing TX timers correctly
authorBreno Leitao <leitao@linux.vnet.ibm.com>
Sat, 19 Dec 2009 04:35:34 +0000 (20:35 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Dec 2009 04:35:34 +0000 (20:35 -0800)
commite6bf95ffa8d6f8f4b7ee33ea01490d95b0bbeb6e
tree6a361fa1fde7ac2ce613d5ad88ff9b688c02f5ad
parent4773a47d8a564633cd80b94df397e91e946893e2
bnx2: fixing a timout error due not refreshing TX timers correctly

When running the following script on an active bnx2 interface:

while(true); do ifconfig ethX mtu 9000; ifconfig ethX mtu 1500; done

A timeout error appears and dumps the following stack:

NETDEV WATCHDOG: eth4 (bnx2): transmit queue 0 timed out
------------[ cut here ]------------
Badness at net/sched/sch_generic.c:261
<snip>

This patch just fixes the way that ->trans_start is refreshed.

Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com>
Acked-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2.c