Signed-off-by: Mauricio Vasquez B <mauricio.vasquezber...@studenti.polito.it> --- INSTALL.DPDK.md | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-)
diff --git a/INSTALL.DPDK.md b/INSTALL.DPDK.md index 9ec8bf6..4095402 100644 --- a/INSTALL.DPDK.md +++ b/INSTALL.DPDK.md @@ -81,7 +81,7 @@ Using the DPDK with ovs-vswitchd: 1. Setup system boot Add the following options to the kernel bootline: - + `default_hugepagesz=1GB hugepagesz=1G hugepages=1` 2. Setup DPDK devices: @@ -227,6 +227,29 @@ Using the DPDK with ovs-vswitchd: For more details regarding egress-policer parameters please refer to the vswitch.xml. +9. Port Hotplug + + ovs supports port hotplugging, it allows to use ports that were not bound + to DPDK when vswitchd was started. + In order to attach a port, it has to be bound to DPDK using the + dpdk_nic_bind.py script: + + `$DPDK_DIR/tools/dpdk_nic_bind.py --bind=igb_uio 0000:01:00.0` + + Then it can be attached to OVS: + + `ovs-appctl netdev-dpdk/port-ctl attach 0000:01:00.0` + + At this point, the user can create a ovs port using the add-port command. + + It is also possible to detach a port from ovs, the user has to remove the + port using the del-port command, then it can be detached using: + + `ovs-appctl netdev-dpdk/port-ctl detach dpdk0` + + This feature is not supported by all the NICs, please refer to the + [DPDK Port Hotplug Framework] in order to get more information. + Performance Tuning: ------------------- @@ -959,3 +982,4 @@ Please report problems to b...@openvswitch.org. [INSTALL.md]:INSTALL.md [DPDK Linux GSG]: http://www.dpdk.org/doc/guides/linux_gsg/build_dpdk.html#binding-and-unbinding-network-ports-to-from-the-igb-uioor-vfio-modules [DPDK Docs]: http://dpdk.org/doc +[DPDK Port Hotplug Framework]: http://dpdk.org/doc/guides/prog_guide/port_hotplug_framework.html -- 1.9.1 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev