diff options
author | Alex Williams <alex.williams@ni.com> | 2018-08-31 11:52:04 -0700 |
---|---|---|
committer | Brent Stapleton <brent.stapleton@ettus.com> | 2019-01-15 17:14:57 -0800 |
commit | e2cde21ceb7497dcc1ef25156afa6472fe64f009 (patch) | |
tree | 43def88d4d1e3950236dad44812d27f08ee9e232 /host/lib/include | |
parent | 853c2a2263e54c1e1fd9562b479a17122a6d9b37 (diff) | |
download | uhd-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/include')
-rw-r--r-- | host/lib/include/uhd/transport/uhd-dpdk.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/include/uhd/transport/uhd-dpdk.h b/host/lib/include/uhd/transport/uhd-dpdk.h index 5f74ee9b4..68438fe40 100644 --- a/host/lib/include/uhd/transport/uhd-dpdk.h +++ b/host/lib/include/uhd/transport/uhd-dpdk.h @@ -47,7 +47,7 @@ enum uhd_dpdk_sock_type { * * @return Returns negative error code if there were issues, else 0 */ -int uhd_dpdk_init(int argc, char **argv, unsigned int num_ports, +int uhd_dpdk_init(int argc, const char **argv, unsigned int num_ports, int *port_thread_mapping, int num_mbufs, int mbuf_cache_size, int mtu); @@ -177,7 +177,7 @@ int uhd_dpdk_send(struct uhd_dpdk_socket *sock, struct rte_mbuf **bufs, unsigned * NOTE: MUST free buffers with uhd_dpdk_free_buf once finished */ int uhd_dpdk_recv(struct uhd_dpdk_socket *sock, struct rte_mbuf **bufs, - unsigned int num_bufs, unsigned int timeout); + unsigned int num_bufs, int timeout); /** * Frees buffer previously received from uhd_dpdk_recv |