OSDN Git Service

virtio-net: Unlimit tx queue size if peer is vdpa
authorEugenio Pérez <eperezma@redhat.com>
Thu, 17 Feb 2022 17:50:29 +0000 (18:50 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 6 Mar 2022 10:08:23 +0000 (05:08 -0500)
commit0ea5778f066ea5c5e73246a4c11f0773edc4c45d
tree085288c477153acd08cd5244fbc3b184e6ae5311
parente609301b458bf6daba478299dc5aea5d1fbaea39
virtio-net: Unlimit tx queue size if peer is vdpa

The code used to limit the maximum size of tx queue for others backends
than vhost_user since the introduction of configurable tx queue size in
9b02e1618cf2 ("virtio-net: enable configurable tx queue size").

As vhost_user, vhost_vdpa devices should deal with memory region
crosses already, so let's use the full tx size.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Message-Id: <20220217175029.2517071-1-eperezma@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/net/virtio-net.c