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)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Jun 2020 03:46:23 +0000 (20:46 -0700)
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>
drivers/net/ethernet/marvell/octeontx2/af/common.h

index cd33c2e..f48eb66 100644 (file)
@@ -43,7 +43,7 @@ struct qmem {
        void            *base;
        dma_addr_t      iova;
        int             alloc_sz;
-       u             entry_sz;
+       u16             entry_sz;
        u8              align;
        u32             qsize;
 };