Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a28f047e authored by Christopher N Bednarz's avatar Christopher N Bednarz Committed by Doug Ledford
Browse files

i40iw: Use correct alignment for CQ0 memory



Utilize correct alignment variable when allocating
DMA memory for CQ0.

Signed-off-by: default avatarChristopher N Bednarz <christopher.n.bednarz@intel.com>
Signed-off-by: default avatarHenry Orosco <henry.orosco@intel.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 29c2415a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -685,7 +685,7 @@ static enum i40iw_status_code i40iw_puda_cq_create(struct i40iw_puda_rsrc *rsrc)
	cqsize = rsrc->cq_size * (sizeof(struct i40iw_cqe));
	tsize = cqsize + sizeof(struct i40iw_cq_shadow_area);
	ret = i40iw_allocate_dma_mem(dev->hw, &rsrc->cqmem, tsize,
				     I40IW_CQ0_ALIGNMENT_MASK);
				     I40IW_CQ0_ALIGNMENT);
	if (ret)
		return ret;