vdpa: Accessing CVQ header through its structure
commit45c4101828a483b87863f2e2ba6d98faf0ff7d92
authorHawkins Jiawei <yin31149@gmail.com>
Fri, 7 Jul 2023 15:27:32 +0000 (7 23:27 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 10 Jul 2023 22:59:32 +0000 (10 18:59 -0400)
treeda42aba4462b1df7e4130a0c0532db35503b5591
parentb77a5f22aca4cef2dc893ea544841bdd95dc83ba
vdpa: Accessing CVQ header through its structure

We can access the CVQ header through `struct virtio_net_ctrl_hdr`,
instead of accessing it through a `uint8_t` pointer,
which improves the code's readability and maintainability.

Signed-off-by: Hawkins Jiawei <yin31149@gmail.com>
Message-Id: <cd522e06a4371e9d6b8a1c1a86f90a92401d56e8.1688743107.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