diff options
author | Paul Vinciguerra <pvinci@vinciconsulting.com> | 2019-10-29 16:11:09 -0400 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2019-10-30 09:08:11 +0000 |
commit | 97c998c2813d7cea4a067a0b8ff246cad4924bf3 (patch) | |
tree | d29a68839f287fa8975e05f17bb3c096ee51e352 /src/vnet/devices/virtio | |
parent | 3ae52627125a4c97bff91d43adad9bbaed42a6f5 (diff) |
docs: devices-- add FEATURES.yaml
Type: docs
Change-Id: I039ba9ad5385452b202366fba0b367506a21ea4f
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'src/vnet/devices/virtio')
-rw-r--r-- | src/vnet/devices/virtio/FEATURE.yaml | 9 | ||||
-rw-r--r-- | src/vnet/devices/virtio/vhost_user.h | 2 | ||||
-rw-r--r-- | src/vnet/devices/virtio/vhost_user_input.c | 2 | ||||
-rw-r--r-- | src/vnet/devices/virtio/vhost_user_output.c | 2 | ||||
-rw-r--r-- | src/vnet/devices/virtio/virtio.api | 4 | ||||
-rw-r--r-- | src/vnet/devices/virtio/virtio.h | 2 |
6 files changed, 15 insertions, 6 deletions
diff --git a/src/vnet/devices/virtio/FEATURE.yaml b/src/vnet/devices/virtio/FEATURE.yaml new file mode 100644 index 00000000000..69f4739265b --- /dev/null +++ b/src/vnet/devices/virtio/FEATURE.yaml @@ -0,0 +1,9 @@ +name: Virtio PCI Device +maintainer: Mohsin Kazmi <sykazmi@cisco.com> +features: + - connection to the emulated pci interface presented to vpp from the host interface. +description: "Create a virtio-backed PCI device interface" +missing: + - API dump filtering by sw_if_index +state: production +properties: [API, CLI, STATS, MULTITHREAD] diff --git a/src/vnet/devices/virtio/vhost_user.h b/src/vnet/devices/virtio/vhost_user.h index 90669a7dfbe..f14f26a71e4 100644 --- a/src/vnet/devices/virtio/vhost_user.h +++ b/src/vnet/devices/virtio/vhost_user.h @@ -36,7 +36,7 @@ #define VHOST_USER_PROTOCOL_FEATURES ((1ULL << VHOST_USER_PROTOCOL_F_MQ) | \ (1ULL << VHOST_USER_PROTOCOL_F_LOG_SHMFD)) -/* If multiqueue is provided by host, then we suppport it. */ +/* If multiqueue is provided by host, then we support it. */ #define VIRTIO_NET_CTRL_MQ 4 #define VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET 0 #define VIRTIO_NET_CTRL_MQ_VQ_PAIRS_MIN 1 diff --git a/src/vnet/devices/virtio/vhost_user_input.c b/src/vnet/devices/virtio/vhost_user_input.c index ef35d23a03c..11d45812e39 100644 --- a/src/vnet/devices/virtio/vhost_user_input.c +++ b/src/vnet/devices/virtio/vhost_user_input.c @@ -426,7 +426,7 @@ vhost_user_if_input (vlib_main_t * vm, /* * For small packets (<2kB), we will not need more than one vlib buffer - * per packet. In case packets are bigger, we will just yeld at some point + * per packet. In case packets are bigger, we will just yield at some point * in the loop and come back later. This is not an issue as for big packet, * processing cost really comes from the memory copy. * The assumption is that big packets will fit in 40 buffers. diff --git a/src/vnet/devices/virtio/vhost_user_output.c b/src/vnet/devices/virtio/vhost_user_output.c index 9b9f763b92f..5bd60d4e96e 100644 --- a/src/vnet/devices/virtio/vhost_user_output.c +++ b/src/vnet/devices/virtio/vhost_user_output.c @@ -571,7 +571,7 @@ done: * retry. * The idea is that it is better to waste some time on packets * that have been processed already than dropping them and get - * more fresh packets with a good likelyhood that they will be dropped too. + * more fresh packets with a good likelihood that they will be dropped too. * This technique also gives more time to VM driver to pick-up packets. * In case the traffic flows from physical to virtual interfaces, this * technique will end-up leveraging the physical NIC buffer in order to diff --git a/src/vnet/devices/virtio/virtio.api b/src/vnet/devices/virtio/virtio.api index 9e81b35c175..f2a3a412126 100644 --- a/src/vnet/devices/virtio/virtio.api +++ b/src/vnet/devices/virtio/virtio.api @@ -15,13 +15,13 @@ option version = "1.0.0"; -/** \brief Initialize a new virtio pci interface with the given paramters +/** \brief Initialize a new virtio pci interface with the given parameters @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request @param pci_addr - pci address as unsigned 32bit integer: 0-15 domain, 16-23 bus, 24-28 slot, 29-31 function @param use_random_mac - let the system generate a unique mac address - @param mac_address - mac addr to assign to the interface if use_radom not set + @param mac_address - mac addr to assign to the interface if use_random not set @param gso_enabled - enable gso feature if available, 1 to enable @param features - the virtio features which driver should negotiate with device */ diff --git a/src/vnet/devices/virtio/virtio.h b/src/vnet/devices/virtio/virtio.h index 070d0a45262..dcbf865d706 100644 --- a/src/vnet/devices/virtio/virtio.h +++ b/src/vnet/devices/virtio/virtio.h @@ -49,7 +49,7 @@ _ (VIRTIO_NET_F_CTRL_MAC_ADDR, 23) /* Set MAC address */ \ _ (VIRTIO_F_NOTIFY_ON_EMPTY, 24) \ _ (VHOST_F_LOG_ALL, 26) /* Log all write descriptors */ \ - _ (VIRTIO_F_ANY_LAYOUT, 27) /* Can the device handle any descripor layout */ \ + _ (VIRTIO_F_ANY_LAYOUT, 27) /* Can the device handle any descriptor layout */ \ _ (VIRTIO_RING_F_INDIRECT_DESC, 28) /* Support indirect buffer descriptors */ \ _ (VIRTIO_RING_F_EVENT_IDX, 29) /* The Guest publishes the used index for which it expects an interrupt \ * at the end of the avail ring. Host should ignore the avail->flags field. */ \ |