diff options
author | Damjan Marion <damarion@cisco.com> | 2018-11-08 15:30:16 +0100 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2018-11-08 17:08:11 +0000 |
commit | 5100aa9cb9e7acff35fa3bfde8aa95b5ace60344 (patch) | |
tree | a42bb046ea2933042b2722e7b4fe229e3070cac5 /src/vnet/interface_api.c | |
parent | a71844f27a0be91fcda25b19604d16122ccc3e73 (diff) |
vnet: store hw interface speed in kbps instead of using flags
Change-Id: Idd4471a3adf7023e48e85717f00c786b1dde0cca
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/interface_api.c')
-rw-r--r-- | src/vnet/interface_api.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vnet/interface_api.c b/src/vnet/interface_api.c index c27f3e87975..e4faeed76b0 100644 --- a/src/vnet/interface_api.c +++ b/src/vnet/interface_api.c @@ -202,8 +202,7 @@ send_sw_interface_details (vpe_api_main_t * am, mp->link_up_down = (hi->flags & VNET_HW_INTERFACE_FLAG_LINK_UP) ? 1 : 0; mp->link_duplex = ((hi->flags & VNET_HW_INTERFACE_FLAG_DUPLEX_MASK) >> VNET_HW_INTERFACE_FLAG_DUPLEX_SHIFT); - mp->link_speed = ((hi->flags & VNET_HW_INTERFACE_FLAG_SPEED_MASK) >> - VNET_HW_INTERFACE_FLAG_SPEED_SHIFT); + mp->link_speed = hi->link_speed; mp->link_mtu = ntohs (hi->max_packet_bytes); mp->mtu[VNET_MTU_L3] = ntohl (swif->mtu[VNET_MTU_L3]); mp->mtu[VNET_MTU_IP4] = ntohl (swif->mtu[VNET_MTU_IP4]); |