rwatson e550332ee6 Introduce a netisr to deliver kernel-generated routing, avoiding
recursive entering of the socket code from the routing code:

- Modify rt_dispatch() to bundle up the sockaddr family, if any,
  associated with a pending mbuf to dispatch to routing sockets, in
  an m_tag on the mbuf.

- Allocate NETISR_ROUTE for use by routing sockets.

- Introduce rtsintrq, an ifqueue to be used by the netisr, and
  introduce rts_input(), a function to unbundle the tagged sockaddr
  and inject the mbuf and address into raw_input(), which previously
  occurred in rt_dispatch().

- Introduce rts_init() to initialize rtsintrq, its mutex, and
  register the netisr.  Perform this at the same point in system
  initialization as setup of the domains.

This change introduces asynchrony between the generation of a
pending routing socket message and delivery to sockets for use
by userspace.  It avoids socket->routing->rtsock->socket use and
helps to avoid lock order reversals between the routing code and
socket code (in particular, raw socket control blocks), as route
locks are held over calls to rt_dispatch().

Reviewed by:		"George V.Neville-Neil" <gnn@neville-neil.com>
Conceptual head nod by:	sam
2004-06-09 02:48:23 +00:00
..
2004-05-30 20:27:19 +00:00
2004-04-25 09:24:52 +00:00
2004-05-30 20:27:19 +00:00
2004-04-25 09:24:52 +00:00
2004-05-30 20:27:19 +00:00
2004-05-30 20:27:19 +00:00
2004-03-22 16:04:43 +00:00
2004-04-25 09:24:52 +00:00
2004-05-30 20:27:19 +00:00
2004-05-30 20:27:19 +00:00
2004-03-29 22:16:39 +00:00
2004-04-24 22:24:48 +00:00
2003-03-15 23:55:33 +00:00
2004-04-21 15:27:36 +00:00
2004-04-25 01:39:00 +00:00