1 .. SPDX-License-Identifier: BSD-3-Clause
2 Copyright(c) 2018 Marvell International Ltd.
3 Copyright(c) 2018 Semihalf.
6 MVNETA Poll Mode Driver
7 =======================
9 The MVNETA PMD (**librte_net_mvneta**) provides poll mode driver support
10 for the Marvell NETA 1/2.5 Gbps adapter.
12 Detailed information about SoCs that use PPv2 can be obtained here:
14 * https://www.marvell.com/embedded-processors/armada-3700/
20 Features of the MVNETA PMD are:
41 - Flushing vlans added for filtering is not possible due to MUSDK missing
42 functionality. Current workaround is to reset board so that NETA has a
43 chance to start in a sane state.
48 - Custom Linux Kernel sources
50 .. code-block:: console
52 git clone https://github.com/MarvellEmbeddedProcessors/linux-marvell.git -b linux-4.4.120-armada-18.09
55 - MUSDK (Marvell User-Space SDK) sources
57 .. code-block:: console
59 git clone https://github.com/MarvellEmbeddedProcessors/musdk-marvell.git -b musdk-release-SDK-10.3.5.0-PR2
61 MUSDK is a light-weight library that provides direct access to Marvell's
62 NETA. Alternatively prebuilt MUSDK library can be
63 requested from `Marvell Extranet <https://extranet.marvell.com>`_. Once
64 approval has been granted, library can be found by typing ``musdk`` in
67 MUSDK must be configured with the following features:
69 .. code-block:: console
71 --enable-pp2=no --enable-neta
75 Follow the DPDK :ref:`Getting Started Guide for Linux <linux_gsg>` to setup
82 The following ``devargs`` options can be enabled at runtime. They must
83 be passed as part of EAL arguments.
85 - ``iface`` (mandatory, with no default value)
87 The name of port (owned by MUSDK) that should be enabled in DPDK.
88 This options can be repeated resulting in a list of ports to be
89 enabled. For instance below will enable ``eth0`` and ``eth1`` ports.
91 .. code-block:: console
93 ./dpdk-testpmd --vdev=net_mvneta,iface=eth0,iface=eth1 \
100 Driver needs precompiled MUSDK library during compilation.
102 .. code-block:: console
104 export CROSS_COMPILE=<toolchain>/bin/aarch64-linux-gnu-
106 ./configure --host=aarch64-linux-gnu --enable-pp2=no --enable-neta
109 MUSDK will be installed to `usr/local` under current directory.
110 For the detailed build instructions please consult ``doc/musdk_get_started.txt``.
115 Add path to libmusdk.pc in PKG_CONFIG_PATH environment variable.
117 .. code-block:: console
119 export PKG_CONFIG_PATH=$<musdk_install_dir>/lib/pkgconfig/:$PKG_CONFIG_PATH
120 meson build --cross-file config/arm/arm64_armada_linux_gcc
127 MVNETA PMD requires extra out of tree kernel modules to function properly.
128 `musdk_uio` and `mv_neta_uio` sources are part of the MUSDK. Please consult
129 ``doc/musdk_get_started.txt`` for the detailed build instructions.
131 .. code-block:: console
134 insmod mv_neta_uio.ko
136 Additionally interfaces used by DPDK application need to be put up:
138 .. code-block:: console
143 In order to run testpmd example application following command can be used:
145 .. code-block:: console
147 ./dpdk-testpmd --vdev=net_mvneta,iface=eth0,iface=eth1 -c 3 -- \
148 -i --p 3 -a --txd 256 --rxd 128 --rxq=1 --txq=1 --nb-cores=1
151 In order to run l2fwd example application following command can be used:
153 .. code-block:: console
155 ./dpdk-l2fwd --vdev=net_mvneta,iface=eth0,iface=eth1 -c 3 -- -T 1 -p 3