]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx4: Return EAGAIN for any error in mlx4_ib_poll_one
authorYuval Shaia <yuval.shaia@oracle.com>
Wed, 27 Jul 2016 08:24:53 +0000 (01:24 -0700)
committerDoug Ledford <dledford@redhat.com>
Mon, 22 Aug 2016 18:26:53 +0000 (14:26 -0400)
commit543c6cd5792a1d41a65b2f9436917098fcee5631
tree5035bb5c0729cd93db2f7ef27d620e46eab958db
parentab214507294e04ec4130bcb72692e6dd0cb1a7bf
IB/mlx4: Return EAGAIN for any error in mlx4_ib_poll_one

Error code EAGAIN should be used when errors are temporary and next call
might succeeds.
When error code other than EAGAIN is returned, the caller (mlx4_ib_poll)
will assume all CQE in the same bunch are error too and will drop them all.

Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx4/cq.c