From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0068.outbound.protection.outlook.com [104.47.41.68]) by dpdk.org (Postfix) with ESMTP id 76BD310B78 for ; Wed, 21 Dec 2016 10:51:16 +0100 (CET) Received: from BN3PR03CA0108.namprd03.prod.outlook.com (10.174.66.26) by CY1PR0301MB0747.namprd03.prod.outlook.com (10.160.159.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.789.14; Wed, 21 Dec 2016 09:51:15 +0000 Received: from BL2FFO11FD051.protection.gbl (2a01:111:f400:7c09::105) by BN3PR03CA0108.outlook.office365.com (2603:10b6:400:4::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.771.8 via Frontend Transport; Wed, 21 Dec 2016 09:51:14 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; infradead.org; dkim=none (message not signed) header.d=none;infradead.org; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BL2FFO11FD051.mail.protection.outlook.com (10.173.161.213) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.789.10 via Frontend Transport; Wed, 21 Dec 2016 09:51:14 +0000 Received: from [10.232.14.87] ([10.232.14.87]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id uBL9pBVM029248; Wed, 21 Dec 2016 02:51:12 -0700 To: Jan Blunck References: <1482232315-21626-1-git-send-email-jblunck@infradead.org> <1482232315-21626-8-git-send-email-jblunck@infradead.org> CC: , , From: Shreyansh Jain Message-ID: <7bba31bd-074e-ab03-b03d-d5758372b1eb@nxp.com> Date: Wed, 21 Dec 2016 15:24:50 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <1482232315-21626-8-git-send-email-jblunck@infradead.org> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131267874744614636; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(7916002)(39850400002)(39450400003)(39860400002)(39840400002)(39410400002)(39400400002)(39380400002)(2980300002)(1109001)(1110001)(339900001)(189002)(24454002)(377454003)(199003)(81156014)(8936002)(8676002)(81166006)(23746002)(356003)(305945005)(626004)(69596002)(65956001)(104016004)(2906002)(4326007)(47776003)(65806001)(38730400001)(229853002)(68736007)(77096006)(2870700001)(85426001)(83506001)(189998001)(50986999)(4001350100001)(31686004)(76176999)(33646002)(54356999)(92566002)(97736004)(6666003)(110136003)(5660300001)(2950100002)(65826007)(6916009)(106466001)(105606002)(50466002)(86362001)(36756003)(575784001)(31696002)(64126003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB0747; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD051; 1:wCHTyt8K4pRXszhYixBSY8WrfPslrEOF8whFuZYGxHEpVPbyRo+HTvz6+2Jm6+HSfF8R4GRc46KcCPAidcphqS3J4oyWoVdxKhP0U4WXbJtHEZDPxXsmcWEkXqHpx/sZjNzx5+PFz3628GB/HDQyPHrm/TddKX0mLyCBfSuNKwlxkYwp9XAju5eK7P5MaCqZFKO4JSlRhlCaL/L0BrMF3qAK+M/c77Y5o7m2pLFyoWISSfhSHOuTdwO8H3Iq8njpHRhlAZJ4mqprFjXQFgb/EWtcGAf5t5srECuvzCtpN+4iH6h/KiuA/yDQsUza+ZMv/94eyQLwEEfmGvYn4eTWWpW68U5u7Y2gpEs8sGiFy0+mL6xWAnOuBN5RnZtKmcEyq14ewZla/0L6xLIU4Sb1fhNxRATARTeA9U+rHJC0YjoSHW6tDL9rEwEXa7J6oQSGmaRaIsLJQ9afqua8zgrctC8dC6kOq4NfQSQ1k0I7ZqHesnMkGl91dUjReyjbwHPyp/mveoo/PI2Y4WPA+RGUHI4hXRFYGab7B5Z0R27st0HY7xTcIzagXJI77RvgL18hDySXgSNTGcvnSCVx/AT7cd/u/KWsbNbVYf2VPuBGL/E= X-MS-Office365-Filtering-Correlation-Id: 7dee73fc-13f2-493b-5d8d-08d42986e707 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:CY1PR0301MB0747; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0747; 3:b6VJ9NtrBiFaVQGGF4pJE5xR5K60KwBWqf+AT0wazfFajotGkYghrZUhEgnIU88SUAO77viaiAQpcJ67LowoflCmYGFalSXZKlXoCMchGluLD1wMJNriwkOr43Kp3b6l/U+sBhpcCg/t7usJr6mmmZXrsxkhSQcFss3WaLavHajNvRKpL14V0Up0vNqibcse/7si9VAgMMhbUElclcV6g67dLHF4vB9yhx3HhZYiNVjkhdr90KHBtbRhUe+TPYsUFGtYEJNX8nyhKhlx1F/3erPeLE5TJEJIbbzKEum68GK+Ly4VV24SOHNk9DeeHv6X1twLxTGgR1Z+o3/1XHcOQB5peoPBALeDtVelC0kVQeLrzTGC8Gv6G20dlZuoBFGN; 25:VYB+jgSqU/UOSIjLBG1ii6C0YUqEHjd2/+1s9XPswYcLd2GD/HMv5CisXEFNZOp3E9SKYu1pt9gKeK/P9/AkxGzpcseicsAY2cXCt9/tN6q1Q0p0OnjXkIry9rnUeGI5NzTq+OWxnt19rHpjlZZK1V1Wdyzuj591CvF/F+hurnbiHLpI1NXqImgwNVnYa4z2MLcaXlOWHcBlA8NHtiRc3T1/dqUmR0Jw8Dn16UQnQkzPA6bpuFymC9WJbjlKmhlMwF4EvPagX24dlOTM8XPDCwpPlBy1JpUqcZIXn5QIhSioJa5mdRj0rpDmGI7DE51OFqRq2DsdGXGS729zF6Jxha5u+kHlF6jESeLC1I/EDHI/pR3MaXWYy8p55aHhNb8xpRGEuihEkM1yNmoJ4MitCppiZ0pSftelRv9j3eYZ1D6PCBGujDnwrD+W57+NLL7CsMVzGVVjCHAf36p4OGgpmw== X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0747; 31:cW3yUSLrMJxZbJY0LYgNVWB6oZPfki6XAEgNeFlj8tw7dIIMIEiNG453u/EinvZKlEgAPmiv2oRt5jyPEvnfBgpDu1a85/MmQZKjUoQShioRK5Tv0g90MrHwZ/QOzWgyN8ibTl0MrCTyTV8vdgz+WpdiAokr7ZBCC6GM+8YMJ4xOqt7wN/+M1ETxOWfBGhEmf81TDO2TPeoZCCEVEAia+J/SJKcnymjWR8trrMIDA47l0Urn3ebVeTUGJZ5Al7++svKvykeaOuwdUszGgxtZ9rYnOU7mxo4W9IbEyNPNobY= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(211171220733660); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(5005006)(13015025)(13024025)(13023025)(13017025)(8121501046)(13018025)(10201501046)(3002001)(6055026)(6096035)(20161123556025)(20161123559025)(20161123565025)(20161123563025)(20161123561025); SRVR:CY1PR0301MB0747; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR0301MB0747; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0747; 4:wGedAdBh2sJvOXOA6fvOTrBdIC+YtzNGT7e4HSGYA8sp7mcRw/NjetUDDxdHXAh5nMQeCZ+mrdcfvNuCTpnw92NahEXufQkjNOmNtCwod8Z2EgQ2GO0MYnuOnUsBFcfrjH0L3j83gWO0YzrSnBmzOZTu9/g/jIVIGMak7ID56qVrIX6cc96R2w1ugHYr7NXrVVJEUayEz9RrUZsZP0Qp1IL0iT/YvH0E/I5mvWDueeqDocTtPQ6e5zVw68QrzUldrojICKsV3AIlK5tN4jfnHvk9Nn5BSgcqraa6Z1oROqdyh3605jXyISf0CoPk8hrYs/iOPCYtTXeiIQv4oDBFxGU+nmSr1ph21u0B2/8h3GLrgWALOmParoQY06XEOl4xJ2ci9OwOtOmTikUspLC5SVEL6wVdCYgl9P18eoqODzTrBybyjK1FPpVFwXeU4d4bQvaHhlXBe4qmpIXfcHLjOuymNjraxqPCCTuCeOxldFBEvDmD4x7n9cVk+aGX/AkCIsyrdsQ2txKuA6ZVbDE7+9l44DxwnVXwXJydZQB/+5gzsZcschNn2cAjHjOPVg4xLAj48kLFVeWbm3s1LRPenoE8vGM9sfysLzgzI8x4OhC10ZYPzdO8gA82pVtIyNpi+hOoG87baOOVTz6o2JTIci65Xj5NRnNKoPtRjMF17lu1o2T/2N2FKkFn/57xMt8Bd4MAm4/Me9arriOipT48iKd2kvsDkIHK2HXVdZBASUDhL30UDAygDRo3XFsMFMi4 X-Forefront-PRVS: 01630974C0 X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; CY1PR0301MB0747; 23:B2xpjmZGemPh71GSJ955dq34ccaRmhWdOtr?= =?Windows-1252?Q?0Cw+3fQhqenxsNVxsPddAW3tDvr+VJO4W9ShtzPHG71canxuXsN0GHXh?= =?Windows-1252?Q?suc8bsPfSqXqShRlXH2//WhtLPbZwlbQjgiHHZi1OnDU7SaUOJKltLTe?= =?Windows-1252?Q?dh+8JMijKoY6V+REa5AhTzIinnBIICJ8VpGQ7eOAHeyeUhL3+nJRSNfi?= =?Windows-1252?Q?C7pRHrm9EFABVxLsQSvDV5n2JvFizZKdduA1Oz196LlivVFlpZiFEBpp?= =?Windows-1252?Q?38pRTWgtWZZKdJhSnLj3WUtOYf/L3gS3i2DnmfLXodc2iMZzvQ5At6JK?= =?Windows-1252?Q?qA3e1s4abfITnInDWAQXgX+DeOyy2JqT+vjQRXWA4UYJ1xwntcDGEalA?= =?Windows-1252?Q?uLT2Lmk1bzWKSW/+pmEBJPYyyFt3Zlrqa548Gu34gfWnQfxHBflaUWlk?= =?Windows-1252?Q?4hbE1rsbP1wBili6bxPEw2nlpBdanB3zm8bJSvPV4WUnZVc9JpUq/oAy?= =?Windows-1252?Q?M/U5996oIo2MyUYd9zcQSSipFZFp/sNW0srlwfDh11QqOgR9Bkm3gPYn?= =?Windows-1252?Q?boET4B5OsLD0eBKVUnvNQrdI9dY296Zp4lJ4kSL0fGrPGLhk7Ivh/jKq?= =?Windows-1252?Q?DkIRJ9ah58lf7VKLsssVpmfuZjmdHT9iwVeAxXpoSoBAxseqex+WgHJi?= =?Windows-1252?Q?RQi9JgoDTr1+6f8d2OX/ODBRYUcii+M0UUlH9lC/HkqZfX31ZitcmzYc?= =?Windows-1252?Q?tnZngof3WYFqJxBuCoZ7jEVUBcm3T00FeW0P8uoDI9V+a5a/CJZu+1Ic?= =?Windows-1252?Q?fkABJ3uaFUNQcD41kdGdGlt9Pjhn8nSeRd+T4aUn26RsKdElcxUo1ypm?= =?Windows-1252?Q?Zzn+5UjZYpW44hpzbskx5xXxTBgkhbxrHfZlvCxzMRQv3n6OrwDCe8s1?= =?Windows-1252?Q?7tuI9WHVZtRYSUwHOngsUGwBZVLUkIvVlWdE4ghlmjXTTeIX9Bt3CBLL?= =?Windows-1252?Q?fla5453f/8vUdl3Aw3MMAOmRODRPrO56OPDAmBOMRSV1GHNs468ck9Xu?= =?Windows-1252?Q?zkyiBXtSVRHMu9c3pNa4KnaaUs32a2drZ5wmTo/nL4qm6+hvXYPFJFVL?= =?Windows-1252?Q?f7XRp5FpjIxK9jjFjsPJyiXGYBJ0oQFMdh5LRi/i/m7RyfwVA1FIkkGe?= =?Windows-1252?Q?McQe3KO5yNNwQdcfqg9MkE0sIhs0NJNgHuqoaTQ2uam2yem4cUjp/j7Z?= =?Windows-1252?Q?QTzXE9/UD2hWQZ6EZ4vtxAd8fzw2z6QlAXeIGM9468zKnJG6hcxpdXyU?= =?Windows-1252?Q?qe9UzDEJYWjhlUszczxD3iU2dFN7kKzP/NBaQntr74F0/1Z4cCLJbYBV?= =?Windows-1252?Q?JRFJjc2+peUi9X2SdSlSl8wfusAi5BovdVkc/upY2tgMA36QbUV/zfNg?= =?Windows-1252?Q?h4rviYhW01TDfE3hi5FgLn7O6AO8qdUd1pAQ26fnkLilb4XeYufBV6ZI?= =?Windows-1252?Q?BRpRjD8WfJSFt8kAW1v1bIrj1ynIsjEJO2zI0HeanJ+b+9AnKBX1kZBq?= =?Windows-1252?Q?qoChqECsT4q3N5GQQ+5JEFQiIlNMLtsFvpABAzfSylVVpFtqNv53V4Ek?= =?Windows-1252?Q?WAi+gpML0p31b1FKSi4ZrVF4dIXSWeTRhlrTbmXrcsdYM?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0747; 6:KGpWWMsqWmZiBIQH0/w5K3hKIBdFAxBZT+nIwqdGJzKUaMEuU7lWCZReEIuoNJJV9B34cWSKWDnw09fhr5u/Ri5EAADd0jR0S+vsBJcUcviAzZ9H2UxdVIFhUvoG/iZH1ibokF1aKnlrWED7zlO88b9sCX2JpcAeqhmx8sNkzqlpPzu0/uV88iJb9zT3ijZThTPh8B6zr6pOCU9rT4TU/NqgCdSaDvNvpF5HgEkcCuM3uYnJsKBLrRKvvz5N3Ru0bbkWOJOT9gDQcDo3AmAoVLQelH3lHkckaDXKvqS0pZ081u9nutFRCzlRNDNt//DL6abWqJknAkNhuj0m7J7uN6LNJarPGOBa1D9VE/STRI9BNdXRcRppKc/igNo2mrP5QFMufNtxalC/pts/8uOgdxetFK6E01fywBR9xcuiyzkQ0+7eUNNEMyE/9C3t3a9p; 5:SRwcMf+FQsaUBmaXgMmfGgkEFFENKVeK63u0d8A1XOp3pLZ7B1nCWvs8Qyyin9nn7DNwod/HF6HlSPR9RI09MshHBnKe6QU1PUciYJvotbtGWqikeOlDQEU0BAHsJSsziDEaVwp37oqdPwkWXv2EE3UFQ+Z2ImZIZzxx7rL/gFF0+w8824AsP1oFCLC10xfW; 24:QJSVB+uvPuewTSbix/6+yJdKP/LOWksQkB/50FnAMXh/2DWNUmK7bPxcD/E5NKgs0nnsdRb/FC2LBUxJ7btpQaW3ystskCCDb9uhNeBbJ0E= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0747; 7:lj6LGQsu6B+flYdfdfvYK4vZ+SF+tRYrZ5UzXmMkwy8fnsJ0YUGTzcakPUJbH9a6LsjXmaJI+nhDBbpehEbObrESKDChzz1XCv93wEt5/WsC32buPZJJtujUwRVGrU15oErQJW0dfwzewgsh0BjUcrOSee0cr/yYE1ICcMFrQtn47R2yP0Gblkx5sZLNkJY0Xh3uFN6TFpj/zrngyQI56wGcSMck9KSTKkGr1niec0aIOvI6/GRigJh6FR8PM3Qg2TP07mYIIxnwKEGc/Ptg2bxr5pSeGf2fU+mGsRUk2QY+SfMNgmrDfzIB/Vr9GSq3uz4Xbv1UCiCGvJ6oHsReW3w4PMzViAenZinXt56pHl2FXwkdCyupCMzfVGoo9rvWOMnQ/p4+Y9DcLaC1oMxAUXWC0aywSazrTLDkk6Hv+E+bpVJYPkX+7RKCsCAVNtMS40/qVQiZm973l+lspVTnAg== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Dec 2016 09:51:14.2274 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB0747 Subject: Re: [dpdk-dev] [PATCH v3 7/9] ethdev: Move filling of rte_eth_dev_info->pci_dev to dev_infos_get() 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: Wed, 21 Dec 2016 09:51:16 -0000 On Tuesday 20 December 2016 04:41 PM, Jan Blunck wrote: > Only the device itself can decide its PCI or not. > > Signed-off-by: Jan Blunck > --- > drivers/net/bnx2x/bnx2x_ethdev.c | 1 + > drivers/net/bnxt/bnxt_ethdev.c | 2 ++ > drivers/net/cxgbe/cxgbe_ethdev.c | 2 ++ > drivers/net/e1000/em_ethdev.c | 1 + > drivers/net/e1000/igb_ethdev.c | 2 ++ > drivers/net/ena/ena_ethdev.c | 2 ++ > drivers/net/enic/enic_ethdev.c | 1 + > drivers/net/fm10k/fm10k_ethdev.c | 1 + > drivers/net/i40e/i40e_ethdev.c | 1 + > drivers/net/i40e/i40e_ethdev_vf.c | 1 + > drivers/net/ixgbe/ixgbe_ethdev.c | 2 ++ > drivers/net/mlx4/mlx4.c | 2 ++ > drivers/net/mlx5/mlx5_ethdev.c | 2 ++ > drivers/net/nfp/nfp_net.c | 1 + > drivers/net/qede/qede_ethdev.c | 1 + > drivers/net/szedata2/rte_eth_szedata2.c | 1 + > drivers/net/thunderx/nicvf_ethdev.c | 2 ++ > drivers/net/virtio/virtio_ethdev.c | 1 + > drivers/net/vmxnet3/vmxnet3_ethdev.c | 2 ++ > lib/librte_ether/rte_ethdev.c | 1 - > 20 files changed, 28 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c > index f17da46..c88b7bf 100644 > --- a/drivers/net/ixgbe/ixgbe_ethdev.c > +++ b/drivers/net/ixgbe/ixgbe_ethdev.c > @@ -3043,6 +3043,7 @@ ixgbe_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) > struct rte_eth_conf *dev_conf = &dev->data->dev_conf; > struct rte_pci_device *pci_dev = ETH_DEV_PCI_DEV(dev); > > + dev_info->pci_dev = ETH_DEV_PCI_DEV(dev); > dev_info->max_rx_queues = (uint16_t)hw->mac.max_rx_queues; > dev_info->max_tx_queues = (uint16_t)hw->mac.max_tx_queues; > if (RTE_ETH_DEV_SRIOV(dev).active == 0) { > @@ -3175,6 +3176,7 @@ ixgbevf_dev_info_get(struct rte_eth_dev *dev, > struct ixgbe_hw *hw = IXGBE_DEV_PRIVATE_TO_HW(dev->data->dev_private); > struct rte_pci_device *pci_dev = ETH_DEV_PCI_DEV(dev); > > + dev_info->pci_dev = ETH_DEV_PCI_DEV(dev); > dev_info->max_rx_queues = (uint16_t)hw->mac.max_rx_queues; > dev_info->max_tx_queues = (uint16_t)hw->mac.max_tx_queues; > dev_info->min_rx_bufsize = 1024; /* cf BSIZEPACKET in SRRCTL reg */ > diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c > index da61a85..5455fea 100644 > --- a/drivers/net/mlx4/mlx4.c > +++ b/drivers/net/mlx4/mlx4.c > @@ -4421,6 +4421,8 @@ mlx4_dev_infos_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *info) > unsigned int max; > char ifname[IF_NAMESIZE]; > > + info->pci_dev = ETH_DEV_PCI_DEV(dev); > + My compilation environment is reporting following error: --->8--- /home/shreyansh/build/DPDK/01_dpdk/drivers/net/mlx4/mlx4.c: In function ‘mlx4_pci_probe’: /home/shreyansh/build/DPDK/01_dpdk/drivers/net/mlx4/mlx4.c:5843:10: error: ‘struct rte_eth_dev’ has no member named ‘pci_dev’ eth_dev->pci_dev = pci_dev; ^ /home/shreyansh/build/DPDK/01_dpdk/mk/internal/rte.compile-pre.mk:138: recipe for target 'mlx4.o' failed --->8--- Exact same issue exists on MLX5 also I think: 1d [shreyansh:~/build/DPDK/01_dpdk] tmp/jan_patches_ethdev_21dec(+11/-11)+* ± grep "eth_dev->pci_dev" * -rn drivers/net/mlx5/mlx5.c:660: eth_dev->pci_dev = pci_dev; drivers/net/mlx4/mlx4.c:5843: eth_dev->pci_dev = pci_dev; (I don't yet have MLX5 compilation env - so, above is just my guess). > if (priv == NULL) > return; > priv_lock(priv); > diff --git a/drivers/net/mlx5/mlx5_ethdev.c b/drivers/net/mlx5/mlx5_ethdev.c > index c0f73e9..489a4f6 100644 > --- a/drivers/net/mlx5/mlx5_ethdev.c > +++ b/drivers/net/mlx5/mlx5_ethdev.c > @@ -562,6 +562,8 @@ mlx5_dev_infos_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *info) > unsigned int max; > char ifname[IF_NAMESIZE]; > > + info->pci_dev = ETH_DEV_PCI_DEV(dev); > + > priv_lock(priv); > /* FIXME: we should ask the device for these values. */ > info->min_rx_bufsize = 32; - Shreyansh