Commit 39341520 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

octeontx2-af: change (struct qmem)->entry_sz from u8 to u16



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: 7a37245e ("octeontx2-af: NPA block admin queue init")
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Cc: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1b055409
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ struct qmem {
	void            *base;
	dma_addr_t	iova;
	int		alloc_sz;
	u8		entry_sz;
	u16		entry_sz;
	u8		align;
	u32		qsize;
};