Listen/Accept Sockets

Onload User Guide (UG1586)

Document ID
UG1586
Release Date
2023-07-31
Revision
1.2 English

TCP sockets accepted from a listening socket will share a wildcard filter with the parent socket. The following Onload module options can be used to control behavior when the parent socket is closed.

oof_shared_keep_thresh - default 100, is the number of accepted sockets sharing a wildcard filter that will cause the filter to persist after the listening socket has closed.

oof_shared_steal_thresh - default 200, is the number of sockets sharing a wildcard filter that will cause the filter to persist even when a new listening socket needs the filter.

If the listening socket is closed the behavior depends on the number of remaining accepted sockets as follows:

Table 1. Behavior If the Listening Socket is Closed
Number of Accepted Sockets Onload Action
oof_shared_keep_thresh but < oof_shared_steal_thresh

Retain the wildcard filter shared by all accepted sockets.

If a new listening socket requires the filter, Onload will install a full-match filter for each accepted socket allowing the listening socket to use the wildcard filter.

> oof_shared_steal_thresh

Retain the wildcard filter shared by all accepted sockets.

A new listening socket can be created but a filter cannot be installed meaning the socket will receive no traffic until the number of accepted connections is reduced.