diff options
author | Roland Dreier <rolandd@cisco.com> | 2007-04-09 20:20:44 -0700 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-04-09 20:20:44 -0700 |
commit | 098a235a97ca361aabf13eb13996b6ddf438ea7d (patch) | |
tree | 43b55558244d417970bfc4333eb11414c11c44ef | |
parent | d049a1279b829c61576c0d17a6b29489ad5e9383 (diff) | |
download | libmlx4-098a235a97ca361aabf13eb13996b6ddf438ea7d.tar.gz |
Simplify completion with error handling
The out-of-line function to handle error CQEs doesn't need as many
parameters as the libmthca version did, so get rid of everything
except the CQE pointer and the WC pointer.
Signed-off-by: Roland Dreier <rolandd@cisco.com>
-rw-r--r-- | src/cq.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -130,10 +130,8 @@ static void update_cons_index(struct mlx4_cq *cq) *cq->set_ci_db = htonl(cq->cons_index & 0xffffff); } -static int handle_error_cqe(struct mlx4_cq *cq, struct mlx4_qp *qp, - int wqe_index, int is_send, - struct mlx4_err_cqe *cqe, - struct ibv_wc *wc) +static int mlx4_handle_error_cqe(struct mlx4_err_cqe *cqe, + struct ibv_wc *wc) { /* XXX handle error CQE */ return 0; @@ -205,8 +203,7 @@ static int mlx4_poll_one(struct mlx4_cq *cq, } if (is_error) { - err = handle_error_cqe(cq, *cur_qp, wqe_index, is_send, - (struct mlx4_err_cqe *) cqe, wc); + err = mlx4_handle_error_cqe((struct mlx4_err_cqe *) cqe, wc); return err; } |