aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/include
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/include')
-rw-r--r--host/lib/include/uhd/transport/uhd-dpdk.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/host/lib/include/uhd/transport/uhd-dpdk.h b/host/lib/include/uhd/transport/uhd-dpdk.h
index 68438fe40..8d46912bd 100644
--- a/host/lib/include/uhd/transport/uhd-dpdk.h
+++ b/host/lib/include/uhd/transport/uhd-dpdk.h
@@ -148,10 +148,11 @@ int uhd_dpdk_destroy(void);
* @param sock pointer to socket
* @param bufs pointer to array of buffers (to store buffer locations)
* @param num_bufs number of buffers requested
+ * @param timeout Time (in us) to wait for a buffer
*
* @return Returns number of buffers retrieved or negative error code
*/
-int uhd_dpdk_request_tx_bufs(struct uhd_dpdk_socket *sock, struct rte_mbuf **bufs, unsigned int num_bufs);
+int uhd_dpdk_request_tx_bufs(struct uhd_dpdk_socket *sock, struct rte_mbuf **bufs, unsigned int num_bufs, int timeout);
/**
* Enqueues num_bufs buffers in sock TX buffer. Uses pointers to buffers in bufs table.
@@ -241,7 +242,18 @@ int uhd_dpdk_udp_get_info(struct uhd_dpdk_socket *sock, struct uhd_dpdk_sockarg_
*
* @return Return 0 for success, else failed
*/
-int uhd_dpdk_get_drop_count(struct uhd_dpdk_socket *sock, uint32_t *count);
+int uhd_dpdk_get_drop_count(struct uhd_dpdk_socket *sock, size_t *count);
+
+/**
+ * Get transferred packet count of provided socket
+ * Currently only tracks received packets (i.e. for RX)
+ *
+ * @param sock Socket to get information from
+ * @param count Pointer to location where information will be stored
+ *
+ * @return Return 0 for success, else failed
+ */
+int uhd_dpdk_get_xfer_count(struct uhd_dpdk_socket *sock, size_t *count);
#ifdef __cplusplus
}