mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
tap: add Linux multiqueue support
This patch add basic multiqueue support for Linux. When multiqueue is needed, we will first check whether kernel support multiqueue tap before creating more queues. Two new functions tap_fd_enable() and tap_fd_disable() were introduced to enable and disable a specific queue. Since the multiqueue is only supported in Linux, return error on other platforms. Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
5193e5fbb5
commit
94fdc6d030
6 changed files with 97 additions and 0 deletions
|
@ -145,3 +145,14 @@ void tap_fd_set_offload(int fd, int csum, int tso4,
|
|||
int tso6, int ecn, int ufo)
|
||||
{
|
||||
}
|
||||
|
||||
int tap_fd_enable(int fd)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
int tap_fd_disable(int fd)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue