tree: fca3468f630010bc8dd3750b4e5c43c6af571705 [path history] [tgz]
  1. pp2/
  2. CMakeLists.txt
  3. plugin.c
  4. README.md
src/plugins/marvell/README.md

Marvel device plugin for VPP {#marvel_plugin_doc}

##Overview This plugins provides native device support for Marvell PP2 network device, by use of Marvel Usermode SDK (MUSDK). Code is developed and tested on MACCHIATObin board.

##Prerequisites Plugins depends on installed MUSDK and Marvell provided linux kernel with MUSDK provided kernel patches (see patches/linux in musdk repo and relevant documentation. Kernel version used: 4.4.52 armada-17.10.1 MUSDK version used: armada-17.10.3 MUSDK must be compiled with --enable-bpool-dma=64 parameter. Following kernel modules from MUSDK must be loaded for plugin to work:

  • musdk_uio.ko
  • mv_pp_uio.ko

Usage

Interface Cration

Interfaces are dynamically created with following CLI:

create interface marvell pp2 name eth0
set interface state mv-ppio0/0 up

Where eth0 is linux interface name and mv-ppioX/Y is VPP interface name where X is PP2 device ID and Y is PPIO ID Interface needs to be assigned to MUSDK in FDT configuration and linux interface state must be up.

Interface Deletion

Interface can be deleted with following CLI:

delete interface marvell pp2 <interface name>

Interface Statistics

Interface statistics can be displayed with sh hardware-interface mv-ppio0/0 command.

Interaction with DPDK plugin

This plugin doesn't have any dependency on DPDK or DPDK plugin but it can work with DPDK plugin enabled or disabled. It is observed that performace is better around 30% when DPDK plugin is disabled, as DPDK plugin registers own buffer manager, which needs to deal with additional metadata in each packet.

DPKD plugin can be disabled by adding following config to the startup.conf.

plugins {
  dpdk_plugin.so { disable }
}