From patchwork Wed Oct 22 12:40:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 39284 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 94427202DB for ; Wed, 22 Oct 2014 12:40:35 +0000 (UTC) Received: by mail-wg0-f70.google.com with SMTP id a1sf1927721wgh.9 for ; Wed, 22 Oct 2014 05:40:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=wsF+eiMPNAYy8tIyY7Vi8UqjvSS7+qkK4GQVONe7pXE=; b=GVUiseP/N0Abhh9BqkHt5lAV6bK0Wk7H9O8uEn4LHGSdNjcF7D2gL/IfBimCK5C+0Z 9gQDHlPZC7S6mX/KaLD9dDCUiO7qErp0p/3YGpwmXDKJABpEGQbIDRvBKmqrUYe2F6SG eor+Q0Mictd5Q7zTB6Tj4wI52O9yaFKQG0EZxbmwbfVil5r0vY5PXd0TgPZKVUG5vv9K lGXfN1672taAsiPfDTbX7gsN9pYhxH3caA9ZEeBQhUdXBdJ35mNChmCkhMafJaZEImbz IBqUMiNgxy02Fu/yMXX6M+L6D9E2jWjHlKn2WrhT/bAehGHFrHkTmG/58l4vuT5fkaiJ UYjA== X-Gm-Message-State: ALoCoQlZAtm7cnjV7eYJtgMAYdVW6drDhAEyxz23n58DmRagUqUU3y+xfag6QSab3rnK4DqrqJFq X-Received: by 10.112.217.102 with SMTP id ox6mr70455lbc.19.1413981634704; Wed, 22 Oct 2014 05:40:34 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.88.80 with SMTP id be16ls195856lab.107.gmail; Wed, 22 Oct 2014 05:40:34 -0700 (PDT) X-Received: by 10.112.97.175 with SMTP id eb15mr4483244lbb.12.1413981634564; Wed, 22 Oct 2014 05:40:34 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com. [209.85.217.172]) by mx.google.com with ESMTPS id j5si23210591lam.25.2014.10.22.05.40.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 22 Oct 2014 05:40:34 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by mail-lb0-f172.google.com with SMTP id b6so2766329lbj.31 for ; Wed, 22 Oct 2014 05:40:34 -0700 (PDT) X-Received: by 10.112.97.135 with SMTP id ea7mr41732306lbb.46.1413981634480; Wed, 22 Oct 2014 05:40:34 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp62887lbz; Wed, 22 Oct 2014 05:40:33 -0700 (PDT) X-Received: by 10.140.42.39 with SMTP id b36mr28633403qga.102.1413981633157; Wed, 22 Oct 2014 05:40:33 -0700 (PDT) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id p39si27667721qgp.16.2014.10.22.05.40.29 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 22 Oct 2014 05:40:31 -0700 (PDT) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XgvDI-00017a-Rf; Wed, 22 Oct 2014 12:40:28 +0000 Received: from mail-la0-f53.google.com ([209.85.215.53]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XgvD7-00017B-Hd for lng-odp@lists.linaro.org; Wed, 22 Oct 2014 12:40:17 +0000 Received: by mail-la0-f53.google.com with SMTP id gq15so2897250lab.12 for ; Wed, 22 Oct 2014 05:40:11 -0700 (PDT) X-Received: by 10.112.219.3 with SMTP id pk3mr41431161lbc.18.1413981611690; Wed, 22 Oct 2014 05:40:11 -0700 (PDT) Received: from localhost (c-853670d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.54.133]) by mx.google.com with ESMTPSA id or5sm5764163lbb.42.2014.10.22.05.40.10 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 22 Oct 2014 05:40:10 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Wed, 22 Oct 2014 14:40:00 +0200 Message-Id: <1413981601-13557-2-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1413981601-13557-1-git-send-email-anders.roxell@linaro.org> References: <1413981601-13557-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 1/2] linux-generic: remove odp_packet_netmap.h X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: anders.roxell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Signed-off-by: Anders Roxell Reviewed-by: Ciprian Barbu --- platform/linux-generic/include/odp_packet_netmap.h | 67 ---------------------- 1 file changed, 67 deletions(-) delete mode 100644 platform/linux-generic/include/odp_packet_netmap.h diff --git a/platform/linux-generic/include/odp_packet_netmap.h b/platform/linux-generic/include/odp_packet_netmap.h deleted file mode 100644 index 1ab50d0..0000000 --- a/platform/linux-generic/include/odp_packet_netmap.h +++ /dev/null @@ -1,67 +0,0 @@ -/* Copyright (c) 2013, Linaro Limited - * All rights reserved. - * - * SPDX-License-Identifier: BSD-3-Clause - */ - -#ifndef ODP_PACKET_NETMAP_H -#define ODP_PACKET_NETMAP_H - -#include - -#include -#include -#include - -#include -#include -#include -#include - -#include - -#define ODP_NETMAP_MODE_HW 0 -#define ODP_NETMAP_MODE_SW 1 - -#define NETMAP_BLOCKING_IO - -/** Packet socket using netmap mmaped rings for both Rx and Tx */ -typedef struct { - odp_buffer_pool_t pool; - size_t max_frame_len; /**< max frame len = buf_size - sizeof(pkt_hdr) */ - size_t frame_offset; /**< frame start offset from start of pkt buf */ - size_t buf_size; /**< size of buffer payload in 'pool' */ - int netmap_mode; - struct nm_desc_t *nm_desc; - uint32_t begin; - uint32_t end; - struct netmap_ring *rxring; - struct netmap_ring *txring; - odp_queue_t tx_access; /* Used for exclusive access to send packets */ - uint32_t if_flags; - char ifname[32]; -} pkt_netmap_t; - -/** - * Configure an interface to work in netmap mode - */ -int setup_pkt_netmap(pkt_netmap_t * const pkt_nm, const char *netdev, - odp_buffer_pool_t pool, netmap_params_t *nm_params); - -/** - * Switch interface from netmap mode to normal mode - */ -int close_pkt_netmap(pkt_netmap_t * const pkt_nm); - -/** - * Receive packets using netmap - */ -int recv_pkt_netmap(pkt_netmap_t * const pkt_nm, odp_packet_t pkt_table[], - unsigned len); - -/** - * Send packets using netmap - */ -int send_pkt_netmap(pkt_netmap_t * const pkt_nm, odp_packet_t pkt_table[], - unsigned len); -#endif