From patchwork Fri Jan 15 15:17:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stuart Haslam X-Patchwork-Id: 59862 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp609442lbb; Fri, 15 Jan 2016 07:18:28 -0800 (PST) X-Received: by 10.55.22.9 with SMTP id g9mr13656733qkh.12.1452871104931; Fri, 15 Jan 2016 07:18:24 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id e184si13720099qkb.28.2016.01.15.07.18.23; Fri, 15 Jan 2016 07:18:23 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 31F166195A; Fri, 15 Jan 2016 15:18:23 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=QR8vpCy2; dkim-adsp=none (unprotected policy); dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 9FBEF6193B; Fri, 15 Jan 2016 15:18:13 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id C7B00618F0; Fri, 15 Jan 2016 15:18:11 +0000 (UTC) Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by lists.linaro.org (Postfix) with ESMTPS id 8C02F618F0 for ; Fri, 15 Jan 2016 15:18:10 +0000 (UTC) Received: by mail-wm0-f44.google.com with SMTP id f206so24387881wmf.0 for ; Fri, 15 Jan 2016 07:18:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id; bh=I5o5Qn5jXwsQLgFWO6Hcowus6D1uxzBYqhbI3gcy+oY=; b=QR8vpCy2a45GsSEJuU3+5pnbwLzhPc6LJ0MWVESKFtNaY2AvKQv0hjuiCxETyZ//XA fvAF6/kWcspXJUK9RRfgUdmK0Qge/lOARLUoPsE88OHr8BAL9CYFLxgvyf0YrYA681Kz nw7DvmLssovCEv6eKX+Vg5GR0a4SZpfKpFkzo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=I5o5Qn5jXwsQLgFWO6Hcowus6D1uxzBYqhbI3gcy+oY=; b=G/h1XlXRXq6j+BDl1g1tIpLoKs8lIxwF2W+O6QmaoXylHbK8Rt7AscSX5sHYApgLfb DWbm6xjH3EHmF/ayeQCzWewm4XnOms6l0gday2pX6534p+QdHIWDlNCEv58/9GlTU6Za VXoaZep89J1GXhuXDyxTu/cYrKzj0fbgtFRkAv9OMhrIH1Zk/tsDeDsMuTwESFx0fEkt X89FsnN6fmmtqSZRIEhMRhkQWKBHLCgWu3edrcJHdp1gRQWGeXpx/ESdWRH5m1RG82P5 gbsOiuACORv8iMvX6yLP1drQSv/78+sEJe4ToPFi80Kv6Ss+wAhozduwbvFjOtXOsq7l /EuA== X-Gm-Message-State: ALoCoQmf9BDcHFJf1DvUP6gqjDV4vX3ddEHqBRBoIJajPOp23CuTK4E7J7hveegSfzwTOQtAWc8dG6uvyxVqmXImHraMsfjL6w== X-Received: by 10.194.103.234 with SMTP id fz10mr10497864wjb.31.1452871089241; Fri, 15 Jan 2016 07:18:09 -0800 (PST) Received: from e106441.emea.arm.com ([2001:41d0:a:3cb4::1]) by smtp.gmail.com with ESMTPSA id ha9sm10957966wjc.3.2016.01.15.07.18.08 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 15 Jan 2016 07:18:08 -0800 (PST) From: Stuart Haslam To: lng-odp@lists.linaro.org Date: Fri, 15 Jan 2016 15:17:56 +0000 Message-Id: <1452871076-9837-1-git-send-email-stuart.haslam@linaro.org> X-Mailer: git-send-email 2.1.1 X-Topics: patch Subject: [lng-odp] [PATCH API-NEXT] api: pktio: remove unused ODP_PKTIO_ANY X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" 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" ODP_PKTIO_ANY is defined in the API header but there's no description of its intended use and it wouldn't make sense to pass it to the majority of exisitng APIs that take odp_pktio_t handles. It's not currently used anywhere, so remove it. Signed-off-by: Stuart Haslam --- include/odp/api/packet_io.h | 5 ----- platform/linux-generic/include/odp/plat/packet_io_types.h | 2 -- 2 files changed, 7 deletions(-) diff --git a/include/odp/api/packet_io.h b/include/odp/api/packet_io.h index a0a2c12..4971108 100644 --- a/include/odp/api/packet_io.h +++ b/include/odp/api/packet_io.h @@ -58,11 +58,6 @@ extern "C" { */ /** - * @def ODP_PKTIO_ANY - * odp_pktio_t value to indicate any port - */ - -/** * @def ODP_PKTIO_MACADDR_MAXSIZE * Minimum size of output buffer for odp_pktio_mac_addr() * Actual MAC address sizes may be different. diff --git a/platform/linux-generic/include/odp/plat/packet_io_types.h b/platform/linux-generic/include/odp/plat/packet_io_types.h index 25f7151..934d7de 100644 --- a/platform/linux-generic/include/odp/plat/packet_io_types.h +++ b/platform/linux-generic/include/odp/plat/packet_io_types.h @@ -42,8 +42,6 @@ typedef struct odp_pktout_queue_t { #define ODP_PKTIO_INVALID _odp_cast_scalar(odp_pktio_t, 0) -#define ODP_PKTIO_ANY _odp_cast_scalar(odp_pktio_t, ~0) - #define ODP_PKTIO_MACADDR_MAXSIZE 16 /** Get printable format of odp_pktio_t */