Re: pfkey vs splsoftnet()

2017-01-13 Thread Hrvoje Popovski
On 12.1.2017. 18:27, Hrvoje Popovski wrote: > On 12.1.2017. 16:20, Martin Pieuchot wrote: >> On 10/01/17(Tue) 10:37, Martin Pieuchot wrote: >>> In pfkey_sendup() we call sorwakeup() which asserts for NET_LOCK(), so >>> we are already at IPL_SOFTNET. >>> >>> pfkeyv2_send() is called via

Re: pfkey vs splsoftnet()

2017-01-12 Thread Alexander Bluhm
On Tue, Jan 10, 2017 at 10:37:38AM +0100, Martin Pieuchot wrote: > In pfkey_sendup() we call sorwakeup() which asserts for NET_LOCK(), so > we are already at IPL_SOFTNET. > > pfkeyv2_send() is called via pfkey_output() which is also called with > the NET_LOCK() held. > > Finally replace a

Re: pfkey vs splsoftnet()

2017-01-12 Thread Hrvoje Popovski
On 12.1.2017. 16:20, Martin Pieuchot wrote: > On 10/01/17(Tue) 10:37, Martin Pieuchot wrote: >> In pfkey_sendup() we call sorwakeup() which asserts for NET_LOCK(), so >> we are already at IPL_SOFTNET. >> >> pfkeyv2_send() is called via pfkey_output() which is also called with >> the NET_LOCK()

Re: pfkey vs splsoftnet()

2017-01-12 Thread Martin Pieuchot
On 10/01/17(Tue) 10:37, Martin Pieuchot wrote: > In pfkey_sendup() we call sorwakeup() which asserts for NET_LOCK(), so > we are already at IPL_SOFTNET. > > pfkeyv2_send() is called via pfkey_output() which is also called with > the NET_LOCK() held. > > Finally replace a comment above

pfkey vs splsoftnet()

2017-01-10 Thread Martin Pieuchot
In pfkey_sendup() we call sorwakeup() which asserts for NET_LOCK(), so we are already at IPL_SOFTNET. pfkeyv2_send() is called via pfkey_output() which is also called with the NET_LOCK() held. Finally replace a comment above pfkeyv2_ipo_walk() by the corresponding assert. ok? Index: