diff options
author | Hans Petter Selasky <hps@selasky.org> | 2020-12-09 12:59:01 +0000 |
---|---|---|
committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2020-12-28 13:37:09 +0000 |
commit | aca12148b113b618afc19028c656a7ac4434231d (patch) | |
tree | 7c3a04db0f503d8dea6557fa8c469e2f2508aef9 | |
parent | e903478919602c90fdc202a8628b89eb7c3bc104 (diff) | |
download | src-aca12148b113b618afc19028c656a7ac4434231d.tar.gz src-aca12148b113b618afc19028c656a7ac4434231d.zip |
Improve error message printing in krping.
Don't print completion queue flush as an error.
MFC after: 1 week
Sponsored by: Mellanox Technologies // NVIDIA Networking
-rw-r--r-- | sys/contrib/rdma/krping/krping.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/contrib/rdma/krping/krping.c b/sys/contrib/rdma/krping/krping.c index c734da36247f..e9a379984dec 100644 --- a/sys/contrib/rdma/krping/krping.c +++ b/sys/contrib/rdma/krping/krping.c @@ -362,10 +362,6 @@ static void krping_cq_event_handler(struct ib_cq *cq, void *ctx) int ret; BUG_ON(cb->cq != cq); - if (cb->state == ERROR) { - printk(KERN_ERR PFX "cq completion in ERROR state\n"); - return; - } if (cb->frtest) { printk(KERN_ERR PFX "cq completion event in frtest!\n"); return; @@ -384,7 +380,10 @@ static void krping_cq_event_handler(struct ib_cq *cq, void *ctx) goto error; } } - + if (cb->state == ERROR) { + printk(KERN_ERR PFX "cq completion in ERROR state\n"); + return; + } switch (wc.opcode) { case IB_WC_SEND: DEBUG_LOG("send completion\n"); |