Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
virtio: add support for tx-queue-size
[vpp.git]
/
src
/
vnet
/
devices
/
virtio
/
virtio_pci_modern.c
diff --git
a/src/vnet/devices/virtio/virtio_pci_modern.c
b/src/vnet/devices/virtio/virtio_pci_modern.c
index
f7313d8
..
50a7b39
100644
(file)
--- a/
src/vnet/devices/virtio/virtio_pci_modern.c
+++ b/
src/vnet/devices/virtio/virtio_pci_modern.c
@@
-164,9
+164,7
@@
virtio_pci_modern_set_queue_size (vlib_main_t * vm, virtio_if_t * vif,
return;
}
return;
}
- if (virtio_pci_modern_get_queue_size (vm, vif, queue_id) > queue_size)
- virtio_pci_reg_write_u16 (vif, VIRTIO_QUEUE_SIZE_OFFSET (vif),
- queue_size);
+ virtio_pci_reg_write_u16 (vif, VIRTIO_QUEUE_SIZE_OFFSET (vif), queue_size);
}
static u16
}
static u16