[PATCH] IPv6 and ICMP6 redirects - routing performance

Hiroki Sato hrs at FreeBSD.org
Sat Oct 13 17:09:27 UTC 2012


"Alexander V. Chernikov" <melifaro at freebsd.org> wrote
  in <5076C0E3.9050803 at FreeBSD.org>:

me> Hello list!
me>
me> Currently there are some unnecessary code residing in
me> netinet6/in6_rmx.c causing performance degradation for IPv6
me> forwarding.
me>
me> Initially it was merged from netinet/in_rmx.c but it seems it is
me> totally unused now due to different approach used in IPv6 redirects.
me>
me> Code calls mtx_lock() on rte per each routing lookup in
me> in6_matroute().
me> Initially I plan to make someting like r241406 for IPv6, but after
me> some investigation I found that no one is currently setting
me> RTF_DYNAMIC flag for IPv6 routes.
me>
me> the question is: can we remove this entirely (patch attached) or we
me> still needs some parts of this due to incomplete RFC 4861
me> implementation?

 I think there is no problem with the removal because route handling
 by rtqkill() is not needed for routes injected by ND and removal of
 in6_clsroute() has already made the in6_rtqtimo() no-op.

-- Hiroki
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-net/attachments/20121014/9e858fe0/attachment.sig>


More information about the freebsd-net mailing list