diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-12-03 16:51:12 -0800 |
---|---|---|
committer | Brent Stapleton <brent.stapleton@ettus.com> | 2019-12-20 16:32:22 -0800 |
commit | 378dc931ab697ee13352008a025ec4732f6f46e1 (patch) | |
tree | b7c85351738bfd39cf7377f11d110b4692f7c0db /host/lib/transport/uhd-dpdk/uhd_dpdk_driver.h | |
parent | 4547f2de85f0d8b258a89cea71af774fce8616b7 (diff) | |
download | uhd-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_driver.h')
-rw-r--r-- | host/lib/transport/uhd-dpdk/uhd_dpdk_driver.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/host/lib/transport/uhd-dpdk/uhd_dpdk_driver.h b/host/lib/transport/uhd-dpdk/uhd_dpdk_driver.h deleted file mode 100644 index f94a678ba..000000000 --- a/host/lib/transport/uhd-dpdk/uhd_dpdk_driver.h +++ /dev/null @@ -1,33 +0,0 @@ -// -// Copyright 2018 Ettus Research, a National Instruments Company -// -// SPDX-License-Identifier: GPL-3.0-or-later -// -#ifndef _UHD_DPDK_DRIVER_H_ -#define _UHD_DPDK_DRIVER_H_ - -#include "uhd_dpdk_ctx.h" -#include <rte_mbuf.h> -#include <rte_arp.h> -#include <rte_udp.h> -#include <rte_ip.h> - -static inline bool is_broadcast(struct uhd_dpdk_port *port, uint32_t dst_ipv4_addr) -{ - uint32_t network = port->netmask | ((~port->netmask) & dst_ipv4_addr); - return (network == 0xffffffff); -} - - -int _uhd_dpdk_process_arp(struct uhd_dpdk_port *port, struct arp_hdr *arp_frame); -int _uhd_dpdk_process_udp(struct uhd_dpdk_port *port, struct rte_mbuf *mbuf, - struct udp_hdr *pkt, bool bcast); -int _uhd_dpdk_process_ipv4(struct uhd_dpdk_port *port, struct rte_mbuf *mbuf, struct ipv4_hdr *pkt); -int _uhd_dpdk_send_udp(struct uhd_dpdk_port *port, - struct uhd_dpdk_socket *sock, - struct rte_mbuf *mbuf); -int _uhd_dpdk_arp_request(struct uhd_dpdk_port *port, - uint32_t ip); - -int _uhd_dpdk_driver_main(void *arg); -#endif /* _UHD_DPDK_DRIVER_H_ */ |