]> git.ipfire.org Git - thirdparty/qemu.git/commit
vdpa: Check device ack in vhost_vdpa_net_load_rx_mode()
authorHawkins Jiawei <yin31149@gmail.com>
Fri, 13 Oct 2023 08:09:38 +0000 (16:09 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 18 Oct 2023 14:41:49 +0000 (10:41 -0400)
commit24e59cfe0cb53416b06c2c117bc22ff22dc54df3
tree3f78bfb5e252d292d56f0c8a496c0d011c40cc05
parent327dedb8df91f57ef917ab5b5db519146ee6f08b
vdpa: Check device ack in vhost_vdpa_net_load_rx_mode()

Considering that vhost_vdpa_net_load_rx_mode() is only called
within vhost_vdpa_net_load_rx() now, this patch refactors
vhost_vdpa_net_load_rx_mode() to include a check for the
device's ack, simplifying the code and improving its maintainability.

Signed-off-by: Hawkins Jiawei <yin31149@gmail.com>
Acked-by: Eugenio Pérez <eperezma@redhat.com>
Message-Id: <68811d52f96ae12d68f0d67d996ac1642a623943.1697165821.git.yin31149@gmail.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
net/vhost-vdpa.c