From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 636DC45628;
	Tue, 16 Jul 2024 14:02:45 +0200 (CEST)
Received: from mails.dpdk.org (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id D7A48432FC;
	Tue, 16 Jul 2024 14:02:30 +0200 (CEST)
Received: from egress-ip11a.ess.de.barracuda.com
 (egress-ip11a.ess.de.barracuda.com [18.184.203.234])
 by mails.dpdk.org (Postfix) with ESMTP id B24FC427E6
 for <dev@dpdk.org>; Tue, 16 Jul 2024 14:02:26 +0200 (CEST)
Received: from EUR05-DB8-obe.outbound.protection.outlook.com
 (mail-db8eur05lp2105.outbound.protection.outlook.com [104.47.17.105]) by
 mx-outbound8-202.eu-central-1a.ess.aws.cudaops.com (version=TLSv1.2
 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO);
 Tue, 16 Jul 2024 12:02:24 +0000
ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;
 b=AKkT9ibRm/haLWfthShPOuMNpPeE2Nug/EfpZQF25V+kFwxpZkVhHMnv/iL4tpXgjkWp+9HqCBJ1gWut4lfVo7JbrniJvNTTUBeCVV0dO+10uyukYFQVQIdfIxsTEl367C0M/+v8CRwzQPjfwQCyjll0F3lX0pvg/Fil7LHGQdOBvSx3yocBIdFsgXqu92VoG1UdEKS+EfmUGQVyycNQnB9iE6jI4GfGY5/gqgewOSDdhENENbP88OoN7PW46PGsC50BXvTBk6mBx3rVolJ1++YJrceHAtTHrZmnfglWMnSXAhcjhQo+LBlywtQl0NWc9rU/i77HLDXQH5t4jtNqlA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector10001;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=ifgRRf50ellkgijgAEW82qfKgImTZYf+uC64ShJPWsk=;
 b=qbliqCi90ylE/2eBuAdmkjggjZOyjir041aFW/KMJaEKrWpUWiPCgn7kuny22/uiY4mHCI9lv0zGD1YCUFo4UxK4LGFgH1HizuwzABl0qN26Fn1D1y8kwlxDDKF8iBm7i1NxCbCm/x7p/WATV9/H8dQuFgaWZVd0Oh3858wmgcT4yqSwhhNLMJ83Kg/L/TqcmJG45zBuedMVYpz7UZdHZjZbBVqHSpYhGez0i6SuEDS2eRaEIyhMQ5zlKt3mXaUOVxioqRwluHkc2TecuDv2bqVbzAFhmp7BgIBv9d4qblNnc1gE3dJd17jBqlgVUBLu9c7HBohhJiEZekcCofoNjg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is
 178.72.21.4) smtp.rcpttodomain=dpdk.org smtp.mailfrom=napatech.com;
 dmarc=fail (p=reject sp=reject pct=100) action=oreject
 header.from=napatech.com; dkim=none (message not signed); arc=none (0)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=napatech.com;
 s=selector1;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=ifgRRf50ellkgijgAEW82qfKgImTZYf+uC64ShJPWsk=;
 b=jPwQ2qMtmQQ4fk568KY2yRyKZw03pwr0lEqIGRcZHkIdrC6mNXRzh1JNohV9VWsKrlntxwM/oZVVnAGjjRKm3p3dXA0VSvBd/6dLBSXtM4MuEkV+lD2VO243mi/qGo/73luiPY+AEkHI+j9vPpZLa2U3zpMJY2sAtR43/SSOOGA=
Received: from DU7P195CA0011.EURP195.PROD.OUTLOOK.COM (2603:10a6:10:54d::14)
 by PAXP190MB1765.EURP190.PROD.OUTLOOK.COM (2603:10a6:102:276::14) with
 Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.29; Tue, 16 Jul
 2024 12:02:19 +0000
Received: from DU6PEPF0000A7DD.eurprd02.prod.outlook.com
 (2603:10a6:10:54d:cafe::4d) by DU7P195CA0011.outlook.office365.com
 (2603:10a6:10:54d::14) with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.14 via Frontend
 Transport; Tue, 16 Jul 2024 12:02:19 +0000
X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 178.72.21.4)
 smtp.mailfrom=napatech.com; dkim=none (message not signed)
 header.d=none;dmarc=fail action=oreject header.from=napatech.com;
Received-SPF: Fail (protection.outlook.com: domain of napatech.com does not
 designate 178.72.21.4 as permitted sender) receiver=protection.outlook.com;
 client-ip=178.72.21.4; helo=localhost.localdomain;
Received: from localhost.localdomain (178.72.21.4) by
 DU6PEPF0000A7DD.mail.protection.outlook.com (10.167.8.37) with Microsoft SMTP
 Server id 15.20.7784.11 via Frontend Transport; Tue, 16 Jul 2024 12:02:18
 +0000
From: Serhii Iliushyk <sil-plv@napatech.com>
To: dev@dpdk.org
Cc: mko-plv@napatech.com, sil-plv@napatech.com, ckm@napatech.com,
 andrew.rybchenko@oktetlabs.ru, ferruh.yigit@amd.com,
 Thomas Monjalon <thomas@monjalon.net>
Subject: [PATCH v9 01/21] net/ntnic: add ethdev and makes PMD available
Date: Tue, 16 Jul 2024 14:01:50 +0200
Message-ID: <20240716120216.3032484-1-sil-plv@napatech.com>
X-Mailer: git-send-email 2.45.0
In-Reply-To: <20240530144929.4127931-1-sil-plv@napatech.com>
References: <20240530144929.4127931-1-sil-plv@napatech.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-EOPAttributedMessage: 0
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: DU6PEPF0000A7DD:EE_|PAXP190MB1765:EE_
Content-Type: text/plain
X-MS-Office365-Filtering-Correlation-Id: 85e92450-2431-4e56-71a9-08dca58f24a3
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
 ARA:13230040|1800799024|36860700013|376014|82310400026; 
X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?uuyzFkBzitbxxztLPeyG4sif+OcGVgdkMJ/Hs9aZgPELe6ZSAgdDgzFN7oYp?=
 =?us-ascii?Q?e7Em/S1HEvCd5IDNrtM0Xl5F6ef9G9Bo07rL8eOy6hH7Z0jNNyMZcG5FrAdU?=
 =?us-ascii?Q?DloCBHGapXcjTFV2r+MyVPSBfPfPj6tOylfBvug4PmSmO+knLoOHq/Pwmin2?=
 =?us-ascii?Q?rQ6LBtK71UCeEh6NMkPqHXM54cT155aATC5kfZDC3/MVrfa9qwDWc/HU66yr?=
 =?us-ascii?Q?NEB9hVPM+d7nWIU8BQRCE9eYLnUDkCBKs6qaNwd0YPGEOnZuDki80yHZ9Kev?=
 =?us-ascii?Q?kVkErZS6Xe5unlnWfgfu1uZPd0gns6jT9/dO+r+brxSlxQtfY9OiLCPX+i9H?=
 =?us-ascii?Q?es6PK2bW1BVkat1ajpnoWMOh8odkb2Fw8faGfbnsi1SktiGNPZfB1rt3APrs?=
 =?us-ascii?Q?FUjhDIc53TTqWMlDpZaRFd9tg4xM5p4fJpcnT7sm5hqSe6gustiEmR+53DME?=
 =?us-ascii?Q?X/qCurRedbQMeq+e69WyMb5mdK20OH8Lw55XmfFgKthjY1cnybHHad3Kzj7I?=
 =?us-ascii?Q?q/FRJXyxl/MPRXv9O6v8HByr4YSB45dtU1905K+JRa7p2+ZhJswtl9uigmAz?=
 =?us-ascii?Q?ohHe4pfunmci2SArH+djfr3VEllGDYvcG9x2ibTo9An/rb34S8cM8QMQkspj?=
 =?us-ascii?Q?kSrpcgIP6lxuxu04/l4ZeL9rqUEphaWNKVgsGv/fHbkYPfajCVts0Tv20sjL?=
 =?us-ascii?Q?acz3Tlhbkt8vZIsBx5BJtsmpe+VHpYOFsEL/tPa9dlWEomPoHXoC7bdnPZdv?=
 =?us-ascii?Q?4tDPHg/Cgvyos2Uvpcbx5CcdMs0Gq+0J5SylQdZMihRvCDzzBWk6ukwCgbJC?=
 =?us-ascii?Q?EMeZRXH90oU8aNavmv7SfCSPUx85+6BviKXr+3wmyyVN9ezLkTs2Wv3WJKJ8?=
 =?us-ascii?Q?Qk5xXG2V8w/8bkZb2E8b6JYvorvOCbEXqt7meSlzliVJ63bWcA81bPAL75nm?=
 =?us-ascii?Q?yQrchQWRtBWEorXmnrV/0l1lNXbMmTDoSd3uqatKrVMF69N+TrEWBzeGRE/K?=
 =?us-ascii?Q?FyM6AhwnBrh3xMAn7USSz/aiwF5APRJZce93brtqe2owc8xY8GJ1e9xMhQRk?=
 =?us-ascii?Q?FlaVdr0WJHvkoNulyoUsC2yTy3uNG45Iy4T9shiJBnOvpMPe1r/ghW+ksm0A?=
 =?us-ascii?Q?65ZxG4aPhYKU0+jZNmwHoxCX9CZ9p/u07VZ8C60bJZ3ZCW+iy5nDHslXU3Qi?=
 =?us-ascii?Q?VD2ny4jLGrPqif00dAyPs4evjCu9+Xqi8GoN+RA6kJ970mXlUchV6fLrf/jL?=
 =?us-ascii?Q?QWyKRrKMDYGMg+FmZlMQzxrMPw+fuYmoojaMBDCSlxNgHykMJMGnAiwtrwP8?=
 =?us-ascii?Q?DHOnWJonhyBDV7z4X+QNnQAOAB7d3+O/VT7GfiaNQiX6jgt/lfK1sLJjZ6ob?=
 =?us-ascii?Q?n4M998EWX/ZOVYT3+Rq7fyn3Dd1q?=
X-Forefront-Antispam-Report: CIP:178.72.21.4; CTRY:DK; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:localhost.localdomain; PTR:InfoDomainNonexistent;
 CAT:NONE; SFS:(13230040)(1800799024)(36860700013)(376014)(82310400026);
 DIR:OUT; SFP:1102; 
X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: x1jDrXuC52OH9TJrEd8nCxlEXKommw6sZKUxj8BPOZ3B2XgAKF9uCrndpWp7MeNzUJu/uqLyusC5puBQBdbg7MR6CADrzf1chYfbop9afIBshWXEjFskHmpu1oTs0GI2eNO74LEq7qcU2XIrPtZj0KOFUs2SD7HFrgW2aUrYpT99VzMUBZUKCqR5ZMeucNtN3diWGHSg9PfbQXRPy+JNhYDt+4uw4agIX5FsiPRLK1HmJTnwKmgha3duxzGPm79q+VdLtEJDXXeRSijNa5OErJk92a7M2W9WuefFgdqJTSkgVBwhxDlxwrDq6i6SWcMrtqC1ZvvGTVqmpNg7v3sr7An+j8U9xv6TgsDcRHMRlVuIlx08wuuXfiSHtpKgF8phpVP1TAR4Px3M4qDzxmzDzMw8AES7415H/zC72j5sH2moHlUWCtMEFgf0b1pb11zibd80NG4tTTfMryDz6CZIIMTQJaOqDhp7zAOH8tTbBkAkGa3WJFQwCsBHa7W0Jc8QISNbodERMuD4OTTbgE8WW+mtlLk1Pl8Mf2M5ODUALUbQ0s/MCV5BHcbIbg+90b+ueWB87sDwqXeaXTQb6HxRzFYSZqLsnSRCltyBvqw4yCwGMAvzwPwd/tugJcIdCPTMeq4PnQ/+RoYWNGbnBejioKeV3cTqCxhNLBWb+TjFQlw=
X-OriginatorOrg: napatech.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jul 2024 12:02:18.9615 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: 85e92450-2431-4e56-71a9-08dca58f24a3
X-MS-Exchange-CrossTenant-Id: c4540d0b-728a-4233-9da5-9ea30c7ec3ed
X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=c4540d0b-728a-4233-9da5-9ea30c7ec3ed; Ip=[178.72.21.4];
 Helo=[localhost.localdomain]
X-MS-Exchange-CrossTenant-AuthSource: DU6PEPF0000A7DD.eurprd02.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXP190MB1765
X-BESS-ID: 1721131344-302250-12639-24263-1
X-BESS-VER: 2019.1_20240702.1505
X-BESS-Apparent-Source-IP: 104.47.17.105
X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVuYm5oZAVgZQ0Mg40dw4xcTMNM
 3S1MTE1MzYwDTZ2Mjc0jTVyNLSxDRNqTYWADDNJzpBAAAA
X-BESS-Outbound-Spam-Score: 0.51
X-BESS-Outbound-Spam-Report: Code version 3.2,
 rules version 3.2.2.257662 [from 
 cloudscan16-108.eu-central-1b.ess.aws.cudaops.com]
 Rule breakdown below
 pts rule name              description
 ---- ---------------------- --------------------------------
 0.50 BSF_RULE7568M          META: Custom Rule 7568M 
 0.00 BSF_BESS_OUTBOUND      META: BESS Outbound 
 0.01 BSF_SC7_SG0146_1       META: Custom rule SG0146_1 
X-BESS-Outbound-Spam-Status: SCORE=0.51 using account:ESS113687 scores of
 KILL_LEVEL=7.0 tests=BSF_RULE7568M, BSF_BESS_OUTBOUND, BSF_SC7_SG0146_1
X-BESS-BRTS-Status: 1
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org

Add initial ntnic ethdev skeleton and register PCI probe functions
Update documentation: Device description and feature list

Signed-off-by: Serhii Iliushyk <sil-plv@napatech.com>
---
v6
* Remove unused includes
* Remove EOF markers
* Remove unnecesarry commpiller flags
* Update documentation INI and RST files
        * Remove uncovered features
        * Add features according to DPDK reqirements
        * Add link on NT200A02 description
* Rename res(short for result) to ret(short for return)
* Fix unnecessary set of the driver name
        * The driver name is set by macro RTE_PMD_REGISTER_PCI
* Set sentinel value for PCI id_table
        * NULL value can lead to the crush on function rte_pci_match
* Remove unnecessary comments
v7
* Move features list to the dedicated patches
* Update release note file
v9
* Marked driver features as Experimantal
---
 .mailmap                               |  1 +
 MAINTAINERS                            |  7 ++++
 doc/guides/nics/features/ntnic.ini     |  8 +++++
 doc/guides/nics/index.rst              |  1 +
 doc/guides/nics/ntnic.rst              | 39 ++++++++++++++++++++
 doc/guides/rel_notes/release_24_07.rst | 10 ++++++
 drivers/net/meson.build                |  1 +
 drivers/net/ntnic/meson.build          | 18 ++++++++++
 drivers/net/ntnic/ntnic_ethdev.c       | 49 ++++++++++++++++++++++++++
 9 files changed, 134 insertions(+)
 create mode 100644 doc/guides/nics/features/ntnic.ini
 create mode 100644 doc/guides/nics/ntnic.rst
 create mode 100644 drivers/net/ntnic/meson.build
 create mode 100644 drivers/net/ntnic/ntnic_ethdev.c

