Ignore:
Timestamp:
Mar 15, 2017, 2:42:58 AM (4 months ago)
Author:
brainslayer
Message:

use new squashfs in all kernels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-4.9/drivers/infiniband/hw/mlx5/srq.c

    r31574 r31662  
    166166        int i;
    167167        struct mlx5_wqe_srq_next_seg *next;
    168         int page_shift;
    169         int npages;
    170168
    171169        err = mlx5_db_alloc(dev->mdev, &srq->db);
     
    180178                goto err_db;
    181179        }
    182         page_shift = srq->buf.page_shift;
    183180
    184181        srq->head    = 0;
     
    192189        }
    193190
    194         npages = DIV_ROUND_UP(srq->buf.npages, 1 << (page_shift - PAGE_SHIFT));
    195         mlx5_ib_dbg(dev, "buf_size %d, page_shift %d, npages %d, calc npages %d\n",
    196                     buf_size, page_shift, srq->buf.npages, npages);
    197         in->pas = mlx5_vzalloc(sizeof(*in->pas) * npages);
     191        mlx5_ib_dbg(dev, "srq->buf.page_shift = %d\n", srq->buf.page_shift);
     192        in->pas = mlx5_vzalloc(sizeof(*in->pas) * srq->buf.npages);
    198193        if (!in->pas) {
    199194                err = -ENOMEM;
     
    211206        srq->wq_sig = !!srq_signature;
    212207
    213         in->log_page_size = page_shift - MLX5_ADAPTER_PAGE_SHIFT;
     208        in->log_page_size = srq->buf.page_shift - MLX5_ADAPTER_PAGE_SHIFT;
    214209        if (MLX5_CAP_GEN(dev->mdev, cqe_version) == MLX5_CQE_VERSION_V1 &&
    215210            in->type == IB_SRQT_XRC)
Note: See TracChangeset for help on using the changeset viewer.