Re: [PATCH libmlx5 1/7] Refactor mlx5_poll_one

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/06/2016 21:39, Jason Gunthorpe wrote:
On Wed, Jun 01, 2016 at 04:47:56PM +0300, Yishai Hadas wrote:
 static void mlx5_handle_error_cqe(struct mlx5_err_cqe *cqe,
-				  struct ibv_wc *wc)
+				  enum ibv_wc_status *pstatus)
 {

Yuk

 static enum ibv_wc_status mlx5_get_error_status(const struct mlx5_err_cqe *cqe)


Yeah, that's better.
Thanks.

 	case MLX5_CQE_SYNDROME_LOCAL_LENGTH_ERR:
-		wc->status = IBV_WC_LOC_LEN_ERR;
+		*pstatus = IBV_WC_LOC_LEN_ERR;
 		break;

	case MLX5_CQE_SYNDROME_LOCAL_LENGTH_ERR:
	        return IBV_WC_LOC_LEN_ERR;

Jason


--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux