summaryrefslogtreecommitdiff
path: root/service/include
diff options
context:
space:
mode:
authorLu Qiuwen <[email protected]>2024-04-12 09:52:11 +0800
committerLu Qiuwen <[email protected]>2024-04-14 15:10:07 +0800
commita8281bd82e65dcc56e969c226f10759a1f787f31 (patch)
tree328679cadaf0363ea72f9e68ae170e9a7f334a15 /service/include
parentaca9d3913d938569b78a4658db1cc2f33dc2d284 (diff)
bugfix: clean the credit counters when cons created, fix the txdrop counter.
Diffstat (limited to 'service/include')
-rw-r--r--service/include/sc_devmgr.h8
-rw-r--r--service/include/sc_vdev.h11
2 files changed, 6 insertions, 13 deletions
diff --git a/service/include/sc_devmgr.h b/service/include/sc_devmgr.h
index 0b7513e..3787fe9 100644
--- a/service/include/sc_devmgr.h
+++ b/service/include/sc_devmgr.h
@@ -98,14 +98,8 @@ struct representor_config
struct dpdk_dev_stats
{
- struct
- {
- uint64_t user_rx_packets;
- uint64_t user_tx_packets;
- uint64_t user_rx_drops;
- uint64_t user_tx_drops;
- } user[MR_SID_MAX] __rte_cache_aligned;
struct rte_eth_stats rte;
+ uint64_t tx_drop_counter[RTE_MAX_LCORE];
};
struct dpdk_dev
diff --git a/service/include/sc_vdev.h b/service/include/sc_vdev.h
index b6fad5e..e247f20 100644
--- a/service/include/sc_vdev.h
+++ b/service/include/sc_vdev.h
@@ -39,14 +39,14 @@ struct _vdev
/* Stream */
unsigned int nr_rxstream;
unsigned int nr_txstream;
- unsigned int sz_tunnel;
- unsigned int sz_buffer;
+ unsigned int sz_rx_tunnel;
+ unsigned int sz_tx_tunnel;
+ unsigned int sz_max_inflight;
/* VNODE */
struct vnode * vnode_rx;
struct vnode * vnode_tx;
struct vnode * vnode_ftx;
- struct vnode * vnode_ltx;
/* VNODE CONS/PROD */
struct vnode_prod * vnode_rx_prod;
@@ -114,9 +114,8 @@ void vdev_stats_last_save(struct vdev * vdev, struct vdev_stat_info * stat_info_
void vdev_stats_last_get(struct vdev * vdev, struct vdev_stat_info * stat_info_last);
int vdev_data_create(struct vdev_main * v_main, const char * symbol, unsigned int nr_rxstream, unsigned int nr_txstream,
- unsigned int sz_tunnel_rx_exclusive, unsigned int sz_tunnel_rx_shared, unsigned int sz_tunnel_tx,
- unsigned int sz_buffer, unsigned int batch_interval_in_us, unsigned int en_q_len_monitor,
- struct rte_mempool * direct_pool);
+ unsigned int sz_tunnel_rx, unsigned int sz_tunnel_tx, unsigned int sz_max_inflight,
+ unsigned int batch_interval_in_us, struct rte_mempool * direct_pool);
int vdev_data_dispatch(struct _vdev * _vdev, queue_id_t qid, struct rte_mbuf * pkts[], unsigned int nr_pkts,
int flags);