net/mlx5_core: Update device capabilities handling
[deliverable/linux.git] / drivers / net / ethernet / mellanox / mlx5 / core / uar.c
index 68f5d9c77c7b13b9038cf5bc4e920e09ac3c33a9..0a6348cefc0137999577dedf341bef369e6b0166 100644 (file)
@@ -174,11 +174,11 @@ int mlx5_alloc_uuars(struct mlx5_core_dev *dev, struct mlx5_uuar_info *uuari)
        for (i = 0; i < tot_uuars; i++) {
                bf = &uuari->bfs[i];
 
-               bf->buf_size = dev->caps.bf_reg_size / 2;
+               bf->buf_size = dev->caps.gen.bf_reg_size / 2;
                bf->uar = &uuari->uars[i / MLX5_BF_REGS_PER_PAGE];
                bf->regreg = uuari->uars[i / MLX5_BF_REGS_PER_PAGE].map;
                bf->reg = NULL; /* Add WC support */
-               bf->offset = (i % MLX5_BF_REGS_PER_PAGE) * dev->caps.bf_reg_size +
+               bf->offset = (i % MLX5_BF_REGS_PER_PAGE) * dev->caps.gen.bf_reg_size +
                        MLX5_BF_OFFSET;
                bf->need_lock = need_uuar_lock(i);
                spin_lock_init(&bf->lock);
This page took 0.04142 seconds and 5 git commands to generate.