]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix endless loop in ipoib_poll().
authorhselasky <hselasky@FreeBSD.org>
Wed, 8 May 2019 10:42:05 +0000 (10:42 +0000)
committerhselasky <hselasky@FreeBSD.org>
Wed, 8 May 2019 10:42:05 +0000 (10:42 +0000)
commitc3576224a6ff63c167b7e56c5038d513afa30a74
treeaffa195c681513b8a5c505ebc225c6e581cc076d
parentf72eaedbb0ca08ad20198d229a5507e3e16d7143
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