]> www.infradead.org Git - users/hch/xfs.git/commitdiff
octeontx2-af: fix a issue with cpt_lf_alloc mailbox
authorSrujana Challa <schalla@marvell.com>
Wed, 10 Jul 2024 07:51:24 +0000 (13:21 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Jul 2024 12:42:00 +0000 (13:42 +0100)
This patch fixes CPT_LF_ALLOC mailbox error due to
incompatible mailbox message format. Specifically, it
corrects the `blkaddr` field type from `int` to `u8`.

Fixes: de2854c87c64 ("octeontx2-af: Mailbox changes for 98xx CPT block")
Signed-off-by: Srujana Challa <schalla@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/mbox.h

index 4a77f6fe262207032e8538ffc8ea8c6c565045da..05b84581d5c5636b6811cb1d310a0ad8f7ff9771 100644 (file)
@@ -1745,7 +1745,7 @@ struct cpt_lf_alloc_req_msg {
        u16 nix_pf_func;
        u16 sso_pf_func;
        u16 eng_grpmsk;
-       int blkaddr;
+       u8 blkaddr;
        u8 ctx_ilen_valid : 1;
        u8 ctx_ilen : 7;
 };