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 <email@example.com>
Cc: YOSHIFUJI Hideaki <firstname.lastname@example.org>
Cc: Vlad Yasevich <email@example.com>
Cc: Nicolas Dichtel <firstname.lastname@example.org>
Cc: Martin Lau <email@example.com>
Signed-off-by: Hannes Frederic Sowa <firstname.lastname@example.org>
Signed-off-by: David S. Miller <email@example.com>
6 files changed