common/octeontx2: send link event to VF
authorHarman Kalra <hkalra@marvell.com>
Tue, 22 Jun 2021 20:05:53 +0000 (01:35 +0530)
committerJerin Jacob <jerinj@marvell.com>
Wed, 30 Jun 2021 02:25:21 +0000 (04:25 +0200)
commitcb8d769fb6feb45ac9b1217df7ecc3a236a47b57
tree8886c1ddf4327c8e48561c9910db0dc076136732
parent56cabfbf4affde4117652cba3c6235d1a40f4205
common/octeontx2: send link event to VF

Currently link event is only sent to the PF by AF as soon as it comes
up, or in case of any physical change in link. PF will broadcast
these link events to all its VFs as soon as it receives it.
But no event is sent when a new VF comes up, hence it will not have
the link status.
Adding support for sending link status to the VF once it comes up
successfully.

Signed-off-by: Harman Kalra <hkalra@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/common/octeontx2/otx2_dev.c
drivers/common/octeontx2/otx2_dev.h