octeontx2-pf: Forward error codes to VF
authorSubbaraya Sundeep <sbhatta@marvell.com>
Fri, 21 Jan 2022 06:34:46 +0000 (12:04 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Jan 2022 14:32:21 +0000 (14:32 +0000)
commita8db854be28622a2477cb21cdf7f829adbb2c42d
tree08152ae473ec7ef4e5fbe9d1278329cfdfe1409f
parentdf66b6ebc5dcf7253e35a640b9ec4add54195c25
octeontx2-pf: Forward error codes to VF

PF forwards its VF messages to AF and corresponding
replies from AF to VF. AF sets proper error code in the
replies after processing message requests. Currently PF
checks the error codes in replies and sends invalid
message to VF. This way VF lacks the information of
error code set by AF for its messages. This patch
changes that such that PF simply forwards AF replies
so that VF can handle error codes.

Fixes: d424b6c02415 ("octeontx2-pf: Enable SRIOV and added VF mbox handling")
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c