.. SPDX-License-Identifier: BSD-3-Clause Copyright(c) 2022 Intel Corporation. .. include:: IDPF Poll Mode Driver ===================== The idpf PMD (**librte_net_idpf**) provides poll mode driver support for Intel\ |reg| Infrastructure Processing Unit (Intel\ |reg| IPU) E2100. Linux Prerequisites ------------------- Follow the DPDK :doc:`../linux_gsg/index` to setup the basic DPDK environment. To get better performance on Intel platforms, please follow the :doc:`../linux_gsg/nic_perf_intel_platform`. Recommended Matching List ------------------------- It is highly recommended to upgrade the idpf kernel driver, MEV-ts release to avoid compatibility issues with the idpf PMD. Here is the suggested matching list which has been tested and verified. +------------+---------------+------------------+ | DPDK | Kernel Driver | MEV-ts release | +============+===============+==================+ | 23.07 | 0.0.710 | 0.9.1 | +------------+---------------+------------------+ | 23.11 | 0.0.720 | 1.0 | +------------+---------------+------------------+ | 24.11 | 0.0.754 | 1.6 | +------------+---------------+------------------+ | 25.07 | 0.0.772 | 2.0 | +------------+---------------+------------------+ Configuration ------------- Runtime Configuration ~~~~~~~~~~~~~~~~~~~~~ - ``vport`` (default ``0``) The PMD supports creation of multiple vports for one PCI device, each vport corresponds to a single ethdev. The user can specify the vports with specific ID to be created, for example:: -a ca:00.0,vport=[0,2,3] Then the PMD will create 3 vports (ethdevs) for device ``ca:00.0``. If the parameter is not provided, the vport 0 will be created by default. - ``rx_single`` (default ``0``) There are two queue modes supported by Intel\ |reg| IPU Ethernet ES2000 Series, single queue mode and split queue mode for Rx queue. User can choose Rx queue mode, example:: -a ca:00.0,rx_single=1 Then the PMD will configure Rx queue with single queue mode. Otherwise, split queue mode is chosen by default. - ``tx_single`` (default ``0``) There are two queue modes supported by Intel\ |reg| IPU Ethernet ES2000 Series, single queue mode and split queue mode for Tx queue. User can choose Tx queue mode, example:: -a ca:00.0,tx_single=1 Then the PMD will configure Tx queue with single queue mode. Otherwise, split queue mode is chosen by default. .. note:: In split queue mode, sharing a completion queue among multiple Tx queues that are serviced by different CPU cores is not supported. Driver compilation and testing ------------------------------ Refer to the document :doc:`build_and_test` for details. Features -------- Vector PMD ~~~~~~~~~~ Vector path for Rx and Tx path are selected automatically. The paths are chosen based on 2 conditions: - ``CPU`` On the x86 platform, the driver checks if the CPU supports AVX instruction set. If the CPU supports AVX512 and EAL argument ``--force-max-simd-bitwidth`` is set to 512, the AVX512 paths will be chosen. Otherwise, if ``--force-max-simd-bitwidth`` is set to 256, AVX2 paths will be chosen. (Note that 256 is the default bitwidth if no specific value is provided.) - ``Offload features`` The supported HW offload features are described in the document idpf.ini, A value "P" means the offload feature is not supported by vector path. If any not supported features are used, idpf vector PMD is disabled and the scalar paths are chosen. Time Synchronization ~~~~~~~~~~~~~~~~~~~~ The system operator can run a PTP (Precision Time Protocol) client application to synchronize the time on the network card in ACC (and optionally the time on the system) to the PTP primary. IDPF PMD supports PTP client applications that use the DPDK IEEE 1588 API to communicate with the PTP primary clock. Note that PTP client application needs to run on PF in ACC. .. code-block:: console examples/dpdk-ptpclient -l 0-3 -n 3 -a 0000:ec:00.1 -- -T 1 -p 0x1