Skip to contentSkip to conversation

iseries_veth: Set dev->trans_start so watchdog timer works right

PATCH In review Michael Ellerman 1 participant 1 message May 12, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/4 iseries_veth: Set dev->trans_start so watchdog timer works right

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.

--

 iseries_veth.c |    2 ++
 1 files changed, 2 insertions(+)
drivers/net/iseries_veth.c +2 -0
Index: veth-fixes/drivers/net/iseries_veth.c
===================================================================
@@ -1023,6 +1023,8 @@ static int veth_start_xmit(struct sk_buf
 
 	lpmask = veth_transmit_to_many(skb, lpmask, dev);
 
+	dev->trans_start = jiffies;
+
 	if (! lpmask) {
 		dev_kfree_skb(skb);
 	} else {