common/cnxk: send link status event to VF
authorHarman Kalra <hkalra@marvell.com>
Fri, 30 Jul 2021 16:08:28 +0000 (21:38 +0530)
committerJerin Jacob <jerinj@marvell.com>
Thu, 16 Sep 2021 14:28:51 +0000 (16:28 +0200)
commit02719901d50faf7ec09b02bd66ae4b31128ba380
tree074c349bc876a48f5a934fafcf06d459edeb3581
parent8ca851cdc59835c2191e3d369a36313d78c0e8c4
common/cnxk: send link status 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/cnxk/roc_dev.c
drivers/common/cnxk/roc_dev_priv.h
drivers/common/cnxk/roc_nix.h
drivers/common/cnxk/roc_nix_mac.c
drivers/common/cnxk/version.map