[PATCH] iseries_veth: Set dev->trans_start so watchdog timer works right
authorMichael Ellerman <michael@ellerman.id.au>
Thu, 12 May 2005 07:53:18 +0000 (17:53 +1000)
committerJeff Garzik <jgarzik@pobox.com>
Sun, 15 May 2005 22:08:05 +0000 (18:08 -0400)
Hi Andrew, Jeff,

The iseries_veth driver doesn't set dev->trans_start in it's TX path. This
will cause the net device watchdog timer to fire earlier than we want it to,
which causes the driver to needlessly reset its connections to other LPARs.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
drivers/net/iseries_veth.c

index 7d0ef29..1e869df 100644 (file)
@@ -1023,6 +1023,8 @@ static int veth_start_xmit(struct sk_buff *skb, struct net_device *dev)
 
        lpmask = veth_transmit_to_many(skb, lpmask, dev);
 
+       dev->trans_start = jiffies;
+
        if (! lpmask) {
                dev_kfree_skb(skb);
        } else {