From: Yi Wang <wang.yi59@zte.com.cn>
To: qemu-devel@nongnu.org
Cc: wang.yi59@zte.com.cn, wang.liang82@zte.com.cn,
xue.zhihong@zte.com.cn, Liu Xiangyu <liu.xiangyu2@zte.com.cn>
Subject: [PATCH] net/vhost-user: Save ack_features to net_clients during vhost_user_start
Date: Wed, 13 Apr 2022 16:17:56 +0800 [thread overview]
Message-ID: <20220413081756.52983-1-wang.yi59@zte.com.cn> (raw)
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
reply other threads:[~2022-04-13 0:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220413081756.52983-1-wang.yi59@zte.com.cn \
--to=wang.yi59@zte.com.cn \
--cc=liu.xiangyu2@zte.com.cn \
--cc=qemu-devel@nongnu.org \
--cc=wang.liang82@zte.com.cn \
--cc=xue.zhihong@zte.com.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).