diff options
author | Hyman Huang(黄勇) <huangy81@chinatelecom.cn> | 2022-12-21 21:06:39 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2023-01-08 01:54:22 -0500 |
commit | bebcac052a019a9818c1870622294ee2675b48ef (patch) | |
tree | 5b66dd42e5f7e6a3dfb36d49e36d4be8060eb04d /net | |
parent | 937b7d96e43943b808f0ca51fddf5c263209c535 (diff) | |
download | qemu-bebcac052a019a9818c1870622294ee2675b48ef.zip qemu-bebcac052a019a9818c1870622294ee2675b48ef.tar.gz qemu-bebcac052a019a9818c1870622294ee2675b48ef.tar.bz2 |
vhost-user: Refactor the chr_closed_bh
Use vhost_user_save_acked_features to implemente acked features
saving.
Signed-off-by: Hyman Huang(黄勇) <huangy81@chinatelecom.cn>
Signed-off-by: Guoyi Tu <tugy@chinatelecom.cn>
Message-Id: <6699ee88687b62fb8152fe021e576cd2f468d7ca.1671627406.git.huangy81@chinatelecom.cn>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/vhost-user.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/net/vhost-user.c b/net/vhost-user.c index f5cb095..5993e4a 100644 --- a/net/vhost-user.c +++ b/net/vhost-user.c @@ -260,11 +260,7 @@ static void chr_closed_bh(void *opaque) s = DO_UPCAST(NetVhostUserState, nc, ncs[0]); for (i = queues -1; i >= 0; i--) { - s = DO_UPCAST(NetVhostUserState, nc, ncs[i]); - - if (s->vhost_net) { - s->acked_features = vhost_net_get_acked_features(s->vhost_net); - } + vhost_user_save_acked_features(ncs[i]); } qmp_set_link(name, false, &err); |