[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-hackers
Subject:    Re: "slow path" in network code || IPv6 panic on inteface removal
From:       "Andrey V. Elsukov" <ae () FreeBSD ! org>
Date:       2014-01-26 23:34:43
Message-ID: 52E59B93.90304 () FreeBSD ! org
[Download RAW message or body]

Hello, Alexander,

probably it would be better, it you split your patch into two.
The one, that implements this:

> What exactly is proposed:
> - Another one netisr queue for handling different types of packets
> - metainfo is stored in mbuf_tag attached to packet
> - ifnet departure handler taking care of packets queued from/to killed
> ifnet
> - API to register/unregister/dispath given type of traffic

And second, that shows usage example:

> #5 T2 calls nd6_ifptomac() which reads interface MAC from ifp->if_addr
> 
> #6 User inspects core generated by previous call
> 
> Using new API, we can avoid #6 by making the following code changes:
> * LLE timer does not drop/reacquire LLE lock
> * we require nd6_ns_output callers to lock LLE if it is provided
> * nd6_ns_output() uses "slow" path instead of sending mbuf to
> ip6_output() immediately if LLE is not NULL.

-- 
WBR, Andrey V. Elsukov
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic