From e2cde21ceb7497dcc1ef25156afa6472fe64f009 Mon Sep 17 00:00:00 2001 From: Alex Williams Date: Fri, 31 Aug 2018 11:52:04 -0700 Subject: 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. --- host/lib/transport/uhd-dpdk/uhd_dpdk_ctx.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'host/lib/transport/uhd-dpdk/uhd_dpdk_ctx.h') 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 * -- cgit v1.2.3