Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
interface: handle error during admin-up correctly
[vpp.git]
/
src
/
vnet
/
interface.c
diff --git
a/src/vnet/interface.c
b/src/vnet/interface.c
index
ad6d9cc
..
ab12da5
100644
(file)
--- a/
src/vnet/interface.c
+++ b/
src/vnet/interface.c
@@
-462,9
+462,6
@@
vnet_sw_interface_set_flags_helper (vnet_main_t * vnm, u32 sw_if_index,
goto done;
}
- /* save the si admin up flag */
- old_flags = si->flags;
-
/* update si admin up flag in advance if we are going admin down */
if (!(flags & VNET_SW_INTERFACE_FLAG_ADMIN_UP))
si->flags &= ~VNET_SW_INTERFACE_FLAG_ADMIN_UP;