* [patch 06/10] tun/tap ARP monitor support
@ 2005-01-25 2:57 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2005-01-25 2:57 UTC (permalink / raw)
To: davem; +Cc: jgarzik, netdev, akpm, tommy.christensen
From: Tommy Christensen <tommy.christensen@tpack.net>
But as stated in bonding.txt, the ARP monitor requires the underlying
driver to update dev->trans_start and dev->last_rx.
The patch below adds the required functionality to the TUN/TAP driver.
Please test if this helps in your case.
Signed-off-by: Andrew Morton <akpm@osdl.org>
---
25-akpm/drivers/net/tun.c | 2 ++
1 files changed, 2 insertions(+)
diff -puN drivers/net/tun.c~tun-tan-arp-monitor-support drivers/net/tun.c
--- 25/drivers/net/tun.c~tun-tan-arp-monitor-support 2005-01-24 18:55:47.450083328 -0800
+++ 25-akpm/drivers/net/tun.c 2005-01-24 18:55:47.454082720 -0800
@@ -113,6 +113,7 @@ static int tun_net_xmit(struct sk_buff *
/* Queue packet */
skb_queue_tail(&tun->readq, skb);
+ dev->trans_start = jiffies;
/* Notify and wake up reader process */
if (tun->flags & TUN_FASYNC)
@@ -259,6 +260,7 @@ static __inline__ ssize_t tun_get_user(s
skb->ip_summed = CHECKSUM_UNNECESSARY;
netif_rx_ni(skb);
+ tun->dev->last_rx = jiffies;
tun->stats.rx_packets++;
tun->stats.rx_bytes += len;
_
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-01-25 2:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-25 2:57 [patch 06/10] tun/tap ARP monitor support akpm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).