diff options
author | Geetha sowjanya <gakula@marvell.com> | 2024-11-07 21:38:33 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-11-13 11:57:11 +0000 |
commit | b8fea84a0468404fe3b3327ad54d583950be9dec (patch) | |
tree | 485d1a151a3c138754f0ad5d831dd9b890f032ab /drivers/net/ethernet/marvell/octeontx2/af/rvu_devlink.h | |
parent | 940754a21decb9fe60901f34a9ac0b3bb8d1f778 (diff) |
octeontx2-pf: Add support to sync link state between representor and VFs
Implements the below requirement mentioned
in the representors documentation.
"
The representee's link state is controlled through the
representor. Setting the representor administratively UP
or DOWN should cause carrier ON or OFF at the representee.
"
This patch enables
- Reflecting the link state of representor based on the VF state and
link state of VF based on representor.
- On VF interface up/down a notification is sent via mbox to representor
to update the link state.
eg: ip link set eth0 up/down will disable carrier on/off
of the corresponding representor(r0p1) interface.
- On representor interface up/down will cause the link state update of VF.
eg: ip link set r0p1 up/down will disable carrier on/off
of the corresponding representee(eth0) interface.
Signed-off-by: Harman Kalra <hkalra@marvell.com>
Signed-off-by: Geetha sowjanya <gakula@marvell.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/marvell/octeontx2/af/rvu_devlink.h')
0 files changed, 0 insertions, 0 deletions