From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 72963A32A4 for ; Fri, 25 Oct 2019 15:57:18 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2566F1C235; Fri, 25 Oct 2019 15:56:58 +0200 (CEST) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by dpdk.org (Postfix) with ESMTP id 37C181C21C for ; Fri, 25 Oct 2019 15:56:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1572011816; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wDmJPU1weyyjbl4qcjkTqY/rfG6AlUH17mdDkeMWxec=; b=ca1+wa8ZLClxpnWa1BIIIS5zBptLn3W6xj7F6nOTcJKy9V6tDrWh9M0a5v6b90Q2MBrs31 n4eaJ/x+t9cub+ZKnoEkzqtYwC65nXGJZNsZMcrwDGnimu4WD5NzR+pnz20J1Kk7vP00WI GIn1CNtUcid0BkSTpEB5pYFvRknbkIA= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-315-RD7KEO8TNGy4fE-oPzyigQ-1; Fri, 25 Oct 2019 09:56:50 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5B99D800D41; Fri, 25 Oct 2019 13:56:49 +0000 (UTC) Received: from dmarchan.remote.csb (ovpn-204-129.brq.redhat.com [10.40.204.129]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8EA0C10013A1; Fri, 25 Oct 2019 13:56:46 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: stephen@networkplumber.org, anatoly.burakov@intel.com, thomas@monjalon.net, ktraynor@redhat.com, stable@dpdk.org, Chas Williams Date: Fri, 25 Oct 2019 15:56:04 +0200 Message-Id: <1572011772-23271-6-git-send-email-david.marchand@redhat.com> In-Reply-To: <1572011772-23271-1-git-send-email-david.marchand@redhat.com> References: <1571736761-32134-1-git-send-email-david.marchand@redhat.com> <1572011772-23271-1-git-send-email-david.marchand@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-MC-Unique: RD7KEO8TNGy4fE-oPzyigQ-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Subject: [dpdk-dev] [PATCH v3 05/12] net/bonding: use non deprecated PCI API 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" rte_eal_compare_pci_addr has been deprecated since v17.11. Convert to rte_pci_addr_cmp. Fixes: c848b518bbc7 ("net/bonding: support bifurcated driver in eal") Cc: stable@dpdk.org Signed-off-by: David Marchand Acked-by: Thomas Monjalon --- drivers/net/bonding/rte_eth_bond_args.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/bonding/rte_eth_bond_args.c b/drivers/net/bonding/= rte_eth_bond_args.c index f298ea0..bfe03c3 100644 --- a/drivers/net/bonding/rte_eth_bond_args.c +++ b/drivers/net/bonding/rte_eth_bond_args.c @@ -60,11 +60,10 @@ find_port_id_by_dev_name(const char *name) static inline int bond_pci_addr_cmp(const struct rte_device *dev, const void *_pci_addr) { -=09struct rte_pci_device *pdev; +=09const struct rte_pci_device *pdev =3D RTE_DEV_TO_PCI_CONST(dev); =09const struct rte_pci_addr *paddr =3D _pci_addr; =20 -=09pdev =3D RTE_DEV_TO_PCI(*(struct rte_device **)(void *)&dev); -=09return rte_eal_compare_pci_addr(&pdev->addr, paddr); +=09return rte_pci_addr_cmp(&pdev->addr, paddr); } =20 /** --=20 1.8.3.1