NameDateSize

..14-Apr-20204 KiB

cli.cH A D30-Aug-201916.7 KiB

CMakeLists.txtH A D30-Sep-2019816

FEATURE.yamlH A D06-Jan-2020287

format.cH A D31-Oct-20196.3 KiB

input.cH A D24-Sep-201913.1 KiB

output.cH A D30-Aug-20196.3 KiB

plugin.cH A D03-May-20191.1 KiB

README.mdH A D19-Apr-20191.8 KiB

vmxnet3.apiH A D07-Dec-20194.4 KiB

vmxnet3.cH A D04-Dec-201926 KiB

vmxnet3.hH A D30-Aug-201920.6 KiB

vmxnet3_api.cH A D07-Dec-20195.9 KiB

vmxnet3_test.cH A D07-Dec-20196.4 KiB

README.md

1# VMWARE vmxnet3 device driver plugin {#vmxnet3_doc}
2
3##Overview
4This plugin provides native PCI driver support for VMWare vmxnet3.
5
6##Prerequisites
7 * This code is tested with vfio-pci driver installed with Ubuntu 18.04 which
8has kernel version 4.15.0-33-generic.
9
10 * This driver is tested with ESXi vSwitch version 6.5/6.7 for LRO/TSO support, VMware Workstation 15 Pro (no LRO/TSO), and VMware Fusion 11 Pro (no LRO/TSO)
11
12 * Driver requires MSI-X interrupt support, which is not supported by
13uio_pci_generic driver. So vfio-pci must be used. On systems without IOMMU,
14vfio driver can still be used with 4.15.0-33-generic kernel (Ubuntu 18.04) which supports no-iommu mode.
15
16##Known issues
17
18* VLAN filter
19
20## Usage
21### System setup
22
231. load VFIO driver
24```
25sudo modprobe vfio-pci
26```
27
282. Make sure the interface is down
29```
30sudo ifconfig <if-name> down
31```
32
33Steps 3 and 4 are optional. They can be accomplished by specifying the optional keyword "bind" when creating the vmxnet3 interface.
34
353. (systems without IOMMU only) enable unsafe NOIOMMU mode
36```
37echo Y | sudo tee /sys/module/vfio/parameters/enable_unsafe_noiommu_mode
38```
39
404. Bind interface to vfio-pci
41```
42sudo dpdk-devbind.py --bind vfio-pci 0b:00.0
43```
44
45### Interface Creation
46Interface can be dynamically created with following CLI, with or without the bind option. If step 3 and 4 were executed, bind can be omitted.
47```
48create interface vmxnet3 0000:0b:00.0 bind
49set int state vmxnet3-0/b/0/0 up
50```
51
52### Interface Deletion
53Interface can be deleted with following CLI:
54```
55delete interface vmxnet3 <if-name>
56```
57
58### Interface Statistics
59Interface statistics can be displayed with `show hardware-interface <if-name>`
60command.
61
62### Show Interface CLI
63Interface and ring information can be obtained with
64`show vmxnet3 [if-name] [desc]`
65