Re: Introduce rtm_output()

2017-03-03 Thread Alexander Bluhm
On Fri, Mar 03, 2017 at 08:59:55AM +0100, Martin Pieuchot wrote: > I need to refactor this spaghetti code to avoid multiple gotos. So > let's move the guts of route_output() to a function that will need > the NET_LOCK(). s/rtm_ouput/rtm_output/g > @@ -536,18 +538,13 @@ route_output(struct mbuf *

Introduce rtm_output()

2017-03-03 Thread Martin Pieuchot
On 03/03/17(Fri) 01:47, Alexander Bluhm wrote: > On Thu, Mar 02, 2017 at 10:55:41AM +0100, Martin Pieuchot wrote: > > Sleeping here is completely ok. The NET_LOCK() in this function is only > > taken to make sure no other thread will try to do a route lookup in > > ip_output() while we're messing