Thread (1 message) 1 message, 1 author, 2014-11-14

Re: [PATCH net-next] net: introduce SO_INCOMING_CPU

From: Eric Dumazet <hidden>
Date: 2014-11-14 23:32:26
Also in: netdev

On Fri, 2014-11-14 at 15:03 -0800, Andy Lutomirski wrote:
If the kernel had an API for this, I'd be all for using it.
It would be user land code, not kernel.

Why doing a system call when you can avoid it ? ;)

Doing it in the kernel would be quite complex actually.

In userland, you can even implement this by machine learning.

For every connection you made, you get the 4-tuple and INCOMING_CPU,
then you store it in a cache.

Next time you need to connect to same remote peer, you can lookup in the
cache to find a good candidate.

It would actually be good if we could do in a single socket verb a
bind_and_connect(fd, &source, &destination)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help