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 7D370A04BC; Thu, 8 Oct 2020 18:26:26 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5D9411BA86; Thu, 8 Oct 2020 18:26:25 +0200 (CEST) Received: from mail-io1-f65.google.com (mail-io1-f65.google.com [209.85.166.65]) by dpdk.org (Postfix) with ESMTP id B45D61BA86 for ; Thu, 8 Oct 2020 18:26:22 +0200 (CEST) Received: by mail-io1-f65.google.com with SMTP id n6so6802545ioc.12 for ; Thu, 08 Oct 2020 09:26:22 -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=v4leP8wY24AoYD+dJx9jZiMOW6bajhKTj55Pg6rKM4s=; b=B6WJ4bdROettQblmYJzqV5znNKkooxUuv+3WLnoSiNdzctptE59Dc9wLKhZHSRBiYx bOmAZqakGkE6SPvom/xTkkZwee1YHsit3w/br8tou/lWg7bdieDicVwULJvUuaMAgicr F9A1pEcpFHy4NJtekSzh+3UlNTIabYRQdTQRyLEjDQ8okXrqPQ9JwKhulhtshWrX/Jnl FwCqYrUWGL4cfYYGxR+WZgaZLbvCBf1hdeH7z0/3jhD9ailMhqX1/G50vG1u+x7c688g VxKOZd0+tZU/MijVw+8bnn+8ntAutJSwGLlx1j/x6uAEgJ9Tr1tl6QHaGFg7JE6FOsTZ 405w== 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=v4leP8wY24AoYD+dJx9jZiMOW6bajhKTj55Pg6rKM4s=; b=ddpJLRVjEpkqGfGjPEIxEJC8y9C0EvY+RaGvckv5L3WyLuaWitf21mQlD2W2QqTcx4 S5GofoAbfOmRIGJEmEuiAJry5mNvgEKi3YnsJ3uMr+R4ErF57pDwBuubyw3NAc+wT5Xj IHZ4bMZ3TIneDPntOo0ikIRVEBXtSIuE+RNo87miP37esiCGuyddvrOrtZDhvA+Oy218 N0O3RSc05uWOFYMpLaDB0Zi8rkfJD4AgXFEJGFMuFenozbI3Nszw3Uf+Knso3e4hY7lf ChiCJoOUFyWbEVxGuwrbiWBpqeXspME9BfwBv0IYjEewHvaWzbgUihe4u5MX7W/1qtku MdYA== X-Gm-Message-State: AOAM532HJoZL/0IgCVgTZ2K9Ha5shSzjJnBArcoIziW7GtZAzyDwSxTO JbsY06nQzI9qbID+HMa9Y43juT1ObHSR/yinv1c= X-Google-Smtp-Source: ABdhPJxRcOhBk1HVA5aqNmHCqLYzy+yiimDxjtsgfDPtfjfw64AfPmtwXkTPfgeujygAYIEuQKDGqNREuqq/Q4qpgPw= X-Received: by 2002:a5d:9615:: with SMTP id w21mr6521459iol.59.1602174381176; Thu, 08 Oct 2020 09:26:21 -0700 (PDT) MIME-Version: 1.0 References: <1601928759-26696-1-git-send-email-timothy.mcdaniel@intel.com> In-Reply-To: <1601928759-26696-1-git-send-email-timothy.mcdaniel@intel.com> From: Jerin Jacob Date: Thu, 8 Oct 2020 21:56:05 +0530 Message-ID: To: Timothy McDaniel Cc: Jerin Jacob , dpdk-dev , Erik Gabriel Carrillo , Gage Eads , "Van Haaren, Harry" Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v2 1/1] eventdev: add PCI probe named convenience function 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, Oct 6, 2020 at 1:41 AM Timothy McDaniel wrote: > > Add new internal wrapper function for use by pci drivers as a > .probe function to attach to an event interface. Same as > rte_event_pmd_pci_probe, except the caller can specify the name. > > Updated rte_event_pmd_pci_probe so as to not duplicate > code. > > Signed-off-by: Timothy McDaniel > --- > lib/librte_eventdev/rte_eventdev_pmd_pci.h | 44 ++++++++++++++++++++++-------- > 1 file changed, 32 insertions(+), 12 deletions(-) > > * @internal > + * Wrapper for use by pci drivers as a .probe function to attach to a event > + * interface. > + */ > +static inline int > +rte_event_pmd_pci_probe(struct rte_pci_driver *pci_drv, > + struct rte_pci_device *pci_dev, > + size_t private_data_size, > + eventdev_pmd_pci_callback_t devinit) rte_event_pmd_pci_probe() added in lib/librte_eventdev/rte_eventdev_version.map file. Please add the new function in the map file. With above change: Acked-by: Jerin Jacob > +{ > + char eventdev_name[RTE_EVENTDEV_NAME_MAX_LEN]; > + > + rte_pci_device_name(&pci_dev->addr, eventdev_name, > + sizeof(eventdev_name)); > + > + return rte_event_pmd_pci_probe_named(pci_drv, > + pci_dev, > + private_data_size, > + devinit, > + eventdev_name); > +} > + > +/** > + * @internal > * Wrapper for use by pci drivers as a .remove function to detach a event > * interface. > */ > -- > 2.6.4 >