octeontx2-af: change (struct qmem)->entry_sz from u8 to u16
[ Upstream commit5.4-rM2-2.2.x-imx-squashed393415203f
] We need to increase TSO_HEADER_SIZE from 128 to 256. Since otx2_sq_init() calls qmem_alloc() with TSO_HEADER_SIZE, we need to change (struct qmem)->entry_sz to avoid truncation to 0. Fixes:7a37245ef2
("octeontx2-af: NPA block admin queue init") Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Sunil Goutham <sgoutham@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
parent
368caae370
commit
e1f2606892
|
@ -43,7 +43,7 @@ struct qmem {
|
||||||
void *base;
|
void *base;
|
||||||
dma_addr_t iova;
|
dma_addr_t iova;
|
||||||
int alloc_sz;
|
int alloc_sz;
|
||||||
u8 entry_sz;
|
u16 entry_sz;
|
||||||
u8 align;
|
u8 align;
|
||||||
u32 qsize;
|
u32 qsize;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue