summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMonendra Singh Kushwaha <kmonendra@marvell.com>2024-05-29 17:17:07 +0530
committerDamjan Marion <dmarion@0xa5.net>2024-05-29 21:48:11 +0000
commit2b671aa3e9b9b23afd46854a4bdd144ed783e99e (patch)
tree051511a2852cbb9ef94cd2cef0880c11d1593735 /src
parent78925604e9bcdf4efa734b65e2e6bcc4d21e2e46 (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>
Diffstat (limited to 'src')
-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;
}