aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/interface.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2017-05-10 20:09:31 +0200
committerDave Barach <openvpp@barachs.net>2017-05-10 22:02:22 +0000
commitabce509affe1f25bbb4905670371ad202529d5e0 (patch)
tree11f0ad91c6eacd916c8914fb87d488fad2968a8b /src/vnet/interface.h
parentf55f9b851f59264d737d92c6277a87588c565d24 (diff)
vnet: introduce error state for sw interfaces
Interfaces with error state are not allowed to go admin up Change-Id: I09fc09a5b28130aead219dccbc2e0f30ea7414cf Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/interface.h')
-rw-r--r--src/vnet/interface.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vnet/interface.h b/src/vnet/interface.h
index 1c9855581f0..095fe9617e2 100644
--- a/src/vnet/interface.h
+++ b/src/vnet/interface.h
@@ -573,6 +573,9 @@ typedef struct
/* Interface does not appear in CLI/API */
#define VNET_SW_INTERFACE_FLAG_HIDDEN (1 << 5)
+/* Interface in ERROR state */
+#define VNET_SW_INTERFACE_FLAG_ERROR (1 << 6)
+
/* Index for this interface. */
u32 sw_if_index;