cq.c (5fe9dec0d045437e48f112b8fa705197bd7bc3c0) cq.c (b037c29a8056b8e896c4e084ba7cc30d6a1f165f)
1/*
2 * Copyright (c) 2013-2015, Mellanox Technologies. All rights reserved.
3 *
4 * This software is available to you under a choice of one of two
5 * licenses. You may choose to be licensed under the terms of the GNU
6 * General Public License (GPL) Version 2, available from the file
7 * COPYING in the main directory of this source tree, or the
8 * OpenIB.org BSD license below:

--- 774 unchanged lines hidden (view full) ---

783
784 pas = (__be64 *)MLX5_ADDR_OF(create_cq_in, *cqb, pas);
785 mlx5_ib_populate_pas(dev, cq->buf.umem, page_shift, pas, 0);
786
787 cqc = MLX5_ADDR_OF(create_cq_in, *cqb, cq_context);
788 MLX5_SET(cqc, cqc, log_page_size,
789 page_shift - MLX5_ADAPTER_PAGE_SHIFT);
790
1/*
2 * Copyright (c) 2013-2015, Mellanox Technologies. All rights reserved.
3 *
4 * This software is available to you under a choice of one of two
5 * licenses. You may choose to be licensed under the terms of the GNU
6 * General Public License (GPL) Version 2, available from the file
7 * COPYING in the main directory of this source tree, or the
8 * OpenIB.org BSD license below:

--- 774 unchanged lines hidden (view full) ---

783
784 pas = (__be64 *)MLX5_ADDR_OF(create_cq_in, *cqb, pas);
785 mlx5_ib_populate_pas(dev, cq->buf.umem, page_shift, pas, 0);
786
787 cqc = MLX5_ADDR_OF(create_cq_in, *cqb, cq_context);
788 MLX5_SET(cqc, cqc, log_page_size,
789 page_shift - MLX5_ADAPTER_PAGE_SHIFT);
790
791 *index = to_mucontext(context)->bfregi.uars[0].index;
791 *index = to_mucontext(context)->bfregi.sys_pages[0];
792
793 if (ucmd.cqe_comp_en == 1) {
794 if (unlikely((*cqe_size != 64) ||
795 !MLX5_CAP_GEN(dev->mdev, cqe_compression))) {
796 err = -EOPNOTSUPP;
797 mlx5_ib_warn(dev, "CQE compression is not supported for size %d!\n",
798 *cqe_size);
799 goto err_cqb;

--- 614 unchanged lines hidden ---
792
793 if (ucmd.cqe_comp_en == 1) {
794 if (unlikely((*cqe_size != 64) ||
795 !MLX5_CAP_GEN(dev->mdev, cqe_compression))) {
796 err = -EOPNOTSUPP;
797 mlx5_ib_warn(dev, "CQE compression is not supported for size %d!\n",
798 *cqe_size);
799 goto err_cqb;

--- 614 unchanged lines hidden ---