From 378dc931ab697ee13352008a025ec4732f6f46e1 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 3 Dec 2019 16:51:12 -0800 Subject: lib: Remove dpdk_zero_copy files These were left here as a reference. --- host/lib/transport/uhd-dpdk/uhd_dpdk_driver.h | 33 --------------------------- 1 file changed, 33 deletions(-) delete mode 100644 host/lib/transport/uhd-dpdk/uhd_dpdk_driver.h (limited to 'host/lib/transport/uhd-dpdk/uhd_dpdk_driver.h') 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 -#include -#include -#include - -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_ */ -- cgit v1.2.3