Marvell device plugin
[vpp.git] / src / plugins / marvell / README.md
1 # Marvel device plugin for VPP   
2
3 ##Overview
4 This plugins provides native device support for Marvell PP2 network device, by use of Marvel Usermode SDK ([MUSDK][1]).
5 Code is developed and tested on [MACCHIATObin][2] board.
6
7 ##Prerequisites
8 Plugins depends on installed MUSDK and Marvell provided linux [kernel][3] with MUSDK provided kernel patches (see `patches/linux` in musdk repo and relevant documentation.
9 Kernel version used: **4.4.52 armada-17.10.1**
10 MUSDK version used: **armada-17.10.3**
11 MUSDK must be compiled with `--enable-bpool-dma=64` parameter.
12 Following kernel modules from MUSDK must be loaded for plugin to work:
13 * `musdk_uio.ko`
14 * `mv_pp_uio.ko`
15
16 ## Usage
17 ### Interface Cration
18 Interfaces are dynamically created with following CLI:
19 ```
20 create interface marvell pp2 name eth0
21 set interface state mv-ppio0/0 up
22 ```
23
24 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
25 Interface needs to be assigned to MUSDK in FDT configuration and linux interface state must be up.
26
27 ### Interface Deletion
28 Interface can be deleted with following CLI:
29 ```
30 delete interface marvell pp2 <interface name>
31 ```
32
33
34 ### Interface Statistics
35 Interface statistics can be displayed with `sh hardware-interface mv-ppio0/0`
36 command.
37
38 ### Interaction with DPDK plugin
39 This plugin doesn't have any dependency on DPDK or DPDK plugin but it can
40 work with DPDK plugin enabled or disabled. It is observed that performace is
41 better around 30% when DPDK plugin is disabled, as DPDK plugin registers 
42 own buffer manager, which needs to deal with additional metadata in each packet.
43
44 DPKD plugin can be disabled by adding following config to the startup.conf.
45
46 ```
47 plugins {
48   dpdk_plugin.so { disable }
49 }
50 ```
51
52
53 [1]: https://github.com/MarvellEmbeddedProcessors/musdk-marvell
54 [2]: http://macchiatobin.net
55 [3]: https://github.com/MarvellEmbeddedProcessors/linux-marvell