diff --git a/.mailmap b/.mailmap
index 3f3f0442e5..ee567cf16e 100644
--- a/.mailmap
+++ b/.mailmap
@@ -1321,6 +1321,7 @@ Sergey Madaminov <sergey.madaminov@gmail.com>
 Sergey Mironov <grrwlf@gmail.com>
 Sergey Temerkhanov <sergey.temerkhanov@intel.com>
 Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
+Serhii Iliushyk <sil-plv@napatech.com>
 Seth Arnold <seth.arnold@canonical.com>
 Seth Howell <seth.howell@intel.com>
 Shachar Beiser <shacharbe@mellanox.com>
diff --git a/MAINTAINERS b/MAINTAINERS
index c71ca2a28e..3e6bf0f8ae 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -856,6 +856,13 @@ F: drivers/net/octeon_ep/
 F: doc/guides/nics/features/octeon_ep.ini
 F: doc/guides/nics/octeon_ep.rst
 
+Napatech ntnic - EXPERIMENTAL
+M: Christian Koue Muf <ckm@napatech.com>
+M: Serhii Iliushyk <sil-plv@napatech.com>
+F: drivers/net/ntnic/
+F: doc/guides/nics/ntnic.rst
+F: doc/guides/nics/features/ntnic.ini
+
 NVIDIA mlx4
 M: Matan Azrad <matan@nvidia.com>
 M: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
diff --git a/doc/guides/nics/features/ntnic.ini b/doc/guides/nics/features/ntnic.ini
new file mode 100644
index 0000000000..9ceb75a03b
--- /dev/null
+++ b/doc/guides/nics/features/ntnic.ini
@@ -0,0 +1,8 @@
+;
+; Supported features of the 'ntnic' network poll mode driver.
+;
+; Refer to default.ini for the full list of available PMD features.
+;
+[Features]
+Linux                = Y
+x86-64               = Y
diff --git a/doc/guides/nics/index.rst b/doc/guides/nics/index.rst
index 7bfcac880f..c14bc7988a 100644
--- a/doc/guides/nics/index.rst
+++ b/doc/guides/nics/index.rst
@@ -53,6 +53,7 @@ Network Interface Controller Drivers
     nfb
     nfp
     ngbe
+    ntnic
     null
     octeon_ep
     octeontx
diff --git a/doc/guides/nics/ntnic.rst b/doc/guides/nics/ntnic.rst
new file mode 100644
index 0000000000..b150fe1481
--- /dev/null
+++ b/doc/guides/nics/ntnic.rst
@@ -0,0 +1,39 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2024 Napatech A/S
+
+NTNIC Poll Mode Driver
+======================
+
+The NTNIC PMD provides poll mode driver support for Napatech smartNICs.
+
+
+Design
+------
+
+The NTNIC PMD is designed as a pure user-space driver, and requires no special
+Napatech kernel modules.
+
+The Napatech smartNIC presents one control PCI device (PF0). NTNIC PMD accesses
+smartNIC PF0 via vfio-pci kernel driver. Access to PF0 for all purposes is
+exclusive, so only one process should access it. The physical ports are located
+behind PF0 as DPDK port 0 and 1.
+
+
+Supported NICs
+--------------
+
+- NT200A02 2x100G SmartNIC
+
+    - FPGA ID 9563 (Inline Flow Management)
+
+All information about NT200A02 can be found by link below:
+https://www.napatech.com/products/nt200a02-smartnic-inline/
+
+Limitations
+~~~~~~~~~~~
+
+Kernel versions before 5.7 are not supported. Kernel version 5.7 added vfio-pci
+support for creating VFs from the PF which is required for the PMD to use
+vfio-pci on the PF. This support has been back-ported to older Linux
+distributions and they are also supported. If vfio-pci is not required kernel
+version 4.18 is supported.
diff --git a/doc/guides/rel_notes/release_24_07.rst b/doc/guides/rel_notes/release_24_07.rst
index cd4219efd2..058609b0f3 100644
--- a/doc/guides/rel_notes/release_24_07.rst
+++ b/doc/guides/rel_notes/release_24_07.rst
@@ -104,6 +104,16 @@ New Features
 
   * Updated base code with E610 device family support.
 
