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 B3464A04FD; Tue, 14 Jan 2020 13:36:05 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D7F041C0C7; Tue, 14 Jan 2020 13:36:04 +0100 (CET) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by dpdk.org (Postfix) with ESMTP id 369C61C0C4 for ; Tue, 14 Jan 2020 13:36:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579005363; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NUpORjlsf/AE2Su3vCxjDxwXt5mCEAvJNtugIkOa3+Y=; b=YQZoWSNlTjDDuI//wafQnHSn/CQ1lfW3ekjO4dPgqB0LbPVaC/eHlJRqqvzT1q5sWoRTEv D+0cgR820Tktb5x13E/Ox95g+foRQx3ENpQi9MjsQPPX48WlY8VzmqQHkvjSCK8dQxDC0D geBvJJeiV8cBqoq5fjy4L/f/wTLh8z8= Received: from mail-ua1-f70.google.com (mail-ua1-f70.google.com [209.85.222.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-355-NOBo8iHaN1iv9NjTs3t-fA-1; Tue, 14 Jan 2020 07:36:01 -0500 Received: by mail-ua1-f70.google.com with SMTP id x9so2082800uaq.9 for ; Tue, 14 Jan 2020 04:36:01 -0800 (PST) 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=k161dwl/y3Qe6hHwGO7NVVwlYrZg+8sD9+Un2c5RqJY=; b=oHwA84/2t+Eybjz+Im3D9vwPaYvkU56gX3dYnwFQUFt5/39zor8WpKQDWThSyF+0Ck 0K+Yw+Ncev3pKrgOYXpfIYNlIt26vmv5sc1RcuWpFNgniYxWkOkfYXw6t4gEcMDiWPBO Ff5rpiqTxAGpl1GLXh1L8xVHcqnevEfmLG+Oz6Kq0zIwnaW2x/lenYivkeyWmqSLe9tS 7Z7273SgmHPry/4DUgAxR0kS/jej85Yx72sCnZdVbH89k9EmglMjORmxlwU6IunBMsLC ptk1kUkAybAN1dgwju2CGFFI9ot5lNiKJhL3cJNHIHQDWbLLwIulciXvD8deSlwmIIqY 3qVA== X-Gm-Message-State: APjAAAWOtpP5h+pNojgAgTPt03uUnctu1xcfienwIDCr9DO5WySnWXJW +PMWpeFf0Mb+JG2+ffhKCJ9XXz4FSP9J2Om3tA9w18OIWl4axQ5NkfBFxJAm2HDVYB++6KwCxOx ZLvqiE7ZoZVbsQ400H0Y= X-Received: by 2002:a1f:4104:: with SMTP id o4mr14209409vka.80.1579005360779; Tue, 14 Jan 2020 04:36:00 -0800 (PST) X-Google-Smtp-Source: APXvYqy6PwuTvZX0VGsjhBeZ5brRJKfiwxl2H/oQjBapPiRKtweZFj0+MZL5SopWctKS8JlwWg72qsP2GOaQ6mwed5o= X-Received: by 2002:a1f:4104:: with SMTP id o4mr14209393vka.80.1579005360474; Tue, 14 Jan 2020 04:36:00 -0800 (PST) MIME-Version: 1.0 References: <20200114173019.14097-1-Selwin.Sebastian@amd.com> In-Reply-To: <20200114173019.14097-1-Selwin.Sebastian@amd.com> From: David Marchand Date: Tue, 14 Jan 2020 13:35:49 +0100 Message-ID: To: Selwin Sebastian Cc: dev , "Yigit, Ferruh" , Thomas Monjalon X-MC-Unique: NOBo8iHaN1iv9NjTs3t-fA-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [PATCH v3] drivers: add a HW quirk for register definitions 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" On Tue, Jan 14, 2020 at 12:58 PM Selwin Sebastian wrote: > > V1000/R1000 processors are using the same PCI ids for the network > device as SNOWYOWL processor but has altered register definitions > for determining the window settings for the indirect PCS access. > Add support to check for this hardware and if found use the new > register values. > > Added a new routine rte_pci_search_device to pci driver to search > for a device. You can already iterate on a bus devices. struct rte_bus *pci_bus =3D rte_bus_find_by_name("pci"); return pci_bus !=3D NULL && pci_bus->find_device(NULL, callback, args) !=3D= NULL; See: https://git.dpdk.org/dpdk/tree/drivers/bus/pci/pci_params.c#n38 --=20 David Marchand