From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B35E0A00C2; Fri, 1 Jul 2022 09:22:08 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4A0BC4069D; Fri, 1 Jul 2022 09:22:08 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id D148C40694 for ; Fri, 1 Jul 2022 09:22:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1656660126; 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: in-reply-to:in-reply-to:references:references; bh=OXs6TvD1oeZyl2ehrPZ05i4d7C9aIFqMG3Czy4zbxtY=; b=h/H9LIdIqbMtPNFFkv1jIVam+xpvxaEI4vhc2fvZU+Zi3L/z248cp/RHvpKkvbgLAbXDJK jYGvSqX92gbQl52nMK6WGRWhqBT5wV6DM1E0yY3cRAewsR4ft0ikSTth89sjrBvv+N2rdO nHP+ZYaP2jxhWMVUiCdhgcbxpBlWbFA= Received: from mail-lf1-f71.google.com (mail-lf1-f71.google.com [209.85.167.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-93-eYrvhyFPPo-OZIqgDMdhBQ-1; Fri, 01 Jul 2022 03:22:04 -0400 X-MC-Unique: eYrvhyFPPo-OZIqgDMdhBQ-1 Received: by mail-lf1-f71.google.com with SMTP id y35-20020a0565123f2300b0047f70612402so742386lfa.12 for ; Fri, 01 Jul 2022 00:22:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OXs6TvD1oeZyl2ehrPZ05i4d7C9aIFqMG3Czy4zbxtY=; b=WUdpUL8Fr0iKnNqdcaCLPspvRu0/o1B2g3k+htS6H190tZoEw4nkjtpRNVS1uZIqT9 bl3s9bpHfi1XrnVX0vbOdt3le5pXNP827/vIrX7Yt5zfB6tO5JG4xPXrYzoS93X3iAL6 0U4vEmMQrmtR+uVdKG4bDEmULhmFdw+capCw04029FeDVFQsdek88fSepFEIkv+Cm1x7 /nAsqM9KyKD1dFsQGvx2CxUXfGdKpOyc6s+EQpPRlhJAhJlFIzaddS9SohpFNtN5jrH6 7b//loecqST+ttsxp2wckNL/41oigTYc5X7K3PEf9mnxOtRD+FEXqiA/uzPuMc5pFKLz I3NA== X-Gm-Message-State: AJIora+jZk0TUbksa+gv6rzwnWbrTNHTvQGhSVj0oWcfaLX3zpTgPMWR H3SHKFg/3lp0T95kK90AwLrW3e56qlindhMHZ+m1/yDMqj1sML8RNtXAeQqd6zt3TldgDxNZG/C bopoEGPK1ry0k8haYBqo= X-Received: by 2002:a05:6512:280c:b0:481:2fa:2816 with SMTP id cf12-20020a056512280c00b0048102fa2816mr8711870lfb.484.1656660122499; Fri, 01 Jul 2022 00:22:02 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s81LTFTNS+kVbmXwcihowJRUl5gF/lInriP/nx155/mScDgwjJElHVPmDiHNXkLKziF4QA7xiqF0zl/uv2l7g= X-Received: by 2002:a05:6512:280c:b0:481:2fa:2816 with SMTP id cf12-20020a056512280c00b0048102fa2816mr8711860lfb.484.1656660122322; Fri, 01 Jul 2022 00:22:02 -0700 (PDT) MIME-Version: 1.0 References: <20220630094129.2066164-1-david.marchand@redhat.com> In-Reply-To: From: David Marchand Date: Fri, 1 Jul 2022 09:21:51 +0200 Message-ID: Subject: Re: [PATCH] doc: announce some raw/ifpga API removal To: "Huang, Wei" Cc: "Xu, Rosen" , "Zhang, Tianfei" , "dev@dpdk.org" , Ray Kinsella Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Fri, Jul 1, 2022 at 9:16 AM Huang, Wei wrote: > > What is the PCI bus used for, in this application? > > > In this application, target PCI device is Intel FPGA, it supports some special operation like removing it from PCI bus and rescanning it back from PCI bus, > So there are two things need to be done directly on rte_pci_bus: > 1. Rescan PCI bus > pci_bus->bus.scan() > 2. Get pci_dev by specified PCI address, and remove it > TAILQ_FOREACH(pci_dev, &pci_bus->device_list, next) { > if (!rte_pci_addr_cmp(&pci_dev->addr, &addr)) > return pci_dev; > } > .... > pci_drv = pci_dev->driver; > pci_drv->remove(pci_dev); Can't this application use rte_dev_remove and rte_dev_probe? If not, we should add the missing parts in the API. -- David Marchand