.. | .. |
---|
297 | 297 | MLX5_SET(destroy_qp_in, in, opcode, MLX5_CMD_OP_DESTROY_QP); |
---|
298 | 298 | MLX5_SET(destroy_qp_in, in, qpn, qp->qpn); |
---|
299 | 299 | MLX5_SET(destroy_qp_in, in, uid, qp->uid); |
---|
300 | | - mlx5_cmd_exec_in(dev->mdev, destroy_qp, in); |
---|
301 | | - return 0; |
---|
| 300 | + return mlx5_cmd_exec_in(dev->mdev, destroy_qp, in); |
---|
302 | 301 | } |
---|
303 | 302 | |
---|
304 | 303 | int mlx5_core_set_delay_drop(struct mlx5_ib_dev *dev, |
---|
.. | .. |
---|
542 | 541 | return mlx5_cmd_exec_in(dev->mdev, dealloc_xrcd, in); |
---|
543 | 542 | } |
---|
544 | 543 | |
---|
545 | | -static void destroy_rq_tracked(struct mlx5_ib_dev *dev, u32 rqn, u16 uid) |
---|
| 544 | +static int destroy_rq_tracked(struct mlx5_ib_dev *dev, u32 rqn, u16 uid) |
---|
546 | 545 | { |
---|
547 | 546 | u32 in[MLX5_ST_SZ_DW(destroy_rq_in)] = {}; |
---|
548 | 547 | |
---|
549 | 548 | MLX5_SET(destroy_rq_in, in, opcode, MLX5_CMD_OP_DESTROY_RQ); |
---|
550 | 549 | MLX5_SET(destroy_rq_in, in, rqn, rqn); |
---|
551 | 550 | MLX5_SET(destroy_rq_in, in, uid, uid); |
---|
552 | | - mlx5_cmd_exec_in(dev->mdev, destroy_rq, in); |
---|
| 551 | + return mlx5_cmd_exec_in(dev->mdev, destroy_rq, in); |
---|
553 | 552 | } |
---|
554 | 553 | |
---|
555 | 554 | int mlx5_core_create_rq_tracked(struct mlx5_ib_dev *dev, u32 *in, int inlen, |
---|
.. | .. |
---|
580 | 579 | struct mlx5_core_qp *rq) |
---|
581 | 580 | { |
---|
582 | 581 | destroy_resource_common(dev, rq); |
---|
583 | | - destroy_rq_tracked(dev, rq->qpn, rq->uid); |
---|
584 | | - return 0; |
---|
| 582 | + return destroy_rq_tracked(dev, rq->qpn, rq->uid); |
---|
585 | 583 | } |
---|
586 | 584 | |
---|
587 | 585 | static void destroy_sq_tracked(struct mlx5_ib_dev *dev, u32 sqn, u16 uid) |
---|