net/mrvl: rename PMD as mvpp2

The name "mrvl" for Marvell PMD driver for PPv2 Marvell PPv2
(Packet Processor v2) 1/10 Gbps adapter is too generic and causes
problem for adding new PMD drivers for other Marvell devices.
Changed to "mvpp2" for specific Marvell PPv2 PMD.

This patch doesn't introduce any change except renaming.

Signed-off-by: Natalie Samsonov <nsamsono@marvell.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
This commit is contained in:
Natalie Samsonov 2018-03-26 16:38:50 +02:00 committed by Ferruh Yigit
parent f3129efdb4
commit fe93968722
15 changed files with 29 additions and 29 deletions

View File

@ -486,15 +486,15 @@ F: drivers/net/mlx5/
F: doc/guides/nics/mlx5.rst F: doc/guides/nics/mlx5.rst
F: doc/guides/nics/features/mlx5.ini F: doc/guides/nics/features/mlx5.ini
Marvell mrvl Marvell mvpp2
M: Jacek Siuda <jck@semihalf.com> M: Jacek Siuda <jck@semihalf.com>
M: Tomasz Duszynski <tdu@semihalf.com> M: Tomasz Duszynski <tdu@semihalf.com>
M: Dmitri Epshtein <dima@marvell.com> M: Dmitri Epshtein <dima@marvell.com>
M: Natalie Samsonov <nsamsono@marvell.com> M: Natalie Samsonov <nsamsono@marvell.com>
M: Jianbo Liu <jianbo.liu@arm.com> M: Jianbo Liu <jianbo.liu@arm.com>
F: drivers/net/mrvl/ F: drivers/net/mvpp2/
F: doc/guides/nics/mrvl.rst F: doc/guides/nics/mvpp2.rst
F: doc/guides/nics/features/mrvl.ini F: doc/guides/nics/features/mvpp2.ini
Microsoft vdev_netvsc - EXPERIMENTAL Microsoft vdev_netvsc - EXPERIMENTAL
M: Matan Azrad <matan@mellanox.com> M: Matan Azrad <matan@mellanox.com>

View File

@ -383,7 +383,7 @@ CONFIG_RTE_LIBRTE_PMD_FAILSAFE=y
# #
# Compile Marvell PMD driver # Compile Marvell PMD driver
# #
CONFIG_RTE_LIBRTE_MRVL_PMD=n CONFIG_RTE_LIBRTE_MVPP2_PMD=n
# #
# Compile virtual device driver for NetVSC on Hyper-V/Azure # Compile virtual device driver for NetVSC on Hyper-V/Azure

View File

@ -86,7 +86,7 @@ Currently there are two driver specific compilation options in
Toggle display of debugging messages. Toggle display of debugging messages.
For a list of prerequisites please refer to `Prerequisites` section in For a list of prerequisites please refer to `Prerequisites` section in
:ref:`MRVL Poll Mode Driver <mrvl_poll_mode_driver>` guide. :ref:`MVPP2 Poll Mode Driver <mvpp2_poll_mode_driver>` guide.
MRVL CRYPTO PMD requires MUSDK built with EIP197 support thus following MRVL CRYPTO PMD requires MUSDK built with EIP197 support thus following
extra option must be passed to the library configuration script: extra option must be passed to the library configuration script:
@ -123,7 +123,7 @@ operation:
.. code-block:: console .. code-block:: console
./l2fwd-crypto --vdev=net_mrvl,iface=eth0 --vdev=crypto_mrvl -- \ ./l2fwd-crypto --vdev=eth_mvpp2,iface=eth0 --vdev=crypto_mrvl -- \
--cipher_op ENCRYPT --cipher_algo aes-cbc \ --cipher_op ENCRYPT --cipher_algo aes-cbc \
--cipher_key 00:01:02:03:04:05:06:07:08:09:0a:0b:0c:0d:0e:0f \ --cipher_key 00:01:02:03:04:05:06:07:08:09:0a:0b:0c:0d:0e:0f \
--auth_op GENERATE --auth_algo sha1-hmac \ --auth_op GENERATE --auth_algo sha1-hmac \

View File

@ -1,5 +1,5 @@
; ;
; Supported features of the 'mrvl' network poll mode driver. ; Supported features of the 'mvpp2' network poll mode driver.
; ;
; Refer to default.ini for the full list of available PMD features. ; Refer to default.ini for the full list of available PMD features.
; ;

View File

@ -30,7 +30,7 @@ Network Interface Controller Drivers
liquidio liquidio
mlx4 mlx4
mlx5 mlx5
mrvl mvpp2
nfp nfp
octeontx octeontx
qede qede

View File

@ -29,12 +29,12 @@
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.. _mrvl_poll_mode_driver: .. _mvpp2_poll_mode_driver:
MRVL Poll Mode Driver MVPP2 Poll Mode Driver
====================== ======================
The MRVL PMD (librte_pmd_mrvl) provides poll mode driver support The MVPP2 PMD (librte_pmd_mvpp2) provides poll mode driver support
for the Marvell PPv2 (Packet Processor v2) 1/10 Gbps adapter. for the Marvell PPv2 (Packet Processor v2) 1/10 Gbps adapter.
Detailed information about SoCs that use PPv2 can be obtained here: Detailed information about SoCs that use PPv2 can be obtained here:
@ -52,7 +52,7 @@ Detailed information about SoCs that use PPv2 can be obtained here:
Features Features
-------- --------
Features of the MRVL PMD are: Features of the MVPP2 PMD are:
- Speed capabilities - Speed capabilities
- Link status - Link status
@ -136,9 +136,9 @@ Config File Options
The following options can be modified in the ``config`` file. The following options can be modified in the ``config`` file.
- ``CONFIG_RTE_LIBRTE_MRVL_PMD`` (default ``n``) - ``CONFIG_RTE_LIBRTE_MVPP2_PMD`` (default ``n``)
Toggle compilation of the librte_pmd_mrvl driver. Toggle compilation of the librte mvpp2 driver.
QoS Configuration QoS Configuration
@ -294,7 +294,7 @@ Usage example
.. code-block:: console .. code-block:: console
./testpmd --vdev=eth_mrvl,iface=eth0,iface=eth2,cfg=/home/user/mrvl.conf \ ./testpmd --vdev=eth_mvpp2,iface=eth0,iface=eth2,cfg=/home/user/mrvl.conf \
-c 7 -- -i -a --disable-hw-vlan-strip --rxq=3 --txq=3 -c 7 -- -i -a --disable-hw-vlan-strip --rxq=3 --txq=3
@ -321,7 +321,7 @@ the path to the MUSDK installation directory needs to be exported.
export LIBMUSDK_PATH=<musdk>/usr/local export LIBMUSDK_PATH=<musdk>/usr/local
export CROSS=aarch64-linux-gnu- export CROSS=aarch64-linux-gnu-
make config T=arm64-armv8a-linuxapp-gcc make config T=arm64-armv8a-linuxapp-gcc
sed -ri 's,(MRVL_PMD=)n,\1y,' build/.config sed -ri 's,(MVPP2_PMD=)n,\1y,' build/.config
make make
Flow API Flow API
@ -428,7 +428,7 @@ Before proceeding run testpmd user application:
.. code-block:: console .. code-block:: console
./testpmd --vdev=net_mrvl,iface=eth0,iface=eth2 -c 3 -- -i --p 3 -a --disable-hw-vlan-strip ./testpmd --vdev=eth_mvpp2,iface=eth0,iface=eth2 -c 3 -- -i --p 3 -a --disable-hw-vlan-strip
Example #1 Example #1
^^^^^^^^^^ ^^^^^^^^^^
@ -492,7 +492,7 @@ For additional information about classifier please consult
Usage Example Usage Example
------------- -------------
MRVL PMD requires extra out of tree kernel modules to function properly. MVPP2 PMD requires extra out of tree kernel modules to function properly.
`musdk_uio` and `mv_pp_uio` sources are part of the MUSDK. Please consult `musdk_uio` and `mv_pp_uio` sources are part of the MUSDK. Please consult
``doc/musdk_get_started.txt`` for the detailed build instructions. ``doc/musdk_get_started.txt`` for the detailed build instructions.
For `mvpp2x_sysfs` please consult ``Documentation/pp22_sysfs.txt`` for the For `mvpp2x_sysfs` please consult ``Documentation/pp22_sysfs.txt`` for the
@ -515,6 +515,6 @@ In order to run testpmd example application following command can be used:
.. code-block:: console .. code-block:: console
./testpmd --vdev=eth_mrvl,iface=eth0,iface=eth2 -c 7 -- \ ./testpmd --vdev=eth_mvpp2,iface=eth0,iface=eth2 -c 7 -- \
--burst=128 --txd=2048 --rxd=1024 --rxq=2 --txq=2 --nb-cores=2 \ --burst=128 --txd=2048 --rxd=1024 --rxq=2 --txq=2 --nb-cores=2 \
-i -a --rss-udp -i -a --rss-udp

View File

