summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorjmatthew <jmatthew@openbsd.org>2018-03-16 05:12:37 +0000
committerjmatthew <jmatthew@openbsd.org>2018-03-16 05:12:37 +0000
commite8d1dd260f774de081c960119333ac892b67715e (patch)
treeec941d325cc119e48d429a93b4d5e187c013622f /lib/libc
parentuse MFI_STAT_INVALID_STATUS where appropriate (diff)
downloadwireguard-openbsd-e8d1dd260f774de081c960119333ac892b67715e.tar.xz
wireguard-openbsd-e8d1dd260f774de081c960119333ac892b67715e.zip
Improve calculation of the number of commands and sges available.
The maximum number of commands may be specified in outbound scratch register 3, should be limited to 1024, and should further be reduced by one to ensure the reply queue doesn't overflow. The maximum number of sges in a command should be the highest power of two that fits in the space available in the io frame and in a chained sge frame. The maximum size of a chained frame is specified in outbound scratch register 2. part of a diff from Naoki Fukaumi ok dlg@
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions