All of lore.kernel.org
 help / color / mirror / Atom feed
* [Kernel-janitors] ipmr.c: update last_rx after netif_rx
@ 2004-08-14 19:07 Jay Bourque
  0 siblings, 0 replies; only message in thread
From: Jay Bourque @ 2004-08-14 19:07 UTC (permalink / raw)
  To: kernel-janitors

Fix to update last_rx after netif_rx
This is my first patch so I'd appreciate any feedback.

-Jay

--- linux-2.6.8.1/net/ipv4/ipmr.c    Sat Aug 14 05:55:32 2004
+++ linux-2.6.8.1/net/ipv4/ipmr.c.new    Sat Aug 14 11:12:32 2004
@@ -1462,6 +1462,7 @@ int pim_rcv_v1(struct sk_buff * skb)
     ((struct net_device_stats*)reg_dev->priv)->rx_packets++;
     nf_reset(skb);
     netif_rx(skb);
+   reg_dev->last_rx = jiffies;
     dev_put(reg_dev);
     return 0;
  drop:
@@ -1518,6 +1519,7 @@ static int pim_rcv(struct sk_buff * skb)
     skb->dst = NULL;
     nf_reset(skb);
     netif_rx(skb);
+   reg_dev->last_rx = jiffies;
     dev_put(reg_dev);
     return 0;
  drop:

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-08-14 19:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-14 19:07 [Kernel-janitors] ipmr.c: update last_rx after netif_rx Jay Bourque

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.