Re: SO_REUSEPORT - can it be done in kernel?

Eric Dumazet
2011-03-02T08:04:15Z

Le mercredi 02 mars 2011 à 15:31 +0800, Herbert Xu a écrit :
> On Tue, Mar 01, 2011 at 11:12:29PM -0800, Tom Herbert wrote:
> >
> > Probably need to set skb->ooo_okay (for UDP etc.) also so that XPS
> > will change queues.
>
> Hmm, not quite. We still want to maintain packet ordering from
> the same CPU. That is, if I do two sendmsg calls from the same
> CPU, they should go into the same queue in that order.
>
> So this shouldn't just be a knob that says whether we can pick
> queues at random.
>

Not sure why two UDP packets from the same cpu should be sent on same
queue.

- Some qdisc do reorder packets anyway.
- Some bonding setups use two links in round-robin mode (link
aggregation)