aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport/uhd-dpdk/uhd_dpdk_wait.h
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2019-12-03 16:51:12 -0800
committerBrent Stapleton <brent.stapleton@ettus.com>2019-12-20 16:32:22 -0800
commit378dc931ab697ee13352008a025ec4732f6f46e1 (patch)
treeb7c85351738bfd39cf7377f11d110b4692f7c0db /host/lib/transport/uhd-dpdk/uhd_dpdk_wait.h
parent4547f2de85f0d8b258a89cea71af774fce8616b7 (diff)
downloaduhd-378dc931ab697ee13352008a025ec4732f6f46e1.tar.gz
uhd-378dc931ab697ee13352008a025ec4732f6f46e1.tar.bz2
uhd-378dc931ab697ee13352008a025ec4732f6f46e1.zip
lib: Remove dpdk_zero_copy files
These were left here as a reference.
Diffstat (limited to 'host/lib/transport/uhd-dpdk/uhd_dpdk_wait.h')
-rw-r--r--host/lib/transport/uhd-dpdk/uhd_dpdk_wait.h62
1 files changed, 0 insertions, 62 deletions
diff --git a/host/lib/transport/uhd-dpdk/uhd_dpdk_wait.h b/host/lib/transport/uhd-dpdk/uhd_dpdk_wait.h
deleted file mode 100644
index 465608810..000000000
--- a/host/lib/transport/uhd-dpdk/uhd_dpdk_wait.h
+++ /dev/null
@@ -1,62 +0,0 @@
-//
-// Copyright 2018 Ettus Research, a National Instruments Company
-//
-// SPDX-License-Identifier: GPL-3.0-or-later
-//
-#ifndef _UHD_DPDK_WAIT_H_
-#define _UHD_DPDK_WAIT_H_
-
-#include "uhd_dpdk_ctx.h"
-#include <rte_malloc.h>
-
-enum uhd_dpdk_wait_type {
- UHD_DPDK_WAIT_SIMPLE,
- UHD_DPDK_WAIT_RX,
- UHD_DPDK_WAIT_TX_BUF,
- UHD_DPDK_WAIT_TYPE_COUNT
-};
-
-struct uhd_dpdk_wait_req {
- enum uhd_dpdk_wait_type reason;
- struct uhd_dpdk_socket *sock;
- pthread_cond_t cond;
- pthread_mutex_t mutex;
- rte_atomic32_t refcnt; /* free resources only when refcnt = 0 */
-};
-
-static inline void uhd_dpdk_waiter_put(struct uhd_dpdk_wait_req *req)
-{
- if (rte_atomic32_dec_and_test(&req->refcnt)) {
- rte_free(req);
- }
-}
-
-static inline void uhd_dpdk_waiter_get(struct uhd_dpdk_wait_req *req)
-{
- rte_atomic32_inc(&req->refcnt);
-}
-
-/*
- * Attempt to wake thread
- * Re-enqueue waiter to thread's waiter_queue if fail
- */
-int _uhd_dpdk_waiter_wake(struct uhd_dpdk_wait_req *req,
- struct uhd_dpdk_thread *t);
-
-/*
- * Allocates wait request and sets refcnt to 1
- */
-struct uhd_dpdk_wait_req *uhd_dpdk_waiter_alloc(enum uhd_dpdk_wait_type reason);
-
-/*
- * Block and send wait request to thread t
- */
-int uhd_dpdk_waiter_wait(struct uhd_dpdk_wait_req *req, int timeout,
- struct uhd_dpdk_thread *t);
-
-/*
- * Block and submit config request to thread t
- */
-int uhd_dpdk_config_req_submit(struct uhd_dpdk_config_req *req,
- int timeout, struct uhd_dpdk_thread *t);
-#endif /* _UHD_DPDK_WAIT_H_ */