]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: remove rt6i_genid
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Sat, 27 Sep 2014 22:46:06 +0000 (00:46 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Sep 2014 18:00:48 +0000 (14:00 -0400)
commitb4fc1e8ea27dc9bba5aade52c91b3d40e1c3f2b6
tree3a4f24c153155059b2eaa85c30b432fd202902e6
parent33158b5876f483552298f3b0fc5a1a93eb9f8715
ipv6: remove rt6i_genid

Eric Dumazet noticed that all no-nonexthop or no-gateway routes which
are already marked DST_HOST (e.g. input routes routes) will always be
invalidated during sk_dst_check. Thus per-socket dst caching absolutely
had no effect and early demuxing had no effect.

Thus this patch removes rt6i_genid: fn_sernum already gets modified during
add operations, so we only must ensure we mutate fn_sernum during ipv6
address remove operations. This is a fairly cost extensive operations,
but address removal should not happen that often. Also our mtu update
functions do the same and we heard no complains so far. xfrm policy
changes also cause a call into fib6_flush_trees. Also plug a hole in
rt6_info (no cacheline changes).

I verified via tracing that this change has effect.

Cc: Eric Dumazet <eric.dumazet@gmail.com>
Cc: YOSHIFUJI Hideaki <hideaki@yoshifuji.org>
Cc: Vlad Yasevich <vyasevich@gmail.com>
Cc: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Cc: Martin Lau <kafai@fb.com>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_fib.h
include/net/net_namespace.h
net/ipv6/addrconf.c
net/ipv6/addrconf_core.c
net/ipv6/ip6_fib.c
net/ipv6/route.c