All of lore.kernel.org
 help / color / mirror / Atom feed
* [Kernel-janitors] ip_gre.c: update last_rx after netif_rx
@ 2004-08-14 19:06 Jay Bourque
  2004-08-16  8:38 ` maximilian attems
  2004-08-21  8:36   ` maximilian attems
  0 siblings, 2 replies; 6+ messages in thread
From: Jay Bourque @ 2004-08-14 19:06 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/ip_gre.c    Sat Aug 14 05:55:48 2004
+++ linux-2.6.8.1/net/ipv4/ip_gre.c.new    Sat Aug 14 12:17:16 2004
@@ -646,6 +646,7 @@ int ipgre_rcv(struct sk_buff *skb)
         nf_reset(skb);
         ipgre_ecn_decapsulate(iph, skb);
         netif_rx(skb);
+       tunnel->dev->last_rx = jiffies;
         read_unlock(&ipgre_lock);
         return(0);
     }

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Kernel-janitors] ip_gre.c: update last_rx after netif_rx
  2004-08-14 19:06 [Kernel-janitors] ip_gre.c: update last_rx after netif_rx Jay Bourque
@ 2004-08-16  8:38 ` maximilian attems
  2004-08-21  8:36   ` maximilian attems
  1 sibling, 0 replies; 6+ messages in thread
From: maximilian attems @ 2004-08-16  8:38 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 986 bytes --]

On Sat, 14 Aug 2004, Jay Bourque wrote:

> 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/ip_gre.c    Sat Aug 14 05:55:48 2004
> +++ linux-2.6.8.1/net/ipv4/ip_gre.c.new    Sat Aug 14 12:17:16 2004
> @@ -646,6 +646,7 @@ int ipgre_rcv(struct sk_buff *skb)
>         nf_reset(skb);
>         ipgre_ecn_decapsulate(iph, skb);
>         netif_rx(skb);
> +       tunnel->dev->last_rx = jiffies;
>         read_unlock(&ipgre_lock);
>         return(0);
>     }

well i hadn't researched that TODO item, when saying go for it,
sorry, but grepping for 'last_rx' in 2.6.8 shows only 2 items.
Arnaldo did lots of conversion at the beginning of the 2.4.x serie.
i think this task should be removed from TODO as the way to go is to
have correct rx pathes, but i'm not that good in networking code.
see: http://www.ussg.iu.edu/hypermail/linux/kernel/0302.2/1314.html

please confirm Arnaldo?

thanks
 
--
maks


[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Kernel-janitors] ip_gre.c: update last_rx after netif_rx
  2004-08-14 19:06 [Kernel-janitors] ip_gre.c: update last_rx after netif_rx Jay Bourque
@ 2004-08-21  8:36   ` maximilian attems
  2004-08-21  8:36   ` maximilian attems
  1 sibling, 0 replies; 6+ messages in thread
From: maximilian attems @ 2004-08-21  8:36 UTC (permalink / raw)
  To: Jay Bourque; +Cc: kernel-janitors, netdev

[-- Attachment #1: Type: text/plain, Size: 1008 bytes --]

On Sat, 14 Aug 2004, Jay Bourque wrote:

> 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/ip_gre.c    Sat Aug 14 05:55:48 2004
> +++ linux-2.6.8.1/net/ipv4/ip_gre.c.new    Sat Aug 14 12:17:16 2004
> @@ -646,6 +646,7 @@ int ipgre_rcv(struct sk_buff *skb)
>         nf_reset(skb);
>         ipgre_ecn_decapsulate(iph, skb);
>         netif_rx(skb);
> +       tunnel->dev->last_rx = jiffies;
>         read_unlock(&ipgre_lock);
>         return(0);
>     }
doesn't look complete, see patch below, but please read on:

the kj todo has an entry about "update last_rx after netif_rx", 
i wonder what that timestamping is good for, and newer 
sources 2.4.27 and 2.6.8 show 2 occurences of last_rx.

patches doing that are for young 2.4:
http://seclists.org/linux-kernel/2001/Feb/4846.html

i presume that this task is outdated,
thanks for putting light on that. 



--
maks
kernel janitor  	http://janitor.kernelnewbies.org/


[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Kernel-janitors] ip_gre.c: update last_rx after netif_rx
@ 2004-08-21  8:36   ` maximilian attems
  0 siblings, 0 replies; 6+ messages in thread
From: maximilian attems @ 2004-08-21  8:36 UTC (permalink / raw)
  To: Jay Bourque; +Cc: kernel-janitors, netdev

On Sat, 14 Aug 2004, Jay Bourque wrote:

> 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/ip_gre.c    Sat Aug 14 05:55:48 2004
> +++ linux-2.6.8.1/net/ipv4/ip_gre.c.new    Sat Aug 14 12:17:16 2004
> @@ -646,6 +646,7 @@ int ipgre_rcv(struct sk_buff *skb)
>         nf_reset(skb);
>         ipgre_ecn_decapsulate(iph, skb);
>         netif_rx(skb);
> +       tunnel->dev->last_rx = jiffies;
>         read_unlock(&ipgre_lock);
>         return(0);
>     }
doesn't look complete, see patch below, but please read on:

the kj todo has an entry about "update last_rx after netif_rx", 
i wonder what that timestamping is good for, and newer 
sources 2.4.27 and 2.6.8 show 2 occurences of last_rx.

patches doing that are for young 2.4:
http://seclists.org/linux-kernel/2001/Feb/4846.html

i presume that this task is outdated,
thanks for putting light on that. 



--
maks
kernel janitor  	http://janitor.kernelnewbies.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Kernel-janitors] ip_gre.c: update last_rx after netif_rx
  2004-08-21  8:36   ` maximilian attems
@ 2004-08-23 20:36     ` max attems
  -1 siblings, 0 replies; 6+ messages in thread
From: max attems @ 2004-08-23 20:36 UTC (permalink / raw)
  To: Jay Bourque, kernel-janitors, netdev

[-- Attachment #1: Type: text/plain, Size: 526 bytes --]

hello jay,

On Sat, 21 Aug 2004, maximilian attems wrote:

> On Sat, 14 Aug 2004, Jay Bourque wrote:
> 
> > Fix to update last_rx after netif_rx
> > This is my first patch so I'd appreciate any feedback.
> > 
> > -Jay
..
 
> i presume that this task is outdated,

well nobody is really interested in aboves issue,
thanks for bringing up that old dust,
task removed from kernel janitor TODO.

please choose another item of the kj TODO list?
happy to read you soon.


--
maks
kernel janitor  	http://janitor.kernelnewbies.org/


[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Kernel-janitors] ip_gre.c: update last_rx after netif_rx
@ 2004-08-23 20:36     ` max attems
  0 siblings, 0 replies; 6+ messages in thread
From: max attems @ 2004-08-23 20:36 UTC (permalink / raw)
  To: Jay Bourque, kernel-janitors, netdev

hello jay,

On Sat, 21 Aug 2004, maximilian attems wrote:

> On Sat, 14 Aug 2004, Jay Bourque wrote:
> 
> > Fix to update last_rx after netif_rx
> > This is my first patch so I'd appreciate any feedback.
> > 
> > -Jay
..
 
> i presume that this task is outdated,

well nobody is really interested in aboves issue,
thanks for bringing up that old dust,
task removed from kernel janitor TODO.

please choose another item of the kj TODO list?
happy to read you soon.


--
maks
kernel janitor  	http://janitor.kernelnewbies.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-08-23 20:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-14 19:06 [Kernel-janitors] ip_gre.c: update last_rx after netif_rx Jay Bourque
2004-08-16  8:38 ` maximilian attems
2004-08-21  8:36 ` maximilian attems
2004-08-21  8:36   ` maximilian attems
2004-08-23 20:36   ` max attems
2004-08-23 20:36     ` max attems

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.