From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-f65.google.com (mail-ed1-f65.google.com [209.85.208.65]) by dpdk.org (Postfix) with ESMTP id E152EF72 for ; Tue, 24 Jul 2018 12:10:07 +0200 (CEST) Received: by mail-ed1-f65.google.com with SMTP id o8-v6so3595851edt.13 for ; Tue, 24 Jul 2018 03:10:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=UIvD/CBBuc9thyHmWsZNwreH1i7OBkzRhP/i5fmRzyM=; b=SxTLY3WNmGVRKWk4J9JsFEMW4mv1d5te8FPhzylXaUJ9Qfd15rNKzk6SsfcorjYEbl ZPO+iToTKSMFCSs2L9ujDSy13zSxNF+UnMRyIGfCa/3mFsywZss+ZMfZRTIy6KkRIibO woZllzEBg3HCCjPWlRXQJs1fPhprP6XxjmLZK1F6GNt2Kf/APU4WZ7JDjQQBdR/Yzd1u VAOEB7BU58eVNt1JqzdfpK2TiRuanWXsC/4k572tJvVd9UITh6ZuurDdLmLjccoNft0q CnOv7YW3b5Z+MVOUJALfboajpLX+ElClH57u+q/sNn784w1tmag/VHxm6TEt6k+VuXoE bwVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=UIvD/CBBuc9thyHmWsZNwreH1i7OBkzRhP/i5fmRzyM=; b=nOynJO2Xt6tlnTO2z/kGI4cDp7a2TY77jGlxCeR3DMfpJzRsoYthCQmwAym8eGW1H2 gyBpOA5TtoR18lcYC+IfZXHgIsg8z7wuySv3oLHir732mLnWN2tAuaoyF1yGTQI76/3u AxZmtW1TXdYqFL6t12YFvW7pGM4ROYX20SOQys8wu7alpg6qJZxqdR+B28SoH6KoQmjm eEL5JzBAiFF0j9AY9WwJKFQTTpAZER3HrMBFmBmJL5qDzlaVKlNj1TJ3CV/hh6Ic3QXo oH3hpmDtNs95NmIHOdjsv5xGNLOYrlPzcYFvdnCXWyVlOtK8YI5qJpAnRRfJ1s+HGFUH bygQ== X-Gm-Message-State: AOUpUlHI8E1hhn0P6Vmu5Jkn8W7UBpKBno9PFyYnD2q480SlYGk81xZQ 5q4HWzFsN4vX5kmy2/R1BlTquHPtK1sL4G8G9BRNl8vc4v0= X-Google-Smtp-Source: AAOMgpdPV46Xcy+SDauOTypTS9D/L8Ker09yVqYdtuEyrS6+kPu9knkgL2svhWENBQKUG9DZ60ULvwGPQ5ftBtwn0Qs= X-Received: by 2002:a50:8e09:: with SMTP id 9-v6mr17328328edw.101.1532427007391; Tue, 24 Jul 2018 03:10:07 -0700 (PDT) MIME-Version: 1.0 From: "santhosh K.S" Date: Tue, 24 Jul 2018 15:39:56 +0530 Message-ID: To: dev@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Accessing "device_id" from "rte_pci_device" 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: Tue, 24 Jul 2018 10:10:08 -0000 Hi, I'm currently trying to migrate our old DPDK 16.11 version to 17.11 release. For this activity, I'm able to build the 17.11 DPDK successfully. When I try to use the new libs, I noticed that few of the struct members which we are using in our code is moved to some other struct. In the 16.11 version we were using "*rte_eth_dev_info_get*" API to get the device_id information using "*rte_pci_device*" struct which was initialized inside the rte_eth_dev_info_get() API. But now in 17.11 "*rte_pci_device" pointer * is not initialized inside the ret_eth_dev_inf_get() API, that is because rte_pic_device is no longer a member of the struct "*rte_eth_dev*". Hence I'm not able to retrive the device_id from "*pci_dev->id.device_id*" Can anyone please point me to an example code which illustrates the same? I've already googled and got this link . Which unfortunately doesn't show how to extract the *device_id*. Best Regards, Santy