[PATCH] ibmveth fix bonding
authorSantiago Leon <santil@us.ibm.com>
Wed, 26 Oct 2005 16:46:53 +0000 (10:46 -0600)
committerJeff Garzik <jgarzik@pobox.com>
Fri, 28 Oct 2005 20:07:30 +0000 (16:07 -0400)
This patch updates dev->trans_start and dev->last_rx so that the ibmveth
driver can be used with the ARP monitor in the bonding driver.

Signed-off-by: Santiago Leon <santil@us.ibm.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/ibmveth.c

index a2c4dd4fb2218071fbffb8aa9f9438ddacff359a..5617bec7fd53741e83012862ad7b658f1f3c9f4c 100644 (file)
@@ -725,6 +725,7 @@ static int ibmveth_start_xmit(struct sk_buff *skb, struct net_device *netdev)
        } else {
                adapter->stats.tx_packets++;
                adapter->stats.tx_bytes += skb->len;
+               netdev->trans_start = jiffies;
        }
 
        do {
@@ -776,6 +777,7 @@ static int ibmveth_poll(struct net_device *netdev, int *budget)
                                adapter->stats.rx_packets++;
                                adapter->stats.rx_bytes += length;
                                frames_processed++;
+                               netdev->last_rx = jiffies;
                        }
                } else {
                        more_work = 0;