Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
beafecf
)
linux-cp: fix display of link_speed
76/36176/2
author
Anton Nikolaev
<anikolaev@netgate.com>
Thu, 19 May 2022 10:52:01 +0000
(10:52 +0000)
committer
Matthew Smith
<mgsmith@netgate.com>
Mon, 23 May 2022 15:36:51 +0000
(15:36 +0000)
Type: fix
Don't set link speed for tap interface when link speed is unknown
Signed-off-by: Anton Nikolaev <anikolaev@netgate.com>
Change-Id: Ia97277b3bf7c958fa665e4ead8d0e48f02921e69
src/plugins/linux-cp/lcp_interface.c
patch
|
blob
|
history
diff --git
a/src/plugins/linux-cp/lcp_interface.c
b/src/plugins/linux-cp/lcp_interface.c
index
be73372
..
8267590
100644
(file)
--- a/
src/plugins/linux-cp/lcp_interface.c
+++ b/
src/plugins/linux-cp/lcp_interface.c
@@
-1172,7
+1172,8
@@
lcp_itf_pair_link_up_down (vnet_main_t *vnm, u32 hw_if_index, u32 flags)
tap_set_carrier (si->hw_if_index,
(flags & VNET_HW_INTERFACE_FLAG_LINK_UP));
- if (flags & VNET_HW_INTERFACE_FLAG_LINK_UP)
+ if (flags & VNET_HW_INTERFACE_FLAG_LINK_UP &&
+ hi->link_speed != UINT32_MAX)
{
tap_set_speed (si->hw_if_index, hi->link_speed / 1000);
}