summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorsongyanchao <[email protected]>2022-07-07 06:18:38 -0400
committersongyanchao <[email protected]>2022-07-13 06:14:15 -0400
commitb7ecefd1e387518a2233969e3e8599326ad4be64 (patch)
treeda6787a988e943426b12ee1d517c063f6dadea88 /include
parent3919e00e5258acca0333e8c9efa3cd652fb82fb1 (diff)
✨ feat(TSG-11204): add vdev link status
add vdev link status
Diffstat (limited to 'include')
-rw-r--r--include/internal/vdev_define.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/internal/vdev_define.h b/include/internal/vdev_define.h
index 3c72f15..e85d30e 100644
--- a/include/internal/vdev_define.h
+++ b/include/internal/vdev_define.h
@@ -17,6 +17,12 @@ enum vd_type
VD_TYPE_MAX
};
+enum
+{
+ LINK_DOWN = 0,
+ LINK_UP
+};
+
struct vdev_stat_info
{
unsigned int nr_rxstream;
@@ -71,6 +77,9 @@ struct vdev
unsigned int is_hidden;
/* 是否启用 */
unsigned int enable;
+
+ /* 网卡状态 */
+ uint8_t link_status;
};
/* 虚拟设备句柄,应用使用 */