From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qg0-f54.google.com (mail-qg0-f54.google.com [209.85.192.54]) by dpdk.org (Postfix) with ESMTP id 6E2F9C310 for ; Fri, 12 Jun 2015 07:18:35 +0200 (CEST) Received: by qgg3 with SMTP id 3so8377131qgg.2 for ; Thu, 11 Jun 2015 22:18: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:from:to:cc:subject:date:message-id:in-reply-to :references; bh=xc8eE17Bx8OlVxkBfg5AHUTUyqocPElqSSYzu3W4fDs=; b=SFGGUE9US08+yv6NsPop1Z3p35JAFH+rwShctxzN/W/3WwQiUGOl23YOg8uzu+dpYF 475ZfCH+Vds609GUsmQTpbrDh60S+jatvLNvMXXr9MS/9uHyblbYcjKsGwxf+Aa7+Ipn REDt13Pm3b1rqNp325UtX9iUreXHnsc07UpFskz3e4JU+DBRBXdWsmW9o87XxS9BBGza /d1nc6vjI116M+2pbgANk3QCdFuSPzp+9Zi9M5SumZzTHTYR/h8o10BUHmki3Ql76Hc/ ul1toikvavdVkBPMFNNyKo/bgcOMQgyN3+5DUTPyq1NH4MomL54wWeeqiBipkCs0OTsl D8Bw== X-Gm-Message-State: ALoCoQmCbPHa5faVDcZK2ukIhbiye47Gfop1UHXwKF0Xoh/MR/y8bzN3uqXhaWc2CGohyztLNS1/ X-Received: by 10.140.81.135 with SMTP id f7mr16172878qgd.33.1434086314839; Thu, 11 Jun 2015 22:18:34 -0700 (PDT) Received: from urahara.home.lan (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by mx.google.com with ESMTPSA id i197sm1253256qhc.36.2015.06.11.22.18.33 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 11 Jun 2015 22:18:33 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Date: Thu, 11 Jun 2015 22:18:32 -0700 Message-Id: <1434086314-14371-2-git-send-email-stephen@networkplumber.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1434086314-14371-1-git-send-email-stephen@networkplumber.org> References: <1434086314-14371-1-git-send-email-stephen@networkplumber.org> Cc: Stephen Hemminger Subject: [dpdk-dev] [PATCH 1/3] rte_ring: remove deprecated functions X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jun 2015 05:18:35 -0000 From: Stephen Hemminger These were deprecated in 2.0 so remove them from 2.1 Signed-off-by: Stephen Hemminger --- drivers/net/ring/rte_eth_ring.c | 55 ------------------------------- drivers/net/ring/rte_eth_ring_version.map | 2 -- 2 files changed, 57 deletions(-) diff --git a/drivers/net/ring/rte_eth_ring.c b/drivers/net/ring/rte_eth_ring.c index 6832f01..3dd96ca 100644 --- a/drivers/net/ring/rte_eth_ring.c +++ b/drivers/net/ring/rte_eth_ring.c @@ -390,61 +390,6 @@ eth_dev_ring_create(const char *name, const unsigned numa_node, return 0; } - -static int -eth_dev_ring_pair_create(const char *name, const unsigned numa_node, - enum dev_action action) -{ - /* rx and tx are so-called from point of view of first port. - * They are inverted from the point of view of second port - */ - struct rte_ring *rx[RTE_PMD_RING_MAX_RX_RINGS]; - struct rte_ring *tx[RTE_PMD_RING_MAX_TX_RINGS]; - unsigned i; - char rx_rng_name[RTE_RING_NAMESIZE]; - char tx_rng_name[RTE_RING_NAMESIZE]; - unsigned num_rings = RTE_MIN(RTE_PMD_RING_MAX_RX_RINGS, - RTE_PMD_RING_MAX_TX_RINGS); - - for (i = 0; i < num_rings; i++) { - snprintf(rx_rng_name, sizeof(rx_rng_name), "ETH_RX%u_%s", i, name); - rx[i] = (action == DEV_CREATE) ? - rte_ring_create(rx_rng_name, 1024, numa_node, - RING_F_SP_ENQ|RING_F_SC_DEQ) : - rte_ring_lookup(rx_rng_name); - if (rx[i] == NULL) - return -1; - snprintf(tx_rng_name, sizeof(tx_rng_name), "ETH_TX%u_%s", i, name); - tx[i] = (action == DEV_CREATE) ? - rte_ring_create(tx_rng_name, 1024, numa_node, - RING_F_SP_ENQ|RING_F_SC_DEQ): - rte_ring_lookup(tx_rng_name); - if (tx[i] == NULL) - return -1; - } - - if (rte_eth_from_rings(rx_rng_name, rx, num_rings, tx, num_rings, - numa_node) || rte_eth_from_rings(tx_rng_name, tx, num_rings, rx, - num_rings, numa_node)) - return -1; - - return 0; -} - -int -rte_eth_ring_pair_create(const char *name, const unsigned numa_node) -{ - RTE_LOG(WARNING, PMD, "rte_eth_ring_pair_create is deprecated\n"); - return eth_dev_ring_pair_create(name, numa_node, DEV_CREATE); -} - -int -rte_eth_ring_pair_attach(const char *name, const unsigned numa_node) -{ - RTE_LOG(WARNING, PMD, "rte_eth_ring_pair_attach is deprecated\n"); - return eth_dev_ring_pair_create(name, numa_node, DEV_ATTACH); -} - struct node_action_pair { char name[PATH_MAX]; unsigned node; diff --git a/drivers/net/ring/rte_eth_ring_version.map b/drivers/net/ring/rte_eth_ring_version.map index 8ad107d..0875e25 100644 --- a/drivers/net/ring/rte_eth_ring_version.map +++ b/drivers/net/ring/rte_eth_ring_version.map @@ -2,8 +2,6 @@ DPDK_2.0 { global: rte_eth_from_rings; - rte_eth_ring_pair_attach; - rte_eth_ring_pair_create; local: *; }; -- 2.1.4