diff options
Diffstat (limited to 'app/include')
| -rw-r--r-- | app/include/mrapp.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/app/include/mrapp.h b/app/include/mrapp.h index cc0ee7b..afe019e 100644 --- a/app/include/mrapp.h +++ b/app/include/mrapp.h @@ -24,8 +24,17 @@ struct mrapp_stat uint64_t packet_recv_drop; uint64_t packet_send_drop; + + uint64_t poll_wake_up_by_ev; + uint64_t poll_wake_up_timeout; }; +struct mr_vdev_counters +{ + unsigned int rx_burst_call_counters; + unsigned int rx_burst_zero_counters; +} __rte_cache_aligned; + /* 用户设备描述符 */ struct mr_vdev { @@ -40,6 +49,8 @@ struct mr_vdev int rx_notify_fds[MR_SID_MAX]; struct rte_epoll_event rx_notify_epoll_events[MR_SID_MAX]; unsigned int nr_rx_notify_fds; + + struct mr_vdev_counters counters[MR_SID_MAX]; }; struct mr_thread_info @@ -133,7 +144,12 @@ struct mr_instance /* rx epoll fd */ int rx_notify_epfd[MR_SID_MAX]; - unsigned int stat_notify_wake_up[MR_SID_MAX]; + unsigned int stat_notify_wake_up_from_ev[MR_SID_MAX]; + unsigned int stat_notify_wake_up_from_timeout[MR_SID_MAX]; + unsigned int busy_loop_counter[MR_SID_MAX]; + + /* threshold */ + unsigned int rx_notify_defer_threshold; /* mempool cache map */ struct mp_cache_map * mp_cache_map[MR_MEMPOOL_COUNT_MAX]; |
