]> git.baikalelectronics.ru Git - kernel.git/commit
tunnel: eliminate recursion field
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 23 Sep 2009 10:28:33 +0000 (10:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Sep 2009 22:39:22 +0000 (15:39 -0700)
commitd3e52aef9e95de02d0dfccb944a5f0e763629665
tree6f522dba1fd414b7da3999fa2da062d80a550874
parentcb86b31f86cc6fcd2cd242c2626c0e4ab571b19f
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 <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ipip.h
net/ipv4/ip_gre.c
net/ipv4/ipip.c
net/ipv6/ip6_tunnel.c
net/ipv6/sit.c