Re: ipip interrupt path and list iteration

2015-08-20 Thread Martin Pieuchot
On 19/08/15(Wed) 20:10, Alexander Bluhm wrote: > On Wed, Aug 19, 2015 at 02:41:22PM +0200, Martin Pieuchot wrote: > > > Diff below converts one of the few remaining iteration on the global > > > list of interfaces (&ifnet). > > > /* Check for local address spoofing. */ > > - if (((ifp =

Re: ipip interrupt path and list iteration

2015-08-19 Thread Alexander Bluhm
On Wed, Aug 19, 2015 at 02:41:22PM +0200, Martin Pieuchot wrote: > > Diff below converts one of the few remaining iteration on the global > > list of interfaces (&ifnet). > /* Check for local address spoofing. */ > - if (((ifp = if_get(m->m_pkthdr.ph_ifidx)) == NULL || > - !(ifp-

Re: ipip interrupt path and list iteration

2015-08-19 Thread Martin Pieuchot
On 09/07/15(Thu) 09:00, Martin Pieuchot wrote: > Most of the network interrupt paths are now free from global list > iterations. The rule I tried to follow is simple. If you already > have an ifp pointer and need a per-ifp resource use it, otherwise > do a route lookup. > > Diff below converts o

ipip interrupt path and list iteration

2015-07-09 Thread Martin Pieuchot
Most of the network interrupt paths are now free from global list iterations. The rule I tried to follow is simple. If you already have an ifp pointer and need a per-ifp resource use it, otherwise do a route lookup. Diff below converts one of the few remaining iteration on the global list of int