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 54C53A00C2; Wed, 19 Jan 2022 20:13:22 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C505F4120A; Wed, 19 Jan 2022 20:13:11 +0100 (CET) Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) by mails.dpdk.org (Postfix) with ESMTP id 1144C411E1 for ; Wed, 19 Jan 2022 20:13:11 +0100 (CET) Received: by mail-pf1-f169.google.com with SMTP id i17so3136341pfk.11 for ; Wed, 19 Jan 2022 11:13:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atomicrules-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=sovRTlGi8ffMJJsPzFGMDD4Z/UKOg9uwAIC6tnH9qsE=; b=K6rHv4qlmkghsVy8QK4/ElEe/Qw+TGS4+weXMNBdOVuvuGrTwQhrDI6NDTygqSJTcf YctB88emdsTAy/PoDyTGeoxt9ihqdyks6BOwksyxAC1QBH2msGFuYNhSkUcxPXrwD9Ob Idn0u+ijyHrEaIeZBWkQVd4JhMDinkRaf/S7tt1tllDp0RUHhSfcKeUZKEyIhOG22nwi qE7pT4w4O3jWD6C/lHiDHqCGFyqCMRxqqkC25ZBPmJ0lkPbmXXh8AElzlO6cJhJuItuV KOiM8X5PGydZCXsR26W4YiljmtJtN5P5gGwpABtES79fIncqUXKX/pXJo/piXO9y4Qzr EwfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=sovRTlGi8ffMJJsPzFGMDD4Z/UKOg9uwAIC6tnH9qsE=; b=xbccR2xFUDQ9ngDHkCwm5c3x2n8xLsA57+Fcs1qTtzrQWudKWykUqcYeSNMRrY1q08 gnucl4iELoNU9Cn34CNwikW5aA6AaZq9xXUJ08t9V44RMVSDjPIxt6GqyXHVgG2oRU8O DEf4kxs+JPvq0dClB31Lva+WqQHGBNa70XV0HW23KQGDdOpv9qLLZ9E+lsG886C9MINM JokKT+ME3Zn/sI03cKhdxoA4ST/ECNWkoEvwk0YtvNidQk2S7vyMZTe8D5OhaC+40fG2 QMcUK85hMPRvlMu/qTTWSs5ZRMjww0LJSa/0eEuDqwq/ZsR6FVn35bG6uoBuCDURpbK9 w9dg== X-Gm-Message-State: AOAM5332iPfBtqyZqCx3qWUw3fy7CI6xAQHxtKfpZU9VvH/oP+cvogOe 7c62VDCcRTBzqraU6pjqXFhYwY+VIyuuog== X-Google-Smtp-Source: ABdhPJzO+G/cmiGr2WSptEM0Nqz5r1UOTD4cfMBlvFAR0kFLaI3X5/uxP83dlAP9DUNoYecbnrNTRQ== X-Received: by 2002:a62:5251:0:b0:4bd:bc3a:2f77 with SMTP id g78-20020a625251000000b004bdbc3a2f77mr32347015pfb.3.1642619590079; Wed, 19 Jan 2022 11:13:10 -0800 (PST) Received: from john-All-Series.tds (h75-100-85-216.cntcnh.broadband.dynamic.tds.net. [75.100.85.216]) by smtp.gmail.com with ESMTPSA id c17sm399845pfc.171.2022.01.19.11.13.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jan 2022 11:13:09 -0800 (PST) From: John Miller To: dev@dpdk.org, ferruh.yigit@intel.com Cc: John Miller Subject: [PATCH 3/4] net/ark: publish include file for external access Date: Wed, 19 Jan 2022 13:12:54 -0600 Message-Id: <20220119191255.273988-3-john.miller@atomicrules.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220119191255.273988-1-john.miller@atomicrules.com> References: <20220119191255.273988-1-john.miller@atomicrules.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 publish rte_pmd_ark.h for external access to extension Signed-off-by: John Miller --- doc/guides/nics/ark.rst | 4 ++-- drivers/net/ark/meson.build | 2 ++ drivers/net/ark/{ark_ext.h => rte_pmd_ark.h} | 8 ++++++-- 3 files changed, 10 insertions(+), 4 deletions(-) rename drivers/net/ark/{ark_ext.h => rte_pmd_ark.h} (97%) diff --git a/doc/guides/nics/ark.rst b/doc/guides/nics/ark.rst index da61814b5d..bcc3babd53 100644 --- a/doc/guides/nics/ark.rst +++ b/doc/guides/nics/ark.rst @@ -143,7 +143,7 @@ object file contains extension (or hook) functions that are registered and then called during PMD operations. The allowable set of extension functions are defined and documented in -``ark_ext.h``, only the initialization function, +``rte_pmd_ark.h``, only the initialization function, ``rte_pmd_ark_dev_init()``, is required; all others are optional. The following sections give a small extension example along with instructions for compiling and using the extension. @@ -157,7 +157,7 @@ during RX from user meta data coming from FPGA hardware. .. code-block:: c - #include + #include #include #include #include diff --git a/drivers/net/ark/meson.build b/drivers/net/ark/meson.build index 8d87744c22..83488d87a8 100644 --- a/drivers/net/ark/meson.build +++ b/drivers/net/ark/meson.build @@ -7,6 +7,8 @@ if is_windows subdir_done() endif +headers = files('rte_pmd_ark.h') + sources = files( 'ark_ddm.c', 'ark_ethdev.c', diff --git a/drivers/net/ark/ark_ext.h b/drivers/net/ark/rte_pmd_ark.h similarity index 97% rename from drivers/net/ark/ark_ext.h rename to drivers/net/ark/rte_pmd_ark.h index d235d0ff85..f77c36eb2d 100644 --- a/drivers/net/ark/ark_ext.h +++ b/drivers/net/ark/rte_pmd_ark.h @@ -5,7 +5,11 @@ #ifndef _ARK_EXT_H_ #define _ARK_EXT_H_ -#include +#include +struct rte_eth_dev; +struct rte_mbuf; +struct rte_ether_addr; +struct rte_eth_stats; /* The following section lists function prototypes for Arkville's * dynamic PMD extension. User's who create an extension @@ -55,7 +59,7 @@ void rte_pmd_ark_dev_uninit(struct rte_eth_dev *dev, void *user_data); * user argument from dev_init() call. * @return (0) if successful. */ -uint8_t dev_get_port_count(struct rte_eth_dev *dev, void *user_data); +uint8_t rte_pmd_ark_dev_get_port_count(struct rte_eth_dev *dev, void *user_data); /** * Extension prototype, optional implementation. -- 2.25.1