From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by dpdk.org (Postfix) with ESMTP id 92ABA1BACE for ; Thu, 26 Oct 2017 12:06:54 +0200 (CEST) Received: by mail-wm0-f67.google.com with SMTP id q124so6874391wmb.0 for ; Thu, 26 Oct 2017 03:06:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=fjgwDdGUM6+Bj/+zcOjyfvyFglx59Df3fuiEnsOY7mE=; b=w5xk2CLywZoX9NaL6PhFBCnWWmtNfGC/ZQcTYXuuObFlRGGtIPpGbJmDUAINOJy2wV NJaIyZT7MFgiURma1kNzzaaUZnfQLXShiddMTnvCPzUcElE2rFoPZRf+TcKANSaedNdg dvzVFXTrZTudEbHljtzOcFHGkzZ/s0r+2ufOtrSrEpfSLAlkCajoB7z7rTL7OthWiPI5 TNscPHGQl+zg0tBi7EK10a6uNI6DYvdu516EcHdWIfTljpNdAYVcvlGYIcgvOMyySBxj BJoWMQN+ufcgOfhB+uGXfBCoGViTkqlB7NqSZj5ht5U0uL7tC1IQST2m4eIl9bF1FtIH XMCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=fjgwDdGUM6+Bj/+zcOjyfvyFglx59Df3fuiEnsOY7mE=; b=Tb4DvRdOVv/6cjzxvvWBsxm6zrqXQKU/mUJiRtwaeNcp4veiV9+54seS0tX3AEMkfq Uds/cDzr8mrhzA3jv3Q9qbFmZHd+D1xG2rVECUBeByhSqFoelIPOKLkZOmiCnJkDJR7u ugbMJO+yMu7JhRRw1ixX26Retj2OPCnzyIf/j0trBf7bVFhVyVcNt8dV/W/d14WhxZMB 7EOfbxZcXDiY9lEKG7mePKqTQtF28wTIQfMljVfaDmd0RjzBeRPc5xd6YVScgKPYDvUD qP0TCJxl+PY0afQ4EdUXkFWQ4t96PWdA9df0inWswdaSqen6XBUSWsy8b2pYfFElTtu4 6lnA== X-Gm-Message-State: AMCzsaXZZNhsKorpZHBK+RoBW+3G6YrjAKr2pQ33Rzl42RnWQGFt61+8 IpevcKZh4VnoeZ27rHkgwl6xvQfl X-Google-Smtp-Source: ABhQp+SZlIWI+7yrFZ5OJ0u6i05rFKIN3XqlwxHzjt9rrcnlKzn8O9gB2CLIJ7ezXuEgtYNq+jYqgQ== X-Received: by 10.80.173.210 with SMTP id b18mr28057999edd.148.1509012413896; Thu, 26 Oct 2017 03:06:53 -0700 (PDT) Received: from bidouze.dev.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id u12sm3339619edk.45.2017.10.26.03.06.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Oct 2017 03:06:52 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Thu, 26 Oct 2017 12:06:07 +0200 Message-Id: <764823f1643f9ec0a3f24f49869304619e7bd638.1509012196.git.gaetan.rivet@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH v8 22/25] net/bonding: use local prefix for local function X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Oct 2017 10:06:54 -0000 The current name conflicts with the librte_pci naming convention. Additionally, it is easier to use gdb when having prefixed even private functions. Signed-off-by: Gaetan Rivet --- drivers/net/bonding/rte_eth_bond_args.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/bonding/rte_eth_bond_args.c b/drivers/net/bonding/rte_eth_bond_args.c index c4dcefa..ebbcc5b 100644 --- a/drivers/net/bonding/rte_eth_bond_args.c +++ b/drivers/net/bonding/rte_eth_bond_args.c @@ -89,7 +89,7 @@ find_port_id_by_dev_name(const char *name) } static inline int -pci_addr_cmp(const struct rte_device *dev, const void *_pci_addr) +bond_pci_addr_cmp(const struct rte_device *dev, const void *_pci_addr) { struct rte_pci_device *pdev; const struct rte_pci_addr *paddr = _pci_addr; @@ -118,7 +118,7 @@ parse_port_id(const char *port_str) /* try parsing as pci address, physical devices */ if (pci_bus->parse(port_str, &dev_addr) == 0) { - dev = pci_bus->find_device(NULL, pci_addr_cmp, &dev_addr); + dev = pci_bus->find_device(NULL, bond_pci_addr_cmp, &dev_addr); if (dev == NULL) { RTE_LOG(ERR, PMD, "unable to find PCI device\n"); return -1; -- 2.1.4