Re: SO_REUSEPORT - can it be done in kernel?

Eric Dumazet
2011-03-02T08:24:44Z

Le mercredi 02 mars 2011 à 16:07 +0800, Herbert Xu a écrit :
> On Wed, Mar 02, 2011 at 09:04:08AM +0100, Eric Dumazet wrote:
> >
> > Not sure why two UDP packets from the same cpu should be sent on same
> > queue.
> >
> > - Some qdisc do reorder packets anyway.
>
> Which qdisc reorders packets belonging to the same flow?
>

Hmm to be fair you did not specified "same flow", and /sbin/named
answers are usually one packet long...

How are we going to detect flows in sendto() calls ?

Just kidding.

If you want to push your patch, I suspect a dynamic per_cpu variable is
needed per TX-multiqueue device, so that "current cpu -> txq number" is
one instruction.