Re: [PATCH] tunnel: eliminate recursion field
From: David Miller <davem@davemloft.net>
Date: 2009-09-24 22:46:51
From: David Miller <davem@davemloft.net>
Date: 2009-09-24 22:46:51
From: Eric Dumazet <redacted> Date: Wed, 23 Sep 2009 22:28:33 +0200
Eric Dumazet a écrit :quoted
It seems recursion field from "struct ip_tunnel" is not anymore needed. recursion prevention is done at the upper level (in dev_queue_xmit()), since we use HARD_TX_LOCK protection for tunnels. This avoids a cache line ping pong on "struct ip_tunnel" : This structure should be now mostly read on xmit and receive paths.Oops I forgot ipv6 tunnels, silly me, here is an updated version. Thanks [PATCH] tunnel: eliminate recursion field It seems recursion field from "struct ip_tunnel" is not anymore needed. recursion prevention is done at the upper level (in dev_queue_xmit()), since we use HARD_TX_LOCK protection for tunnels. This avoids a cache line ping pong on "struct ip_tunnel" : This structure should be now mostly read on xmit and receive paths. Signed-off-by: Eric Dumazet <redacted>
Applied.