Subject: Re: [patch net-next-2.6] net: convert bonding to use rx_handler

From: Jiri Pirko <[email-masked]>
Date: Fri, 18 Feb 2011 21:13:15 +0100

Fri, Feb 18, 2011 at 09:06:56PM CET, [email-masked] wrote:
>From: Jiri Pirko <[email-masked]>
>Date: Fri, 18 Feb 2011 15:58:51 +0100
>
>> Fri, Feb 18, 2011 at 03:46:45PM CET, [email-masked] wrote:
>>>Am 18.02.2011 15:27, schrieb Eric Dumazet:
>>>> Le vendredi 18 février 2011 à 15:14 +0100, Jiri Pirko a écrit :
>>>> 
>>>>> Do not know how to do it better. As for percpu variable, not only
>>>>> origdev would have to be remembered but also probably skb pointer to
>>>>> know if it's the first run on the skb or not. Can't really figure out a
>>>>> better solution. Can you?
>>>> 
>>>> I'll try and let you know.
>>>
>>>Why not simply do a lookup on skb->iif?
>> 
>> Well I was trying to avoid iterating over list of devices for each
>> incoming frame.
>
>It is not list, it is hash :-)

Even if, Do you think that this would be ok?