From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) by dpdk.org (Postfix) with ESMTP id 6FC8B1C01 for ; Wed, 25 Jul 2018 12:28:32 +0200 (CEST) Received: by mail-ed1-f48.google.com with SMTP id k15-v6so6772082edr.3 for ; Wed, 25 Jul 2018 03:28:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=B95iVKm5Pjq/wLIG9gf7JnyOH0s81a9ERQsW5FMBtD8=; b=OHtVrZA7OpmJ+YduF7M2FNRGikJjt1ds7/rsLADNRmFsej3prBWCPHZmsoHTB8oViS 7+GQFrVeVEdDkpQ+/HsHk8o5/NIOciVYWHaBapgiUx6R/Op70ao3KRZ+YiZR0WGR7NRT 8Z/UkJQy/EDfx2lqCmWXPDPUQJQN6P9MWqm3/L2I8t0LbM2YzYuvT+fMvSMwi6L7u8qO GWf5w8NAYIg6CRTz3tOdcwIBZDhlOIdZINQ9tfMmB79NyGkU3Nd9jXhYDMqJug514KKC rq0b1A88bXeltH8Jl4Ygwm7sj8oGk5kyylygVNJRrdRCqCoheJaAKToMozHSZjRNp9mK pYvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=B95iVKm5Pjq/wLIG9gf7JnyOH0s81a9ERQsW5FMBtD8=; b=fibmbK2xLQmQ7LzvSVinVoFcoZLuI8M5SW/vUJNdKnNf7Sc1V0+k3y7ayAAeKcZs5e Mu8ks3scbEGrNUaL0y1oHElzAbYOoqegeGMMo71tzRBjlbCq25y6NZWrMF7Xg0/qzWBA MrmTSq1NQG0clvFrGYYHZ1Yu6418qlCT0EVCj62crQv6L8BJRVcOxP+60RinDT7ddYGO VUE8IamRZyYUhcNs3u3KansRWHcsxkS/jPJzgnP3WCXBwAz4w6+1kreTzfS3mhyZa4o5 6ulayPfeQ4w+K0zj+dqkqpeymcwi/SrhgwtboZHVQMJe56vt1O0xPap2OtFiRsfykla1 /tqQ== X-Gm-Message-State: AOUpUlF88rlJ87UbwVNeLw43hs6H+woGXzpBGhswqxhPMjfvdF8881CA V3/0yV4bwGpnvbHFHYBDz3JbPoAiEskeNOr5JEj+Fhtf85E= X-Google-Smtp-Source: AAOMgpc6JK7B1ywpR1TZjq/BdfI/7l6caZOthnrByFn9O3VafUocBZEezoUL3IgzJrPCXNVuER43U9z2MLgp7EAQxSg= X-Received: by 2002:a50:d989:: with SMTP id w9-v6mr23251278edj.63.1532514512020; Wed, 25 Jul 2018 03:28:32 -0700 (PDT) MIME-Version: 1.0 References: <9B0331B6EBBD0E4684FBFAEDA55776F9673376EC@HASMSX110.ger.corp.intel.com> <9B0331B6EBBD0E4684FBFAEDA55776F967337C28@HASMSX110.ger.corp.intel.com> In-Reply-To: <9B0331B6EBBD0E4684FBFAEDA55776F967337C28@HASMSX110.ger.corp.intel.com> From: "santhosh K.S" Date: Wed, 25 Jul 2018 15:58:20 +0530 Message-ID: To: rami.rosen@intel.com Cc: dev@dpdk.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [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: Wed, 25 Jul 2018 10:28:32 -0000 Hi Rami Rosen, et al, Thanks for the response. Yes I can see in the code that rte_device struct is part of rte_eth_dev_info. I tried to apply the patch you pointed o n 17.11.3. But it failed at many places. We don't want to migrate to 18.05 as it is not a stable release. I've been asked to migrate to a stable version only. I also noticed from the release note that *rte_ctrlmbuf_init() API *is deprecated in 18.05. Which results in breaking our code, which means more re-work; which we are trying our best to avoid at this point in time. Hence We are not interested in migrating to 18.05. Can you please suggest a safer alternative patch, which I can use to get around this problem? Best Regards, Santhosh K S On Wed, Jul 25, 2018 at 12:11 PM Rosen, Rami wrote: > Hi Santhos. > > > > >There is no member named "*device*" in "*rte_eth_dev_info*" struct. I > looked at both 17.11 API documentation > and 18.05 > API documentation > . > > > > This is not accurate. There is no =E2=80=9Cdevice=E2=80=9D in rte_eth_dev= _info > > In 17.11, but there is a =E2=80=9Cdevice=E2=80=9D in rte_eth_dev_info > > in 18.05 (this is exactly what Ferru pathc did) > > See for example: > > http://doc.dpdk.org/api-18.05/rte__ethdev_8h_source.html > > > > and look for the first member of rte_eth_dev_info: > > > > truct rte_eth_dev_info > { > > 1055 struct rte_device > *device; > > > > (Or download 18.05 and look in the header file) > > > > It seems that the 18.05 API documentation > is not > complete, > > should be fixed. > > > > Regards, > > Rami Rosen > > Intel Corporation > > >