Debian Codegraph @

doc/source/user/plugins/ovs.rst

raw
1 ============
2 Open vSwitch
3 ============
4
5 The Open vSwitch plugin, ``vif_plug_ovs``, is an *os-vif* VIF plugin for the
6 Open vSwitch network backend. It is one of three plugins provided as part of
7 *os-vif* itself, the others being :doc:`linux-bridge` and :doc:`noop`.
8
9 Supported VIF Types
10 -------------------
11
12 The Open vSwitch plugin provides support for the following VIF types:
13
14 :mod:`~os_vif.objects.VIFOpenVSwitch`
15 Configuration where a guest is directly connected an Open vSwitch bridge.
16
17 :mod:`~os_vif.objects.VIFBridge`
18 Configuration where a guest is connected to a Linux bridge via a TAP device,
19 and that bridge is connected to the Open vSwitch bridge. This allows for the
20 use of ``iptables`` rules for filtering traffic.
21
22 :mod:`~os_vif.objects.VIFVHostUser`
23 Configuration where a guest exposes a UNIX socket for its control plane. This
24 configuration is used with the `DPDK datapath of Open vSwitch`__.
25
26 __ http://docs.openvswitch.org/en/latest/howto/dpdk/
27
28 :mod:`~os_vif.objects.VIFHostDevice`
29 Configuration where an :term:`SR-IOV` PCI device :term:`VF` is passed through
30 to a guest. The ``hw-tc-offload`` feature should be enabled on the SR-IOV
31 :term:`PF` using :command:`ethtool`:
32
33 .. code-block:: shell
34
35 ethtool -K <PF> hw-tc-offload
36
37 This will create a *VF representor* per VF. The VF representor plays the same
38 role as TAP devices in Para-Virtual (PV) setup. In this case the ``plug()``
39 method connects the VF representor to the OpenVSwitch bridge.
40
41 .. important::
42
43 Support for this feature requires Linux Kernel >= 4.8 and Open vSwitch
44 2.8. These add support for :term:`tc`-based hardware offloads for SR-IOV
45 VFs and offloading of OVS datapath rules using tc, respectively.
46
47 .. versionadded:: 1.5.0
48
49 For information on the VIF type objects, refer to :doc:`/user/vif-types`. Note
50 that only the above VIF types are supported by this plugin.