octeon: convert link speed from Mbps to Kbps
Type: fix Fixes: 01fe7ab88e Change-Id: I88d03adcd4ef2a585ed77834b3bf8ef9d50b15c9 Signed-off-by: Monendra Singh Kushwaha <kmonendra@marvell.com>
This commit is contained in:
parent
78925604e9
commit
2b671aa3e9
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user