Add support for virtio-forwarder VNIC type

* This patch adds support for the virtio-forwarder VNIC type.
  * The virtio-forwarder VNIC type has been added as another option for
    setting the --vnic-type property on the "port set" and
    "port create" commands. This requests a low-latency virtio port inside
    the instance, likely backed by hardware acceleration. Currently the
    Agilio OVS external plugin provides support for this, with support from
    other vendors following soon.
  * Corresponding neutron-lib change:
    https://review.openstack.org/#/c/483530/
  * Nova spec for Agilio OVS enablement:
    https://specs.openstack.org/openstack/nova-specs/specs/pike/approved/netronome-smartnic-enablement.html

Change-Id: Idbc8071afe95f8594b40e2f93e5411e7185f946f
Signed-off-by: Jan Gutter <jan.gutter@netronome.com>
This commit is contained in:
Jan Gutter 2017-07-13 21:52:26 +02:00
parent 894df67c67
commit cf5dfa77e1
3 changed files with 16 additions and 6 deletions

View File

@ -60,8 +60,8 @@ Create new port
.. option:: --vnic-type <vnic-type>
VNIC type for this port (direct | direct-physical | macvtap | normal | baremetal,
default: normal)
VNIC type for this port (direct | direct-physical | macvtap | normal | baremetal |
virtio-forwarder, default: normal)
.. option:: --binding-profile <binding-profile>
@ -262,8 +262,8 @@ Set port properties
.. option:: --vnic-type <vnic-type>
VNIC type for this port (direct | direct-physical | macvtap | normal | baremetal,
default: normal)
VNIC type for this port (direct | direct-physical | macvtap | normal | baremetal |
virtio-forwarder, default: normal)
.. option:: --binding-profile <binding-profile>

View File

@ -248,9 +248,10 @@ def _add_updatable_args(parser):
'--vnic-type',
metavar='<vnic-type>',
choices=['direct', 'direct-physical', 'macvtap',
'normal', 'baremetal'],
'normal', 'baremetal', 'virtio-forwarder'],
help=_("VNIC type for this port (direct | direct-physical | "
"macvtap | normal | baremetal, default: normal)")
"macvtap | normal | baremetal | virtio-forwarder, "
" default: normal)")
)
# NOTE(dtroyer): --host-id is deprecated in Mar 2016. Do not
# remove before 3.x release or Mar 2017.

View File

@ -0,0 +1,9 @@
---
features:
- |
The ``virtio-forwarder`` VNIC type has been added as another option for
setting the ``--vnic-type`` property on the ``port set`` and
``port create`` commands. This requests a low-latency virtio port inside
the instance, likely backed by hardware acceleration. Currently the
Agilio OVS external plugin provides support for this, with support from
other vendors following soon.