* [PATCH] net/vhost-user: Save ack_features to net_clients during vhost_user_start
@ 2022-04-13 8:17 Yi Wang
0 siblings, 0 replies; only message in thread
From: Yi Wang @ 2022-04-13 8:17 UTC (permalink / raw)
To: qemu-devel; +Cc: wang.yi59, wang.liang82, xue.zhihong, Liu Xiangyu
From: Liu Xiangyu <liu.xiangyu2@zte.com.cn>
During vhost_user_start, if openvswitch.service restart, cause the final features
not expected. Because qemu not save the ack_features promptly.
Signed-off-by: Liu Xiangyu <liu.xiangyu2@zte.com.cn>
Signed-off-by: Yi Wang <wang.yi59@zte.com.cn>
---
net/vhost-user.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/net/vhost-user.c b/net/vhost-user.c
index b1a0247..ce9dcb6 100644
--- a/net/vhost-user.c
+++ b/net/vhost-user.c
@@ -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) {
--
1.8.3.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-04-13 0:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-13 8:17 [PATCH] net/vhost-user: Save ack_features to net_clients during vhost_user_start Yi Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).