octeontx2-af: Fix truncation of smq in CN10K NIX AQ enqueue mbox handler
authorGeetha sowjanya <gakula@marvell.com>
Tue, 5 Sep 2023 06:48:16 +0000 (12:18 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Sep 2023 16:50:33 +0000 (17:50 +0100)
commit29fe7a1b62717d58f033009874554d99d71f7d37
tree3e9d57cfddbacfe34db511846983f55ce968613f
parentc3b704d4a4a265660e665df51b129e8425216ed1
octeontx2-af: Fix truncation of smq in CN10K NIX AQ enqueue mbox handler

The smq value used in the CN10K NIX AQ instruction enqueue mailbox
handler was truncated to 9-bit value from 10-bit value because of
typecasting the CN10K mbox request structure to the CN9K structure.
Though this hasn't caused any problems when programming the NIX SQ
context to the HW because the context structure is the same size.
However, this causes a problem when accessing the structure parameters.
This patch reads the right smq value for each platform.

Fixes: 30077d210c83 ("octeontx2-af: cn10k: Update NIX/NPA context structure")
Signed-off-by: Geetha sowjanya <gakula@marvell.com>
Signed-off-by: Sunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c