@ -31,7 +31,7 @@ DIRS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += ixgbe
DIRS-$(CONFIG_RTE_LIBRTE_LIO_PMD) += liquidio DIRS-$(CONFIG_RTE_LIBRTE_LIO_PMD) += liquidio
DIRS-$(CONFIG_RTE_LIBRTE_MLX4_PMD) += mlx4 DIRS-$(CONFIG_RTE_LIBRTE_MLX4_PMD) += mlx4
DIRS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5 DIRS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5
DIRS-$(CONFIG_RTE_LIBRTE_MRVL_PMD) += mrvl DIRS-$(CONFIG_RTE_LIBRTE_MVPP2_PMD) += mvpp2
DIRS-$(CONFIG_RTE_LIBRTE_NFP_PMD) += nfp DIRS-$(CONFIG_RTE_LIBRTE_NFP_PMD) += nfp
DIRS-$(CONFIG_RTE_LIBRTE_BNXT_PMD) += bnxt DIRS-$(CONFIG_RTE_LIBRTE_BNXT_PMD) += bnxt
DIRS-$(CONFIG_RTE_LIBRTE_PMD_NULL) += null DIRS-$(CONFIG_RTE_LIBRTE_PMD_NULL) += null
@ -59,7 +59,7 @@ ifeq ($(CONFIG_RTE_LIBRTE_VHOST),y)
DIRS-$(CONFIG_RTE_LIBRTE_PMD_VHOST) += vhost DIRS-$(CONFIG_RTE_LIBRTE_PMD_VHOST) += vhost
endif # $(CONFIG_RTE_LIBRTE_VHOST) endif # $(CONFIG_RTE_LIBRTE_VHOST)
ifeq ($(CONFIG_RTE_LIBRTE_MRVL_PMD),y) ifeq ($(CONFIG_RTE_LIBRTE_MVPP2_PMD),y)
ifeq ($(CONFIG_RTE_LIBRTE_CFGFILE),n) ifeq ($(CONFIG_RTE_LIBRTE_CFGFILE),n)
$(error "RTE_LIBRTE_CFGFILE must be enabled in configuration!") $(error "RTE_LIBRTE_CFGFILE must be enabled in configuration!")
endif endif

View File

@ -14,7 +14,7 @@ endif
endif endif
# library name # library name
LIB = librte_pmd_mrvl.a LIB = librte_pmd_mvpp2.a
# library version # library version
LIBABIVER := 1 LIBABIVER := 1
@ -35,8 +35,8 @@ LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs -lrte_cfgfile
LDLIBS += -lrte_bus_vdev LDLIBS += -lrte_bus_vdev
# library source files # library source files
SRCS-$(CONFIG_RTE_LIBRTE_MRVL_PMD) += mrvl_ethdev.c SRCS-$(CONFIG_RTE_LIBRTE_MVPP2_PMD) += mrvl_ethdev.c
SRCS-$(CONFIG_RTE_LIBRTE_MRVL_PMD) += mrvl_qos.c SRCS-$(CONFIG_RTE_LIBRTE_MVPP2_PMD) += mrvl_qos.c
SRCS-$(CONFIG_RTE_LIBRTE_MRVL_PMD) += mrvl_flow.c SRCS-$(CONFIG_RTE_LIBRTE_MVPP2_PMD) += mrvl_flow.c
include $(RTE_SDK)/mk/rte.lib.mk include $(RTE_SDK)/mk/rte.lib.mk

View File

@ -2828,5 +2828,5 @@ static struct rte_vdev_driver pmd_mrvl_drv = {
.remove = rte_pmd_mrvl_remove, .remove = rte_pmd_mrvl_remove,
}; };
RTE_PMD_REGISTER_VDEV(net_mrvl, pmd_mrvl_drv); RTE_PMD_REGISTER_VDEV(net_mvpp2, pmd_mrvl_drv);
RTE_PMD_REGISTER_ALIAS(net_mrvl, eth_mrvl); RTE_PMD_REGISTER_ALIAS(net_mvpp2, eth_mvpp2);

View File

@ -164,7 +164,7 @@ _LDLIBS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += -lrte_pmd_mlx5 -ldl
else else
_LDLIBS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += -lrte_pmd_mlx5 -libverbs -lmlx5 _LDLIBS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += -lrte_pmd_mlx5 -libverbs -lmlx5
endif endif
_LDLIBS-$(CONFIG_RTE_LIBRTE_MRVL_PMD) += -lrte_pmd_mrvl -L$(LIBMUSDK_PATH)/lib -lmusdk _LDLIBS-$(CONFIG_RTE_LIBRTE_MVPP2_PMD) += -lrte_pmd_mvpp2 -L$(LIBMUSDK_PATH)/lib -lmusdk
_LDLIBS-$(CONFIG_RTE_LIBRTE_NFP_PMD) += -lrte_pmd_nfp _LDLIBS-$(CONFIG_RTE_LIBRTE_NFP_PMD) += -lrte_pmd_nfp
_LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_NULL) += -lrte_pmd_null _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_NULL) += -lrte_pmd_null
_LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_PCAP) += -lrte_pmd_pcap -lpcap _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_PCAP) += -lrte_pmd_pcap -lpcap