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 A3D58A328D for ; Tue, 22 Oct 2019 11:41:15 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 56C164C90; Tue, 22 Oct 2019 11:41:15 +0200 (CEST) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by dpdk.org (Postfix) with ESMTP id 50AD74C90 for ; Tue, 22 Oct 2019 11:41:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1571737273; 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=EHBgfjAEsRlF+kygwZFYBRi3036zytg1glqn90EWAss=; b=XPYI1wZ0YBDuh2ahSjVZHQqvunPxtJ6UBCDWpqj57hMhg1DI+xJ2XCucVFpw8FMzrRxbhM K1P0eLcyIubQ1k3KtnNO7+TuNANiyZB+vsrPiOgm0EBrFKJKC9Xtn06x9fdP2Wn2rn1AoM +wrc6IPQ08WmJI0L2ukFLJ6lUm1T3IQ= 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-142-GhfBOlH_NGmrInhFZ7-qtA-1; Tue, 22 Oct 2019 05:33:15 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E6F58107AD3D; Tue, 22 Oct 2019 09:33:13 +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 45DE8601AF; Tue, 22 Oct 2019 09:33:12 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: stephen@networkplumber.org, anatoly.burakov@intel.com, thomas@monjalon.net, stable@dpdk.org, Chas Williams Date: Tue, 22 Oct 2019 11:32:38 +0200 Message-Id: <1571736761-32134-6-git-send-email-david.marchand@redhat.com> In-Reply-To: <1571736761-32134-1-git-send-email-david.marchand@redhat.com> References: <1571736761-32134-1-git-send-email-david.marchand@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-MC-Unique: GhfBOlH_NGmrInhFZ7-qtA-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Subject: [dpdk-stable] [PATCH 5/8] net/bonding: use non deprecated PCI API X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" 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 --- 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