octeon_ep: support firmware notifications for VFs
authorShinas Rasheed <srasheed@marvell.com>
Fri, 15 Dec 2023 18:14:25 +0000 (10:14 -0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 19 Dec 2023 11:00:53 +0000 (12:00 +0100)
commit4ebb86a97ceb948b32cbeafb598617a6c8748376
treeb40d4aae33c1990b99a4b2277d6a1aeb638d312d
parente28db8cbeba3a55dfaf43554d2c2ce05da6f4a04
octeon_ep: support firmware notifications for VFs

Notifications from firmware to vf has to pass through PF
control mbox and via PF-VF mailboxes. The notifications have to
be parsed out from the control mbox and passed to the
PF-VF mailbox in order to reach the corresponding VF.
Version compatibility should also be checked before messages
are passed to the mailboxes.

Signed-off-by: Shinas Rasheed <srasheed@marvell.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
drivers/net/ethernet/marvell/octeon_ep/octep_pfvf_mbox.c
drivers/net/ethernet/marvell/octeon_ep/octep_pfvf_mbox.h