]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[hermon] Avoid parsing length field on completion errors
authorMichael Brown <mcb30@ipxe.org>
Mon, 1 Feb 2021 23:06:04 +0000 (23:06 +0000)
committerMichael Brown <mcb30@ipxe.org>
Mon, 1 Feb 2021 23:08:49 +0000 (23:08 +0000)
commit6f1cb791ee7939c7302c8f815d178e89295b0eda
tree7f8cbeb70f9358df9b811193f9087ca407041cf9
parent8747241b3e843ed9771de21d8f2c57c3e67c77c7
[hermon] Avoid parsing length field on completion errors

The CQE length field will not be valid for a completion in error.
Avoid parsing the length field and just call the completion handler
directly.

In debug builds, also dump the queue pair context to allow for
inspection of the error.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/infiniband/hermon.c