linux/arch/ia64/include/uapi/asm
Eric Dumazet 2c8c56e15d net: introduce SO_INCOMING_CPU
Alternative to RPS/RFS is to use hardware support for multiple
queues.

Then split a set of million of sockets into worker threads, each
one using epoll() to manage events on its own socket pool.

Ideally, we want one thread per RX/TX queue/cpu, but we have no way to
know after accept() or connect() on which queue/cpu a socket is managed.

We normally use one cpu per RX queue (IRQ smp_affinity being properly
set), so remembering on socket structure which cpu delivered last packet
is enough to solve the problem.

After accept(), connect(), or even file descriptor passing around
processes, applications can use :

 int cpu;
 socklen_t len = sizeof(cpu);

 getsockopt(fd, SOL_SOCKET, SO_INCOMING_CPU, &cpu, &len);

And use this information to put the socket into the right silo
for optimal performance, as all networking stack should run
on the appropriate cpu, without need to send IPI (RPS/RFS).

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-11-11 13:00:06 -05:00
..
auxvec.h
bitsperlong.h
break.h ia64/xen: Remove Xen support for ia64 2013-12-10 16:11:07 -08:00
byteorder.h
cmpxchg.h ia64: Fix up smp_mb__{before,after}_clear_bit() 2014-04-18 11:40:29 +02:00
errno.h
fcntl.h ia64: arch/ia64/include/uapi/asm/fcntl.h needs personality.h 2014-06-23 16:47:44 -07:00
fpu.h
gcc_intrin.h
ia64regs.h
intel_intrin.h
intrinsics.h
ioctl.h
ioctls.h
ipcbuf.h
Kbuild UAPI: Put a comment into uapi/asm-generic/kvm_para.h and use it from arches 2012-10-17 12:32:07 +01:00
kvm.h kvm: Allow build-time configuration of KVM device assignment 2013-04-28 12:58:56 +03:00
mman.h
msgbuf.h
param.h
perfmon_default_smpl.h
perfmon.h
poll.h
posix_types.h
ptrace_offsets.h
ptrace.h
resource.h
rse.h
sembuf.h
setup.h
shmbuf.h
sigcontext.h
siginfo.h
signal.h unify SS_ONSTACK/SS_DISABLE definitions 2012-12-19 18:07:39 -05:00
socket.h net: introduce SO_INCOMING_CPU 2014-11-11 13:00:06 -05:00
sockios.h
stat.h
statfs.h
swab.h
termbits.h
termios.h
types.h
ucontext.h
unistd.h [IA64] Enable bpf syscall for ia64 2014-10-09 13:36:10 -07:00
ustack.h