diff options
| author | Qiuwen Lu <[email protected]> | 2017-03-23 13:54:35 +0800 |
|---|---|---|
| committer | Qiuwen Lu <[email protected]> | 2017-03-23 13:54:35 +0800 |
| commit | 42df3214fc22ce3a55c028bdb3d3a4dfa131bf4d (patch) | |
| tree | cc93df82e14c32ca5e46c28f24c184eeb056dd5c /include/internal/vdev_define.h | |
| parent | 83de81b8f4b4fe4faabc23517efa791430f65ac2 (diff) | |
增加应用端收发包统计功能
Diffstat (limited to 'include/internal/vdev_define.h')
| -rw-r--r-- | include/internal/vdev_define.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/internal/vdev_define.h b/include/internal/vdev_define.h index bfea738..bc376e4 100644 --- a/include/internal/vdev_define.h +++ b/include/internal/vdev_define.h @@ -50,6 +50,10 @@ struct vdev_instance /* 对应的虚设备信息 */ struct vdev * vdev; + /* 队列数 */ + unsigned int nr_rxstream; + unsigned int nr_txstream; + /* VNODE */ struct vnode * vnode_rx; struct vnode * vnode_tx; @@ -65,4 +69,25 @@ struct vdev_instance struct rte_mempool * indirect_pool; TAILQ_ENTRY(vdev_instance) next; +}; + +struct vdev_stat_info +{ + unsigned int nr_rxstream; + unsigned int nr_txstream; + + /* RX: from service to app */ + uint64_t rx_on_line[MR_SID_MAX]; + uint64_t rx_deliver[MR_SID_MAX]; + uint64_t rx_missed[MR_SID_MAX]; + + /* TX: from app to service */ + uint64_t tx_on_line[MR_SID_MAX]; + uint64_t tx_deliver[MR_SID_MAX]; + uint64_t tx_missed[MR_SID_MAX]; + + /* FTX: fast tunnel from app to serivce */ + uint64_t ftx_on_line[MR_SID_MAX]; + uint64_t ftx_deliver[MR_SID_MAX]; + uint64_t ftx_missed[MR_SID_MAX]; };
\ No newline at end of file |
