aboutsummaryrefslogtreecommitdiff
path: root/Makefile.sys.inc
diff options
context:
space:
mode:
authorSean Bruno <sbruno@FreeBSD.org>2018-04-23 19:51:00 +0000
committerSean Bruno <sbruno@FreeBSD.org>2018-04-23 19:51:00 +0000
commit7b7796eea50fb8beb0ea5dd53c0aa07103498442 (patch)
tree3da9b14c33c166126096703f05325f10685bc107 /Makefile.sys.inc
parent38be3127061c92eaf648f84be4042ba49484dcde (diff)
downloadsrc-7b7796eea50fb8beb0ea5dd53c0aa07103498442.tar.gz
src-7b7796eea50fb8beb0ea5dd53c0aa07103498442.zip
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
Notes
Notes: svn path=/head/; revision=332894
Diffstat (limited to 'Makefile.sys.inc')
0 files changed, 0 insertions, 0 deletions