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 E235E43279; Fri, 3 Nov 2023 15:17:23 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B181C4027F; Fri, 3 Nov 2023 15:17:23 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id F190A40273 for ; Fri, 3 Nov 2023 15:17:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1699021042; x=1730557042; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=jAPhHBT1ZeybPMK4o+lfQFO3xt7qVsBayHJzUCh2jfw=; b=N8XOexjk3VvSqJoKFQ6UJaTGUy6n5Hw2/rnfsX2jdoIwZGgDHpygVxU+ 4nUuLS96aLqnS2WEd3wO9LSXjT+nbN3bWO2G2+2kerv8cQud0PTJDDIXY wBijEmmXps/r/mbhuzAfIrJBy3laSQY0fQG4jVoWAmN7TlfZ/9Df+ZGEC 5DTM0I1pqn6WAjVpmLILB/KWOzVq3x5Cva8BWLqvTzMPTeotJGt07CYoI M1Afos7/J+V5sf3LDkFDcKUH5cmUJSCBkKArLWTrYNi7AasDtudxTQfa0 0Q1OyuqFuqTPzXS2de2mdMiCIr9qvGdAju6qM07vzIciog662wbLinqeO A==; X-IronPort-AV: E=McAfee;i="6600,9927,10883"; a="368294717" X-IronPort-AV: E=Sophos;i="6.03,273,1694761200"; d="scan'208";a="368294717" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Nov 2023 07:17:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10883"; a="738091883" X-IronPort-AV: E=Sophos;i="6.03,273,1694761200"; d="scan'208";a="738091883" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga006.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 03 Nov 2023 07:17:17 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Fri, 3 Nov 2023 07:17:16 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34 via Frontend Transport; Fri, 3 Nov 2023 07:17:16 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.168) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.34; Fri, 3 Nov 2023 07:17:16 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JCixVYalN7AyrlcU/q3O0Gixkf4beqv2Qp8D9d4oAbbtadOXFxnwLxcSViRYfaY/USQ7GkMZaWuyjIiSddCJBiSt40/d5X6Kk8pjMmxGv+Qm4yFcw9hgcxmJG1L4nYfWXt0OO2rKkcFWeMV8qHugVPV4AzNJ4DoAK3TMTsoQ49WWV/VJVxcam3dYs7sZk4gRBw+y9FuwuSirgm97QSKnCJGugCIe5Zd8wzgGhMInMXmnJl8T8dQLO7840VEkpDGz1wltkLpsikcJYycF8y24YE9B2UqEvc0xS8eEJovRpGk4Sl2KpSaBITl9OZm9/HYkKT5vWmeqmW92RaJb6siK6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=BOevbdh48hUxy42e9HBxoPK2XpJYl0BUaon42Nnd7Bs=; b=LPvkFmqPZcnvRYtfkTejqW7TOINQvfb9GnJzsI148uYrNyQoazZa/1JDLx0U6EloQZWzQsnuT2nD54bhPTfE8/S6CtoFljcKXsPy5l94PkHWjqaPK2vf3QrcYD0HENrntPMMSRB2PmLy3KjxCWQbj65so52ecPRZ8fcRfHKLrBEDnC++dzbmkg0DHiBKUg+E2wq06rwDXcPVqFbJdLxog2TRjQ7WdEwBlrrMq31sfbXPK9ha0eaxvUft9W3YXUa7raHrEfHxhm6trNpbp+yIF9w0/Cg1X87g/R8PAhxPwLxdP+Uv6A5EfCc7QZ3wYdytKMUX0xtGQ138lzf7SfbUuQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) by MN2PR11MB4727.namprd11.prod.outlook.com (2603:10b6:208:26f::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.21; Fri, 3 Nov 2023 14:17:14 +0000 Received: from DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::d70b:11a0:d28f:ec44]) by DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::d70b:11a0:d28f:ec44%6]) with mapi id 15.20.6954.021; Fri, 3 Nov 2023 14:17:14 +0000 Date: Fri, 3 Nov 2023 14:17:09 +0000 From: Bruce Richardson To: David Young CC: , Aaron Conole Subject: Re: [PATCH v3 3/7] Section 3: Setting up a System to Run DPDK Applications Message-ID: References: <20231103040202.2849-1-dave@youngcopy.com> <20231103040202.2849-4-dave@youngcopy.com> Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20231103040202.2849-4-dave@youngcopy.com> X-ClientProxiedBy: DUZPR01CA0207.eurprd01.prod.exchangelabs.com (2603:10a6:10:4b6::9) To DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB7309:EE_|MN2PR11MB4727:EE_ X-MS-Office365-Filtering-Correlation-Id: b6b6a189-7055-4ea6-72d8-08dbdc779391 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lE3zjAxQflg5vTV/BmkCUKQwRgOem+BW95jkVJWONANmVF9FQPBE72tGnylV6DIiQsGyfSMDGjK5BvpEkXHxuTPDJSyxzb0tADNmdF4x9Es/20lCwG/xMj6LlVtMsYLH9YWFd+gsKQ8N94kQeehonyxqiaicRYyelEnNIvCNYS3WBWcZD/YzxIVkXreuOGLDY/WJv1H0l5NKULmI0fSA4etWpq9TnH4t8pznSO/IoR03ybl5SFtOjVcq2Bc1y03cxGhmOsDF8ZKReurvPCDhftwX2kbt8YlQgKNb2K3G5iD7W43cq1oOgjiww8vfhs7isTSqIoyrmLqOJKq4gGSYUB1Em6EhXujXBP+y6y2loFYmLO6K/GsqB2zx0ok+Pu20axBoizrP1/e7WBM2779s72WARV1EyEH78ihx0dwl/dxYOBInl6Ni+FXBd3FXZcubgHwfD9cq1lR5uaYmCk9TnjAuYan+V5tq367ODrV5RN0d4xrRo4fPY3XNeUXVRlIGut2PagjCLhoWyRy/m9BQ7jea8KGDSGejkO6Gmaa0VnHyn8F5w/LcmEnQxmdqlY/WrArszo0djpHe6QRzlhmU8B6cOiRKgHQc9Pup4sfbQxcpVgHCsyIZUiJSOmNKXbut X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS0PR11MB7309.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(346002)(136003)(366004)(396003)(39860400002)(376002)(230922051799003)(230173577357003)(230273577357003)(64100799003)(451199024)(186009)(1800799009)(478600001)(6666004)(6486002)(2906002)(26005)(86362001)(82960400001)(38100700002)(83380400001)(6512007)(6506007)(5660300002)(8676002)(6916009)(66476007)(66946007)(316002)(41300700001)(66556008)(44832011)(8936002)(4326008)(30864003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?/aN59LpJe7wk1OK6uKKvkJByEF2RnXJiJgSE+waQzyFOcs6/u490gRQXE1d1?= =?us-ascii?Q?IDVfLv3y8I5mg6R9wyDksPug0LRwn+TIjg21yscMdeHfzzhN+pJ3cYGi2QRs?= =?us-ascii?Q?WgMZeZBmM4aLqCLUMtnrekFnXVuIygtRSLJ8l+PBj/0uX+ra91W5YTshI/ir?= =?us-ascii?Q?tCDrJO7eNGLHdeDpSMeHRfNxIrr6wLauBYV+tnyRoarnBuBZhkZsxc+U+uDM?= =?us-ascii?Q?hB6pKUWkm+PFzwb7HfDnooZ6O2bQthBfs3ghiAaWTE3xrC2FBE/L9fJX5gCG?= =?us-ascii?Q?SPS6osTSdfqgoku2n6ruaIihBuMpjMEb4ayP2WljLrrpBRV82TdUbmaB8Gkp?= =?us-ascii?Q?Szpx69Mgf6NdKN0gkT1lFyvg4LYzonIxDdeRtb5R7Xzuzex3Vb3y8OR/HGL8?= =?us-ascii?Q?+1nFmX8q+Cogkwh6x7Xy51pChb+gmJfns0VcZIJ/ADIp93dS3Hh3VKx2xG3W?= =?us-ascii?Q?S1KCTyTT8CF1gm0kwMGAcCI7Rd0Z81cdt/kLitb44vPGlVSbjFvmpyBIW+fj?= =?us-ascii?Q?EnKWWv7CqhduFom5i0Tx7sqSCprXzkp/6zD1joBCTS+FO5ybHskxyVwh7BKE?= =?us-ascii?Q?UjkwcALPmiZ3+yWG3sonVYtnD3gynB75ssGXNNRh6+ekf66/lnUVlQspn3Xq?= =?us-ascii?Q?86TglbkGOkRo7tQvSR/s/ftshuGsAxgsGuK305L+f5RrrfWrmw94FwfTk0s3?= =?us-ascii?Q?T5tFHUMjJida7PMMdLR8PKwXGxgw4+xUnXdwjg1ZogeSe2NI0r1U2dAoUL1+?= =?us-ascii?Q?607ZQSUJEWjhTW1mbxltyhOB8kSFQkZWYbDFC9rJLx+cSCmtdTWhEs6ET4Gs?= =?us-ascii?Q?zDKitLVXw6LD/ZZdNeznsPuh152XzR0ACV2iKTJRPIcK1+xJ34EvCF2bNQTx?= =?us-ascii?Q?uNF8164yxTBbzLa0zv5LsqNGryxxlerm1hSE5LZMol22JmxYjE6My72/NmUF?= =?us-ascii?Q?olwfBDJ7x48xmQdvuEGPwSsTT7qmiP18f9OGcH3q7qYXUBWHAVgQiwWVyznk?= =?us-ascii?Q?0/cftfD3OpqFqKEAKN7Ic7gx0Mi+LGJ1ExX/MplYbaawVWNdavkL88Wv7bt5?= =?us-ascii?Q?kBPDtM1ucJDMtuCdTdDoTePCnVKqDi0ZH9HGMXssNqnA0jpk+uaRF1/YEnbI?= =?us-ascii?Q?YQIVsPke0mAdT/MaJ7CGzh4U8fkm9WTtnLRXCKWkWOPw/2vwVlM1cR1HKtiA?= =?us-ascii?Q?tMkdMQ876QWl0At/tsnbLtDkVsLcVWU/GEOmWe52GU1s0CSBdP9hKfSRRNC3?= =?us-ascii?Q?9vGx9Uz7ZbKU1usrBmofVBkA+NDNNi3krtL7jl5uAGZ/a4EU/rEsLjqbVV/Q?= =?us-ascii?Q?c6IOUs4EdM880PZGC+Z6RZ4ETcCRf9eoAreqEAhxjz9zfR7YVawb8GSo/dzH?= =?us-ascii?Q?9Q4Qe4wr4uRUv3QeJQeOPyFWyWEBhCBBH1vVc16KH2mhLzkTyiBIkWhXtkI/?= =?us-ascii?Q?IH+5Pp5YYGoimSSbuk6vFoXz9Nl5cE5bBOxunemF7lKj+D43hVIfl2UtlyhI?= =?us-ascii?Q?RMJSqYlR9agHeu2ADxkPMbm3RDireO8XkpqPmnYbXnRINc5yKisDeMdsgdsB?= =?us-ascii?Q?RhXbamtHJJmXEqzD3uJjqBKy57IXX75ZCJHW0h97pnJSXbKB80+WHJNZ3E+Z?= =?us-ascii?Q?9A=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: b6b6a189-7055-4ea6-72d8-08dbdc779391 X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7309.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Nov 2023 14:17:13.9485 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: XGsRe08p3xiD7X9NJZnQi/3cdrtPBApcPnmYF5Vdkue7/jtrUK1MP1+9CmTN9++swxBt1p81+oF8gMVDoG2qTrMsHgeW5/kZsCLHd7wwYgg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4727 X-OriginatorOrg: intel.com 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 As before, comments inline. On Fri, Nov 03, 2023 at 12:01:49AM -0400, David Young wrote: > --- > .../getting_started_guide/system_setup.rst | 195 ++++++++++++++++++ > 1 file changed, 195 insertions(+) > create mode 100644 doc/guides/getting_started_guide/system_setup.rst > > diff --git a/doc/guides/getting_started_guide/system_setup.rst b/doc/guides/getting_started_guide/system_setup.rst > new file mode 100644 > index 0000000000..fa9d249ec7 > --- /dev/null > +++ b/doc/guides/getting_started_guide/system_setup.rst > @@ -0,0 +1,195 @@ > +.. SPDX-License-Identifier: BSD-3-Clause > + Copyright(c) 2010-2025 Intel Corporation. > + > +.. _memory_setup: > + > +.. |reg| unicode:: U+000AE Better to get this character via ".. include:: ". That is what other files do. > + > +Setting up a System to Run DPDK Applications > +============================================ > + > +This section provides step-by-step instructions for setting up your system to run DPDK applications. It covers system configurations for Linux, FreeBSD, and Windows. Each section details the necessary memory and device setups for these operating systems. > + > +Navigate to the section that corresponds to your operating system to begin the setup process. > + > +.. contents:: Table of Contents > + :local: > + > +System Setup for Linux > +---------------------- > + > +Memory Setup: Reserving Hugepages > +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > + > +For Linux, DPDK requires hugepages be reserved for its use on the system. To check if hugepages are are on your system, you can run the following command:: "are are" probably should be "are reserved". > + > + grep HugePages_Total /proc/meminfo > + > +If hugepages are not reserved, you will need to reserve them by following these steps: > + > +1. Determine the number of hugepages you want to allocate. For example, to allocate 1024 hugepages of 2MB each, you can use the following command:: > + > + echo 1024 | sudo tee /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages > + > +2. To make the hugepages configuration persistent across reboots, add the following line to your `/etc/sysctl.conf` file, adjusting the number of hugepages as needed:: > + > + vm.nr_hugepages = 1024 > + > +3. Most distributions make hugepages available via `/dev/hugepages`, so this step may not be necessary. If you need to manually mount the hugepages filesystem, add the following line to your `/etc/fstab` file:: Starting a bullet point with a sentence saying "this step may not be necessary" seems a little strange - at least to me. Can we reword this perhaps? > + > + nodev /mnt/huge hugetlbfs defaults 0 0 > + > + Then, create the mount directory and mount the filesystem:: > + > + mkdir -p /mnt/huge > + mount -a > + We need a section somewhere in the docs about other page sizes - both 1G on x86, and the various sizes on Arm and other archs. Appendix would be a good place for it, with a reference here. For the large page sizes we need to talk about boot-time reservation. > +Device Setup: VFIO > +^^^^^^^^^^^^^^^^^^ > + > +VFIO is a robust and secure driver that relies on IOMMU protection. > +To make use of VFIO on Linux, the ``vfio-pci`` module must be loaded: > + > +.. code-block:: console > + > + sudo modprobe vfio-pci > + > +VFIO kernel is usually present by default in all distributions, > +however please consult your distribution's documentation to make sure that is the case. > + > +To make use of full VFIO functionality, > +both kernel and BIOS must support and be configured > +to use IO virtualization (such as Intel\ |reg| VT-d). > + > +.. note:: > + > + In most cases, specifying "iommu=on" as kernel parameter should be enough to > + configure the Linux kernel to use IOMMU. > + > +For proper operation of VFIO when running DPDK applications as a non-privileged user, > +correct permissions should also be set up. > +For more information, refer to :ref:`running_dpdk_apps_without_root`. > + > +Refer to :ref:`vfio_no_iommu_mode` when there is no IOMMU available on the system. > + > +Binding and Unbinding Network Ports to/from VFIO-PCI Module > +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > + > +To bind or unbind network ports to/from the `vfio-pci` module on Linux, follow these steps: > + > +Replace ```` with the appropriate module identifier. On initial reading I thought module_id was referring to kernel module, i.e. vfio-pci. However, it instead is refering to the PCI device id or BDF address. Let's clarify this by using a better term. I'd suggest "". Also give an example: Replace with the appropriate device identifier, e.g. 01:00.0, a8:00.0. > + > +**Unbind from current module**: > + If a device is bound to a kernel driver, unbind it: > + > + .. code-block:: bash > + > + sudo dpdk-devbind.py -u > + Actually, this step is not necessary. The devbind script is smart enough to know that to bind to a new driver, it needs to unbind the device first, so for binding to vfio-pci, it does unbind+bind with the one command. > +**Bind to vfio-pci module**: > + Bind the device to the `vfio-pci` module: > + > + .. code-block:: bash > + > + sudo dpdk-devbind.py -b vfio-pci > + > +System Setup for FreeBSD > +------------------------ > + > +.. _loading_contigmem_module: > + > +Memory Setup: Loading the DPDK contigmem Module > +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > + > +To run a DPDK application on FreeBSD, physically contiguous memory is required. In the absence of non-transparent superpages, the included sources for the `contigmem` kernel module provides the ability to present contiguous blocks of memory for the DPDK to use. > +The ``contigmem`` module must be loaded into the running kernel before any DPDK is run. "any DPDK" -> "any DPDK application" > +Once DPDK is installed on the system, the module can be found in the ``/boot/modules`` > +directory. > + > +The amount of physically contiguous memory along with the number of physically > +contiguous blocks to be reserved by the module can be set at runtime prior to module > +loading using:: > + > + kenv hw.contigmem.num_buffers=n > + kenv hw.contigmem.buffer_size=m > + > +The kernel environment variables can also be specified during boot by placing the > +following in ``/boot/loader.conf``:: > + > + hw.contigmem.num_buffers=n > + hw.contigmem.buffer_size=m > + > +The variables can be inspected using the following command:: > + > + sysctl -a hw.contigmem > + > +The module can then be loaded using ``kldload``:: > + > + cd /boot/modules > + kldload contigmem > + > +Device Setup: Loading the DPDK nic_uio Module > +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > + > +After :ref:`loading_contigmem_module` on FreeBSD, the ``nic_uio`` module must also be loaded into the running kernel prior to running any DPDK application, e.g. using:: > + > + cd /boot/modules > + kldload nic_uio > + > +By default, the ``nic_uio`` module will take ownership of network ports if they are > +recognized DPDK devices and are not owned by another module. > +However, since the FreeBSD kernel includes support, either built-in, > +or via a separate driver module, for most network card devices, > +it is likely that the ports to be used are already bound to a driver other than > +``nic_uio``. > + > +To re-bind the ports to the `nic_uio` module upon loading, use the following command:: > + > + kenv hw.nic_uio.bdfs="b:d:f,b:d:f,..." > + > +Where a comma-separated list of selectors is set, the list must not contain any > +whitespace. > + > +The variable can also be specified during boot by placing the following into > +``/boot/loader.conf``, before the previously-described ``nic_uio_load`` line:: Not previously-described! > + > + hw.nic_uio.bdfs="2:0:0,2:0:1" > + nic_uio_load="YES" > + > +Binding and Unbinding Network Ports to/from nic_uio Module > +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > + > +If the original driver for a network port has been compiled into the kernel, > +it is necessary to reboot FreeBSD to restore the original device binding. > +Before doing so, update or remove the ``hw.nic_uio.bdfs`` in ``/boot/loader.conf``. > + > +If rebinding to a driver that is a loadable module, the network port binding can be > +reset without rebooting. To do so, unload both the target kernel module and the > +``nic_uio`` module, modify or clear the ``hw.nic_uio.bdfs`` kernel environment > +(``kenv``) value, and reload the two drivers - first the original kernel driver, > +and then the ``nic_uio`` driver. > + > +Example commands to perform these steps are shown below:: > + > + kldunload nic_uio > + kldunload > + kenv -u hw.nic_uio.bdfs > + kldload > + kldload nic_uio # optional > + > +System Setup for Windows > +------------------------ > + > +Memory Setup: Installing Windows Modules > +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > + > +Before running DPDK applications on Windows, certain kernel-mode drivers must be installed. Note that these drivers are not signed, so you'll need to disable signature enforcement. However, be cautious as this can weaken your OS security and is generally not recommended in production environments. > + > +Device Setup: Install Drivers > +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > + > +To run DPDK applications on Windows, you'll need to install specific kernel-mode drivers: > + > +- **virt2phys**: This driver is essential for providing access to physical addresses and is mandatory for allocating physically-contiguous memory, which is required by hardware PMDs. Once loaded successfully, this driver will appear in the Device Manager as ``Virtual to physical address translator device`` under the Kernel bypass category. If DPDK cannot communicate with the driver, a warning will be printed during initialization. > + > +- **NetUIO**: This driver provides access to device hardware resources and is mandatory for all hardware PMDs, except for the mlx5 PMD. Devices supported by NetUIO are listed in ``netuio.inf``. You can extend this list to try running DPDK with new devices. > \ No newline at end of file > -- > 2.41.0.windows.1 >