mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 19:07:52 +00:00
i40iw: Use correct alignment for CQ0 memory
Utilize correct alignment variable when allocating DMA memory for CQ0. Signed-off-by: Christopher N Bednarz <christopher.n.bednarz@intel.com> Signed-off-by: Henry Orosco <henry.orosco@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
parent
29c2415a66
commit
a28f047e5f
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
cqsize = rsrc->cq_size * (sizeof(struct i40iw_cqe));
|
||||||
tsize = cqsize + sizeof(struct i40iw_cq_shadow_area);
|
tsize = cqsize + sizeof(struct i40iw_cq_shadow_area);
|
||||||
ret = i40iw_allocate_dma_mem(dev->hw, &rsrc->cqmem, tsize,
|
ret = i40iw_allocate_dma_mem(dev->hw, &rsrc->cqmem, tsize,
|
||||||
I40IW_CQ0_ALIGNMENT_MASK);
|
I40IW_CQ0_ALIGNMENT);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue