From patchwork Sat Mar 7 02:23:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 3918 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id B197F7EEF; Sat, 7 Mar 2015 03:23:38 +0100 (CET) Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by dpdk.org (Postfix) with ESMTP id B511E6837 for ; Sat, 7 Mar 2015 03:23:35 +0100 (CET) Received: by pabrd3 with SMTP id rd3so22568576pab.6 for ; Fri, 06 Mar 2015 18:23:35 -0800 (PST) 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=/LZt8GDL1dQsCmZYezSdBoIzDp1xr86xOhb2DIUxy7w=; b=LIU7PUHla/EjzCtXP1ricfh1e54626dElT+sIJqSa5TeauzM6hR7b/E9hrTPVFfzs6 udplPEwKQpbjm+oZkmStzkTZ7rxVGtfWDrla0ZZlAneHOeRPPlmCJfYE3xcF0sYUYh0J GFCA/FONYDszISv7GwIe/3pIaFKsp+1SXjA3/zZKhR/YJdoSTlhWU2B2TM28iS0F+CBg rEZlfeGUacdMKHjNcIkFZPJC49jz387nH5hpEAYY+ECDDDPvIdOrriRm2Vs912XPGpPG U+sNbm9CyeusUyh8E7btUL09O4yNE2v/PKu32BuPTiUpoUXHfir90fO85sqcGLcBJiId /KQw== X-Gm-Message-State: ALoCoQnXuA+1KRLgqQMApyg3gRS734PSh+P6Wl7OqezHqDeKDyj03QLErB41hpKsXFbNTTJSw4PO X-Received: by 10.66.216.67 with SMTP id oo3mr29791304pac.133.1425695015154; Fri, 06 Mar 2015 18:23:35 -0800 (PST) Received: from urahara.brocade.com (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by mx.google.com with ESMTPSA id x4sm10797098pas.40.2015.03.06.18.23.34 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 Mar 2015 18:23:34 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Date: Fri, 6 Mar 2015 18:23:23 -0800 Message-Id: <1425695004-29605-5-git-send-email-stephen@networkplumber.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1425695004-29605-1-git-send-email-stephen@networkplumber.org> References: <1425695004-29605-1-git-send-email-stephen@networkplumber.org> Subject: [dpdk-dev] [PATCH 4/5] ixgbe: rename set_tx_function 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" All global functions in a driver should use the same prefix to avoid any future name collisions. Signed-off-by: Stephen Hemminger Acked-by: Changchun Ouyang --- lib/librte_pmd_ixgbe/ixgbe_ethdev.c | 2 +- lib/librte_pmd_ixgbe/ixgbe_rxtx.c | 2 +- lib/librte_pmd_ixgbe/ixgbe_rxtx.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/librte_pmd_ixgbe/ixgbe_ethdev.c b/lib/librte_pmd_ixgbe/ixgbe_ethdev.c index 9bdc046..e1504f4 100644 --- a/lib/librte_pmd_ixgbe/ixgbe_ethdev.c +++ b/lib/librte_pmd_ixgbe/ixgbe_ethdev.c @@ -753,7 +753,7 @@ eth_ixgbe_dev_init(__attribute__((unused)) struct eth_driver *eth_drv, * Tx queue may not initialized by primary process */ if (eth_dev->data->tx_queues) { txq = eth_dev->data->tx_queues[eth_dev->data->nb_tx_queues-1]; - set_tx_function(eth_dev, txq); + ixgbe_set_tx_function(eth_dev, txq); } else { /* Use default TX function if we get here */ PMD_INIT_LOG(INFO, "No TX queues configured yet. " diff --git a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c b/lib/librte_pmd_ixgbe/ixgbe_rxtx.c index 0f32296..c5ba687 100644 --- a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c +++ b/lib/librte_pmd_ixgbe/ixgbe_rxtx.c @@ -1765,7 +1765,7 @@ static const struct ixgbe_txq_ops def_txq_ops = { * in dev_init by secondary process when attaching to an existing ethdev. */ void -set_tx_function(struct rte_eth_dev *dev, struct igb_tx_queue *txq) +ixgbe_set_tx_function(struct rte_eth_dev *dev, struct igb_tx_queue *txq) { /* Use a simple Tx queue (no offloads, no multi segs) if possible */ if (((txq->txq_flags & IXGBE_SIMPLE_FLAGS) == IXGBE_SIMPLE_FLAGS) diff --git a/lib/librte_pmd_ixgbe/ixgbe_rxtx.h b/lib/librte_pmd_ixgbe/ixgbe_rxtx.h index a85839e..42d59f9 100644 --- a/lib/librte_pmd_ixgbe/ixgbe_rxtx.h +++ b/lib/librte_pmd_ixgbe/ixgbe_rxtx.h @@ -253,7 +253,7 @@ struct ixgbe_txq_ops { * the queue parameters. Used in tx_queue_setup by primary process and then * in dev_init by secondary process when attaching to an existing ethdev. */ -void set_tx_function(struct rte_eth_dev *dev, struct igb_tx_queue *txq); +void ixgbe_set_tx_function(struct rte_eth_dev *dev, struct igb_tx_queue *txq); #ifdef RTE_IXGBE_INC_VECTOR uint16_t ixgbe_recv_pkts_vec(void *rx_queue, struct rte_mbuf **rx_pkts,