octeontx2-af: change (struct qmem)->entry_sz from u8 to u16
authorEric Dumazet <edumazet@google.com>
Thu, 18 Jun 2020 03:53:21 +0000 (20:53 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Aug 2020 11:07:31 +0000 (13:07 +0200)
commit6469e715bc576eda0ea65fd5dcdbe2c31518d76c
tree27c87330a5c2bbde212aad7328d11bf8c403a619
parentcbcad0a477f474086a89258080841dd0b88bc367
octeontx2-af: change (struct qmem)->entry_sz from u8 to u16

[ Upstream commit 393415203f5c916b5907e0a7c89f4c2c5a9c5505 ]

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: 7a37245ef23f ("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>
drivers/net/ethernet/marvell/octeontx2/af/common.h