diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2019-09-06 00:57:14 -0300 |
|---|---|---|
| committer | Olivier Dugeon <olivier.dugeon@orange.com> | 2020-04-30 11:28:51 +0200 |
| commit | 885e241337e2975b7318f316bb690ad8267ea70c (patch) | |
| tree | b2065db45140c8003b7a39011be7c60e30b153cc /isisd/isis_route.h | |
| parent | 9cd06cd7b9ee0a966d7ae9a7d23385a2d287845d (diff) | |
isisd: remove refcount from the isis_nexthop structure
isisd implements an optimization that allows multiple routes to
share the same nexthop (using a refcount) in order to save memory.
Now that SR support is coming, however, it will be necessary to
embed additional SR-related information inside the isis_nexthop
structure. But this can only be done if the nexthops aren't shared
among routes anymore.
Removing this memory optimization should have minimal impact since
the isis_nexthop structure is really small. On large networks with
thousands of routes, the memory saving would be in the order of a
few kilobytes. Not something we should be concerned about nowadays.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'isisd/isis_route.h')
| -rw-r--r-- | isisd/isis_route.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/isisd/isis_route.h b/isisd/isis_route.h index 2326bb8228..96bcdc3508 100644 --- a/isisd/isis_route.h +++ b/isisd/isis_route.h @@ -31,7 +31,6 @@ struct isis_nexthop { ifindex_t ifindex; int family; union g_addr ip; - unsigned int lock; }; struct isis_route_info { |
