Re: [PATCH 3/5] IB/isert: Convert to new CQ API

Sagi Grimberg
2016-02-24T16:01:27Z

> -isert_rx_do_work(struct iser_rx_desc *rx_desc, struct isert_conn *isert_conn)
> +isert_print_wc(struct ib_wc *wc)
> +{
> + if (wc->status != IB_WC_WR_FLUSH_ERR)
> + isert_err("%s (%d): cqe 0x%p vend_err %x\n",
> + ib_wc_status_msg(wc->status), wc->status,
> + wc->wr_cqe, wc->vendor_err);
> + else
> + isert_dbg("%s (%d): cqe 0x%p\n",
> + ib_wc_status_msg(wc->status), wc->status,
> + wc->wr_cqe);
> +
> +}

I don't find the wr_cqe address all that useful. I modified
isert_print_wc to get a error type instead ("send", "recv", "rdma
write"...) sounds fine?