freebsd-dev/sys/net/route
Gleb Smirnoff ad2a0aec29 nhop: hash ifnet pointer instead of if_index
Yet another problem created by VIMAGE/if_vmove/epair design that
relocates ifnet between vnets and changes if_index.  Since if_index
changes, nhop hash values also changes, unlink_nhop() isn't able to
find entry in hash and leaks the nhop.  Since nhop references ifnet,
the latter is also leaked.  As result running network tests leaks
memory on every single test that creates vnet jail.

While here, rewrite whole hash_priv() to use static initializer,
per Alexander's suggestion.

Reviewed by:	melifaro
2021-12-04 10:05:46 -08:00
..
fib_algo.c routing: Use the same index space for both nexthop and nexthop groups. 2021-10-08 07:58:55 +00:00
fib_algo.h Fib algo: extend KPI by allowing algo to set datapath pointers. 2021-04-18 16:12:12 +01:00
mpath_ctl.c Fix panic when trying to delete non-existent gateway in multipath route. 2021-05-07 20:41:31 +00:00
nhgrp_ctl.c routing: simplify malloc flags in alloc_nhgrp(). 2021-08-31 08:14:16 +00:00
nhgrp_var.h
nhgrp.c routing: Use the same index space for both nexthop and nexthop groups. 2021-10-08 07:58:55 +00:00
nhop_ctl.c routing: Bring back the ability to specify transmit interface via its name. 2021-08-29 20:05:14 +00:00
nhop_utils.c
nhop_utils.h [multipath][nhops] Fix random crashes with high route churn rate. 2021-08-01 10:07:37 +00:00
nhop_var.h routing: Use the same index space for both nexthop and nexthop groups. 2021-10-08 07:58:55 +00:00
nhop.c nhop: hash ifnet pointer instead of if_index 2021-12-04 10:05:46 -08:00
nhop.h
route_ctl.c routing: Disallow zero nexthop weights in nexthop groups. 2021-09-01 07:16:24 +00:00
route_ctl.h routing: Fix crashes with dpdk_lpm[46] algo. 2021-08-17 20:46:22 +00:00
route_ddb.c
route_helpers.c routing: Fix newly-added rt_get_inet[6]_parent() api. 2021-08-30 21:10:37 +00:00
route_ifaddrs.c Make gcc happy by initializing error in rib_handle_ifaddr_info(). 2021-04-25 08:44:59 +00:00
route_tables.c [fib algo] Delay algo init at fib growth to to allow to reliably use rib KPI. 2021-04-27 22:10:08 +00:00
route_temporal.c
route_var.h [fib algo] Delay algo init at fib growth to to allow to reliably use rib KPI. 2021-04-27 22:10:08 +00:00