summaryrefslogtreecommitdiffstats
path: root/src/plugins/dev_octeon
diff options
context:
space:
mode:
authorMonendra Singh Kushwaha <kmonendra@marvell.com>2024-05-29 17:17:07 +0530
committerMonendra Singh Kushwaha <kmonendra@marvell.com>2024-06-06 08:51:55 +0000
commit1b955f9ee66f275de9b9faee47af8169516dce3d (patch)
tree489d10b482969bb32cfa845a91773623ff3a70c7 /src/plugins/dev_octeon
parent2ab34c8cb091421492c6395ef87a5ea0933d080f (diff)
octeon: convert link speed from Mbps to Kbps
Type: fix Fixes: 01fe7ab88e Change-Id: I88d03adcd4ef2a585ed77834b3bf8ef9d50b15c9 Signed-off-by: Monendra Singh Kushwaha <kmonendra@marvell.com> (cherry picked from commit 2b671aa3e9b9b23afd46854a4bdd144ed783e99e)
Diffstat (limited to 'src/plugins/dev_octeon')
-rw-r--r--src/plugins/dev_octeon/port.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/dev_octeon/port.c b/src/plugins/dev_octeon/port.c
index 98a4c28b37d..2ed278d8841 100644
--- a/src/plugins/dev_octeon/port.c
+++ b/src/plugins/dev_octeon/port.c
@@ -203,7 +203,8 @@ oct_port_poll (vlib_main_t *vm, vnet_dev_port_t *port)
if (cd->speed != link_info.speed)
{
changes.change.link_speed = 1;
- changes.link_speed = link_info.speed;
+ /* Convert to Kbps */
+ changes.link_speed = link_info.speed * 1000;
cd->speed = link_info.speed;
}