]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix endless loop in ipoib_poll().
authorHans Petter Selasky <hselasky@FreeBSD.org>
Wed, 8 May 2019 10:42:05 +0000 (10:42 +0000)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Wed, 8 May 2019 10:42:05 +0000 (10:42 +0000)
commitcb678cb9112fb718ecbc3ab463f2981595960925
treeaffa195c681513b8a5c505ebc225c6e581cc076d
parent8b1b42c150546de1b0709fd27ca89a0a0230fd48
Fix endless loop in ipoib_poll().

ib_req_notify_cq may return negative value which will indicate a
failure. In the case of uncorrectable error, we will end up in an
endless loop. Fix that, by going to another loop with poll_more
only if there is anything left to poll.

Submitted by: slavash@
MFC after: 3 days
Sponsored by: Mellanox Technologies
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_ib.c