+* **Added Napatech ntnic net driver [EXPERIMENTAL].**
+
+  * Added the PMD driver for Napatech smartNIC
+
+    - Ability to initialize the NIC (NT200A02)
+    - Supporting only one FPGA firmware (9563.55.39)
+    - Ability to bring up the 100G link
+    - Supporting QSFP/QSFP+/QSFP28 NIM
+    - Does not support datapath
+
 * **Updated Marvell cnxk net driver.**
 
   * Added support disabling custom meta aura
diff --git a/drivers/net/meson.build b/drivers/net/meson.build
index bd38b533c5..fb6d34b782 100644
--- a/drivers/net/meson.build
+++ b/drivers/net/meson.build
@@ -45,6 +45,7 @@ drivers = [
         'nfb',
         'nfp',
         'ngbe',
+        'ntnic',
         'null',
         'octeontx',
         'octeon_ep',
diff --git a/drivers/net/ntnic/meson.build b/drivers/net/ntnic/meson.build
new file mode 100644
index 0000000000..194353230b
--- /dev/null
+++ b/drivers/net/ntnic/meson.build
@@ -0,0 +1,18 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2020-2023 Napatech A/S
+
+if not is_linux or not dpdk_conf.has('RTE_ARCH_X86_64')
+    build = false
+    reason = 'only supported on x86_64 Linux'
+    subdir_done()
+endif
+
+# includes
+includes = [
+    include_directories('.'),
+]
+
+# all sources
+sources = files(
+    'ntnic_ethdev.c',
+)
diff --git a/drivers/net/ntnic/ntnic_ethdev.c b/drivers/net/ntnic/ntnic_ethdev.c
new file mode 100644
index 0000000000..7e5231d2c1
--- /dev/null
+++ b/drivers/net/ntnic/ntnic_ethdev.c
@@ -0,0 +1,49 @@
+/*
+ * SPDX-License-Identifier: BSD-3-Clause
+ * Copyright(c) 2023 Napatech A/S
+ */
+
+#include <rte_ethdev.h>
+#include <rte_bus_pci.h>
+#include <ethdev_pci.h>
+
+static const struct rte_pci_id nthw_pci_id_map[] = {
+	{
+		.vendor_id = 0,
+	},	/* sentinel */
+};
+
+static int
+nthw_pci_dev_init(struct rte_pci_device *pci_dev __rte_unused)
+{
+	return 0;
+}
+
+static int
+nthw_pci_dev_deinit(struct rte_eth_dev *eth_dev __rte_unused)
+{
+	return 0;
+}
+
+static int
+nthw_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,
+	struct rte_pci_device *pci_dev)
+{
+	int ret;
+	ret = nthw_pci_dev_init(pci_dev);
+	return ret;
+}
+
+static int
+nthw_pci_remove(struct rte_pci_device *pci_dev)
+{
+	return rte_eth_dev_pci_generic_remove(pci_dev, nthw_pci_dev_deinit);
+}
+
+static struct rte_pci_driver rte_nthw_pmd = {
+	.id_table = nthw_pci_id_map,
+	.probe = nthw_pci_probe,
+	.remove = nthw_pci_remove,
+};
+
+RTE_PMD_REGISTER_PCI(net_ntnic, rte_nthw_pmd);
-- 
2.45.0