diff options
author | sephe <sephe@FreeBSD.org> | 2016-06-15 09:39:41 +0000 |
---|---|---|
committer | sephe <sephe@FreeBSD.org> | 2016-06-15 09:39:41 +0000 |
commit | 9dcee9004fd825bce13415965b24c6a5e0e3ef46 (patch) | |
tree | 42112fd2844048aae43522fb14b2f93956888362 /contrib/diff/lib/strcase.h | |
parent | ea478cdf17b092127d850c94d192e06567a49ee6 (diff) | |
download | FreeBSD-src-9dcee9004fd825bce13415965b24c6a5e0e3ef46.zip FreeBSD-src-9dcee9004fd825bce13415965b24c6a5e0e3ef46.tar.gz |
MFC 297219
hyperv/vmbus: use a better retry method in hv_vmbus_post_message()
Most often, hv_vmbus_post_message() doesn't fail. However, it fails
intermittently when GPADLs of large shared memory is to be established
with the host, e.g. on the hn(4) attach path: a GPADL of 15MB sendbuf
is created, for which lots of messages will be flooded to the host.
The host side tries to throttle the message rate by returning
HV_STATUS_INSUFFICIENT_BUFFERS.
Before this commit, we do several retries for failed messages, but the
delay between each retry is pretty/too low, which will cause sporadic
message posting failure. We now use large delay (>=1ms) between each
retry to fix the message posting failure.
Submitted by: Dexuan Cui <decui microsoft com>
Reviewed by: sephe
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D5715
Diffstat (limited to 'contrib/diff/lib/strcase.h')
0 files changed, 0 insertions, 0 deletions