diff options
author | 2018-03-16 05:12:37 +0000 | |
---|---|---|
committer | 2018-03-16 05:12:37 +0000 | |
commit | e8d1dd260f774de081c960119333ac892b67715e (patch) | |
tree | ec941d325cc119e48d429a93b4d5e187c013622f /lib/libc | |
parent | use MFI_STAT_INVALID_STATUS where appropriate (diff) | |
download | wireguard-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