newlib-cygwin/newlib/libc/sys/rtems
Alexander V. Chernikov b948693357 Convert route caching to nexthop caching.
This change is build on top of nexthop objects introduced in r359823.

Nexthops are separate datastructures, containing all necessary information
 to perform packet forwarding such as gateway interface and mtu. Nexthops
 are shared among the routes, providing more pre-computed cache-efficient
 data while requiring less memory. Splitting the LPM code and the attached
 data solves multiple long-standing problems in the routing layer,
 drastically reduces the coupling with outher parts of the stack and allows
 to transparently introduce faster lookup algorithms.

Route caching was (re)introduced to minimise (slow) routing lookups, allowing
 for notably better performance for large TCP senders. Caching works by
 acquiring rtentry reference, which is protected by per-rtentry mutex.
 If the routing table is changed (checked by comparing the rtable generation id)
 or link goes down, cache record gets withdrawn.

Nexthops have the same reference counting interface, backed by refcount(9).
This change merely replaces rtentry with the actual forwarding nextop as a
 cached object, which is mostly mechanical. Other moving parts like cache
 cleanup on rtable change remains the same.

Differential Revision:	https://reviews.freebsd.org/D24340
2022-07-11 11:52:46 +02:00
..
include Convert route caching to nexthop caching. 2022-07-11 11:52:46 +02:00
Makefile.inc newlib: libc: merge build up a directory 2022-03-16 21:18:25 -04:00
cpusetalloc.c Make CPU_SET macros compliant with other implementations 2022-06-22 10:28:42 +02:00
cpusetfree.c 2013-11-27 Sebastian Huber <sebastian.huber@embedded-brains.de> 2013-11-27 14:53:59 +00:00
crt0.c libc/sys/rtems/crt0.c: Fix two warnings. 2021-06-17 12:58:36 -05:00
dummysys.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00