diff options
author | 2024-12-18 20:36:38 +0200 | |
---|---|---|
committer | 2024-12-18 21:38:58 +0200 | |
commit | 6f3574916e3bf880a907b38ec51d98279ceebc0d (patch) | |
tree | 9e30b0f083dd262745b247e9070af0d8cdd3c36a /include/vhost_user_loopback.h | |
parent | 7c56b4ab66bab75f629900a1d59d8cae7745525e (diff) |
Update virtio-loopback adapter - Add priority feature
Add scheduling mechanism for virtio interrupts and
messages. This mechanism can be used to prioritize
one virtio-device's requests over the other by
setting the args "credits=" and "priority=" into
the adapter's arguments.
Change-Id: Id322c21b87b41317153b649191d9e7e66d2fb317
Signed-off-by: Timos Ampelikiotis <t.ampelikiotis@virtualopensystems.com>
Diffstat (limited to 'include/vhost_user_loopback.h')
-rw-r--r-- | include/vhost_user_loopback.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/vhost_user_loopback.h b/include/vhost_user_loopback.h index 8b0294f..25f9a25 100644 --- a/include/vhost_user_loopback.h +++ b/include/vhost_user_loopback.h @@ -239,6 +239,9 @@ typedef struct Device { int device_index; int requires_socket; int client_socket; + bool priority_enabled; + int credits; + int priority_group; } Device; typedef struct adapter_dev { |