On Wed, 2017-10-18 at 12:05 -0700, Martin KaFai Lau wrote: > Another thing (not limited to this case), > > Considering we have a limited size in the exception table now and > the oldest one will get removed when the table is full, > do we still need to purge this periodically in gc?
At least in some scenarios we have only a few entries in the exception table. > I would like to see the IPv6's gc eventually goes away. > > If we need to expire the pmtu value of a RTF_CACHE rt, > can dst.expires be checked during the lookup (like what > ipv4 is doing) and then remove it from the exception table? Currently the gc also performs validation vs the related neigh for GATEWAY dst. That looks potentially quite expensive, as we currently have a per neighbour atomic refcount (e.g. if the same dst is cached on different CPUs) Cheers, Paolo