public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* RPS patch questions
@ 2010-08-25 12:35 Lal
  2010-08-25 13:16 ` Eric Dumazet
  0 siblings, 1 reply; 2+ messages in thread
From: Lal @ 2010-08-25 12:35 UTC (permalink / raw)
  To: netdev

I am evaluating RPS patch from Tom Herbert. I have some questions
regarding this patch.

1. Can __smp_call_function_single be called from bottom half handler?
I presume, yes.

2. I am working on 2.6.21 kernel which have neither
__smp_call_function_single nor smp_call_function_single. I used
smp_call_function_single from some other kernel version but this too
can not be called from bottom half handler (just like
smp_call_function). Did somebody try to write such function for 2.6.21
(or older kernel) which can be called from bottom halves?

3. One option I've is to upgrade to 2.6.27 kernel which has
__smp_call_function_single. I see a comment that this function must
not be called with interrupt disabled. Does it mean it can be called
from bottom half handler?

Thanks
Lal

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: RPS patch questions
  2010-08-25 12:35 RPS patch questions Lal
@ 2010-08-25 13:16 ` Eric Dumazet
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Dumazet @ 2010-08-25 13:16 UTC (permalink / raw)
  To: Lal; +Cc: netdev

Le mercredi 25 août 2010 à 18:05 +0530, Lal a écrit :
> I am evaluating RPS patch from Tom Herbert. I have some questions
> regarding this patch.
> 
> 1. Can __smp_call_function_single be called from bottom half handler?
> I presume, yes.
> 

right.

> 2. I am working on 2.6.21 kernel which have neither
> __smp_call_function_single nor smp_call_function_single. I used
> smp_call_function_single from some other kernel version but this too
> can not be called from bottom half handler (just like
> smp_call_function). Did somebody try to write such function for 2.6.21
> (or older kernel) which can be called from bottom halves?

2.6.21 is too old for us ;)

> 
> 3. One option I've is to upgrade to 2.6.27 kernel which has
> __smp_call_function_single. I see a comment that this function must
> not be called with interrupt disabled. Does it mean it can be called
> from bottom half handler?
> 

__smp_call_function_single must be called with hard irqs enabled.

bottom half handlers (softirqs) do run with hard irqs enabled.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-08-25 13:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-25 12:35 RPS patch questions Lal
2010-08-25 13:16 ` Eric Dumazet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox