From patchwork Thu Apr 7 18:53:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zoltan Kiss X-Patchwork-Id: 65336 Delivered-To: patch@linaro.org Received: by 10.112.43.237 with SMTP id z13csp248622lbl; Thu, 7 Apr 2016 11:55:10 -0700 (PDT) X-Received: by 10.55.78.70 with SMTP id c67mr5883868qkb.37.1460055306402; Thu, 07 Apr 2016 11:55:06 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id a126si6924875qkb.100.2016.04.07.11.55.06; Thu, 07 Apr 2016 11:55:06 -0700 (PDT) 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; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 164B1619C2; Thu, 7 Apr 2016 18:55:06 +0000 (UTC) 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.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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 365DE619D4; Thu, 7 Apr 2016 18:54:21 +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 0C3F1619CB; Thu, 7 Apr 2016 18:54:17 +0000 (UTC) Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by lists.linaro.org (Postfix) with ESMTPS id 4427E6199D for ; Thu, 7 Apr 2016 18:54:14 +0000 (UTC) Received: by mail-wm0-f52.google.com with SMTP id u206so99234550wme.1 for ; Thu, 07 Apr 2016 11:54:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=49FAsqbRL8hb606GixqgQeICfKXXHW8toWyOTG5oHFg=; b=GElwaJnvIYgxm6e6Et/0ureA7cJF/S2QHlPoHd8ujOyusBLpnqUHMDBbul1cHMlhAa sCJJLlKyZetLDUYRmdUOzD50ft4DV/iRV84Olqkk8TJfOl5w4WS1vzPHWYpaQNOjXbIJ NruED1v27Q3QtSgLGjFoYMUwVCfxf3RsyhIFCIBy6Vk9atwApWYFFUfiPgVU5UUthgTk 9DVHwFr4MHmlpgwSPVmTLakW+DUIca9mjyN5IEI6D9274Z2hdLHFxdZCBBWswDY/qgjY V2Rwl/dWh/+WDMtoO9wlr+X9iUYuPrBkP9wLjgSC/rs4io0b0qDKfsEDHS33LyiSN8ah L1/w== X-Gm-Message-State: AD7BkJK8G85iH57HbbCH6oHIoSaivoxBEPUQuLlJZYEpKGoe7NYmX+ilenU6lnw+urZYqQsiMx0= X-Received: by 10.28.90.68 with SMTP id o65mr31280593wmb.70.1460055253424; Thu, 07 Apr 2016 11:54:13 -0700 (PDT) Received: from localhost.localdomain ([195.11.233.227]) by smtp.googlemail.com with ESMTPSA id i5sm9801915wjx.15.2016.04.07.11.54.12 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 07 Apr 2016 11:54:12 -0700 (PDT) From: Zoltan Kiss To: lng-odp@lists.linaro.org Date: Thu, 7 Apr 2016 19:53:33 +0100 Message-Id: <1460055213-29479-3-git-send-email-zoltan.kiss@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1460055213-29479-1-git-send-email-zoltan.kiss@linaro.org> References: <1460055213-29479-1-git-send-email-zoltan.kiss@linaro.org> X-Topics: Classification patch Cc: petri.savolainen@nokia.com Subject: [lng-odp] [PATCH 2/2] linux-generic: classification: remove unused code 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" This function is not referred. Signed-off-by: Zoltan Kiss Reviewed-by: Balasubramanian Manoharan --- platform/linux-generic/include/odp_classification_internal.h | 9 ++------- platform/linux-generic/odp_classification.c | 10 ---------- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/platform/linux-generic/include/odp_classification_internal.h b/platform/linux-generic/include/odp_classification_internal.h index 86b40fc..3a88462 100644 --- a/platform/linux-generic/include/odp_classification_internal.h +++ b/platform/linux-generic/include/odp_classification_internal.h @@ -54,6 +54,8 @@ based on the l3_preference value of the pktio cos_t *match_qos_cos(pktio_entry_t *entry, const uint8_t *pkt_addr, odp_packet_hdr_t *hdr); /** +@internal + Packet Classifier Start function for Packet Classifier @@ -61,13 +63,6 @@ This function calls Classifier module internal functions for a given packet and enqueues the packet to specific Queue based on PMR and CoS selected. The packet is allocated from the pool associated with the CoS **/ -int packet_classifier(odp_pktio_t pktio, odp_packet_t pkt); - -/** -@internal - -Same as packet classifier uses linux-generic internal pktio struct -**/ int _odp_packet_classifier(pktio_entry_t *entry, odp_packet_t pkt); /** diff --git a/platform/linux-generic/odp_classification.c b/platform/linux-generic/odp_classification.c index 4f2974b..2ad190b 100644 --- a/platform/linux-generic/odp_classification.c +++ b/platform/linux-generic/odp_classification.c @@ -774,16 +774,6 @@ int _odp_packet_classifier(pktio_entry_t *entry, odp_packet_t pkt) } } -int packet_classifier(odp_pktio_t pktio, odp_packet_t pkt) -{ - pktio_entry_t *entry; - - entry = get_pktio_entry(pktio); - if (entry == NULL) - return -1; - return _odp_packet_classifier(entry, pkt); -} - cos_t *pktio_select_cos(pktio_entry_t *entry, const uint8_t *pkt_addr, odp_packet_hdr_t *pkt_hdr) {