From 1b955f9ee66f275de9b9faee47af8169516dce3d Mon Sep 17 00:00:00 2001 From: Monendra Singh Kushwaha Date: Wed, 29 May 2024 17:17:07 +0530 Subject: octeon: convert link speed from Mbps to Kbps Type: fix Fixes: 01fe7ab88e Change-Id: I88d03adcd4ef2a585ed77834b3bf8ef9d50b15c9 Signed-off-by: Monendra Singh Kushwaha (cherry picked from commit 2b671aa3e9b9b23afd46854a4bdd144ed783e99e) --- src/plugins/dev_octeon/port.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit 1.2.3-korg