This patch reorganizes the vdpa_feature_bits array
in ascending order based on its value to avoid future duplicates.
Signed-off-by: Hawkins Jiawei <yin31149@gmail.com>
---
v2:
- resolve conflicts with the master branch
v1: https://lists.nongnu.org/archive/html/qemu-devel/2023-06/msg01585.html
net/vhost-vdpa.c | 24 +++++++++++++-----------
1 file changed, 13 insertions(+), 11 deletions(-)
diff --git a/net/vhost-vdpa.c b/net/vhost-vdpa.c
index 0479988a79..db7f1241af 100644
--- a/net/vhost-vdpa.c
+++ b/net/vhost-vdpa.c
@@ -50,15 +50,12 @@ typedef struct VhostVDPAState {
bool started;
} VhostVDPAState;
+/* The array is sorted in ascending order based on its value */