Skip to contentSkip to conversation

net/vhost-user: Save ack_features to net_clients during vhost_user_start

PATCH New Yi Wang 1 participant 1 message Apr 13, 2022 Networking

lore
Share & tools
lore

Yi Wang

author
#0 lore raw

PATCH 1/1 net/vhost-user: Save ack_features to net_clients during vhost_user_start

From: Liu Xiangyu <[email protected]>

During vhost_user_start, if openvswitch.service restart, cause the final features not expected. Because qemu not save the ack_features promptly.

---
 net/vhost-user.c | 4 ++++
 1 file changed, 4 insertions(+)
net/vhost-user.c +4 -0
index b1a0247..ce9dcb6 100644
@@ -92,6 +92,10 @@ static int vhost_user_start(int queues, NetClientState *ncs[],
             goto err;
         }
 
+        if (s->vhost_net) {
+            s->acked_features = vhost_net_get_acked_features(net);
+        }
+
         if (i == 0) {
             max_queues = vhost_net_get_max_queues(net);
             if (queues > max_queues) {
Signature · 1 line
1.8.3.1