Re: [Patch net v2] net/ipv6: do not copy dst flags on rt init

2018-09-17 Thread David Miller
From: Peter Oskolkov Date: Mon, 17 Sep 2018 10:20:53 -0700 > DST_NOCOUNT in dst_entry::flags tracks whether the entry counts > toward route cache size (net->ipv6.sysctl.ip6_rt_max_size). > > If the flag is NOT set, dst_ops::pcpuc_entries counter is incremented > in dist_init() and decremented in

Re: [Patch net v2] net/ipv6: do not copy dst flags on rt init

2018-09-17 Thread David Ahern
On 9/17/18 10:20 AM, Peter Oskolkov wrote: > DST_NOCOUNT in dst_entry::flags tracks whether the entry counts > toward route cache size (net->ipv6.sysctl.ip6_rt_max_size). > > If the flag is NOT set, dst_ops::pcpuc_entries counter is incremented > in dist_init() and decremented in dst_destroy(). >

[Patch net v2] net/ipv6: do not copy dst flags on rt init

2018-09-17 Thread Peter Oskolkov
DST_NOCOUNT in dst_entry::flags tracks whether the entry counts toward route cache size (net->ipv6.sysctl.ip6_rt_max_size). If the flag is NOT set, dst_ops::pcpuc_entries counter is incremented in dist_init() and decremented in dst_destroy(). This flag is tied to allocation/deallocation of dst_en