melifaro 02e40e1b73 Do not check if found IPv4 rte is dynamic if net.inet.icmp.drop_redirect is
enabled. This eliminates one mtx_lock() per each routing lookup thus improving
performance in several cases (routing to directly connected interface or routing
to default gateway).

Icmp redirects should not be used to provide routing direction nowadays, even
for end hosts. Routers should not use them too (and this is explicitly restricted
in IPv6, see RFC 4861, clause 8.2).

Current commit changes rnh_machaddr function to 'stock' rn_match (and back) for every
AF_INET routing table in given VNET instance on drop_redirect sysctl change.

This change is part of bigger patch eliminating rte locking.

Sponsored by:	Yandex LLC
MFC after:	2 weeks
2012-10-10 19:06:11 +00:00
..
2011-04-13 11:28:46 +00:00
2012-09-20 03:29:43 +00:00
2012-10-10 08:36:38 +00:00
2012-01-24 14:27:14 +00:00
2012-10-10 08:36:38 +00:00
2012-10-10 08:36:38 +00:00
2012-08-07 07:52:25 +00:00
2012-05-03 08:56:43 +00:00
2012-10-10 08:36:38 +00:00
2012-09-08 20:54:54 +00:00
2012-09-06 07:03:56 +00:00
2012-09-23 07:43:10 +00:00
2012-06-25 17:15:09 +00:00
2012-06-25 17:15:09 +00:00
2012-05-24 23:03:23 +00:00
2012-06-19 07:34:13 +00:00
2012-10-10 08:36:38 +00:00
2011-01-07 21:40:34 +00:00