]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
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)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Fri, 4 Sep 2020 19:29:51 +0000 (16:29 -0300)
commit17475f8ec534ac35c786f11f17ba34c36595fb53
treed7645c970aa2b31b27f3db512394dea25db06fb4
parentc86e6fe0041eaf7a9b11d160579551eb4e0d3c00
octeontx2-af: change (struct qmem)->entry_sz from u8 to u16

BugLink: https://bugs.launchpad.net/bugs/1892899
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/net/ethernet/marvell/octeontx2/af/common.h