aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport/uhd-dpdk/uhd_dpdk_ctx.h
diff options
context:
space:
mode:
authorAlex Williams <alex.williams@ni.com>2018-08-31 11:52:04 -0700
committerBrent Stapleton <brent.stapleton@ettus.com>2019-01-15 17:14:57 -0800
commite2cde21ceb7497dcc1ef25156afa6472fe64f009 (patch)
tree43def88d4d1e3950236dad44812d27f08ee9e232 /host/lib/transport/uhd-dpdk/uhd_dpdk_ctx.h
parent853c2a2263e54c1e1fd9562b479a17122a6d9b37 (diff)
downloaduhd-e2cde21ceb7497dcc1ef25156afa6472fe64f009.tar.gz
uhd-e2cde21ceb7497dcc1ef25156afa6472fe64f009.tar.bz2
uhd-e2cde21ceb7497dcc1ef25156afa6472fe64f009.zip
uhd-dpdk: Add ARP responder, set MTU, and clean up API
Set MTU of Ethernet ports: Some NICs (like the Mellanox ones) require this to work. Add ARP responder to uhd-dpdk. Clean up pending ARP request list when done: Threads waiting for an ARP request to complete would be woken up when the request completed, but they wouldn't get removed from the list of pending requests. This fixes the issue.
Diffstat (limited to 'host/lib/transport/uhd-dpdk/uhd_dpdk_ctx.h')
-rw-r--r--host/lib/transport/uhd-dpdk/uhd_dpdk_ctx.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/host/lib/transport/uhd-dpdk/uhd_dpdk_ctx.h b/host/lib/transport/uhd-dpdk/uhd_dpdk_ctx.h
index 31c9dba0c..c6afab85d 100644
--- a/host/lib/transport/uhd-dpdk/uhd_dpdk_ctx.h
+++ b/host/lib/transport/uhd-dpdk/uhd_dpdk_ctx.h
@@ -106,6 +106,15 @@ struct uhd_dpdk_ipv4_5tuple {
uint16_t dst_port;
};
+/**
+ * Used for blocking calls to RX
+ */
+struct uhd_dpdk_sock_cond {
+ struct uhd_dpdk_socket *sock;
+ pthread_cond_t cond;
+ pthread_mutex_t mutex;
+};
+
/************************************************
* TX Queues
*