libc/newlib/libc/sys/rtems
sbruno 5c636abe89 Load balance sockets with new SO_REUSEPORT_LB option
This patch adds a new socket option, SO_REUSEPORT_LB, which allow multiple
programs or threads to bind to the same port and incoming connections will be
load balanced using a hash function.

Most of the code was copied from a similar patch for DragonflyBSD.

However, in DragonflyBSD, load balancing is a global on/off setting and can not
be set per socket. This patch allows for simultaneous use of both the current
SO_REUSEPORT and the new SO_REUSEPORT_LB options on the same system.

Required changes to structures
Globally change so_options from 16 to 32 bit value to allow for more options.
Add hashtable in pcbinfo to hold all SO_REUSEPORT_LB sockets.

Limitations
As DragonflyBSD, a load balance group is limited to 256 pcbs
(256 programs or threads sharing the same socket).

Submitted by:	Johannes Lundberg <johanlun0@gmail.com>
Sponsored by:	Limelight Networks
Differential Revision:	https://reviews.freebsd.org/D11003
2018-08-24 15:00:04 +02:00
..
include Load balance sockets with new SO_REUSEPORT_LB option 2018-08-24 15:00:04 +02:00
Makefile.am Add some POSIX header files for RTEMS 2017-05-25 12:41:33 -04:00
Makefile.in Add some POSIX header files for RTEMS 2017-05-25 12:41:33 -04:00
aclocal.m4 2012-12-20 Jeff Johnston <jjohnstn@redhat.com> 2012-12-20 21:10:27 +00:00
configure Add nvptx port. 2018-04-13 15:42:37 -04:00
configure.in 2006-04-13 Ralf Corsepius <ralf.corsepius@rtems.org> 2006-04-13 19:56:32 +00:00
cpusetalloc.c 2013-11-27 Sebastian Huber <sebastian.huber@embedded-brains.de> 2013-11-27 14:53:59 +00:00
cpusetfree.c 2013-11-27 Sebastian Huber <sebastian.huber@embedded-brains.de> 2013-11-27 14:53:59 +00:00
crt0.c RTEMS: Add __tls_get_addr() to crt0 2018-08-20 13:54:22 +02:00
dummysys.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00