net/vhost-user: Save ack_features to net_clients during vhost_user_start
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.
Signed-off-by Liu Xiangyu <[email protected]>
Signed-off-by Yi Wang <[email protected]>
--- net/vhost-user.c | 4 ++++ 1 file changed, 4 insertions(+)
net/vhost-user.c +4 -0
@@ -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