Skip to contentSkip to conversation

ipmr.c: update last_rx after netif_rx

Kernel-janitors Jay Bourque 1 participant 1 message Aug 14, 2004

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

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

-Jay

net/ipv4/ipmr.c.new Sat Aug 14 11:12:32 2004 renamed from net/ipv4/ipmr.c Sat Aug 14 05:55:32 2004 +2 -0
@@ -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
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors