937b7d96e4
Abstract vhost acked features saving into vhost_user_save_acked_features, export it as util function. Signed-off-by: Hyman Huang(黄勇) <huangy81@chinatelecom.cn> Signed-off-by: Guoyi Tu <tugy@chinatelecom.cn> Message-Id: <50dc9b09b0635e3052551efcc1046c2a85332fcb.1671627406.git.huangy81@chinatelecom.cn> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
20 lines
480 B
C
20 lines
480 B
C
/*
|
|
* vhost-user.h
|
|
*
|
|
* Copyright (c) 2013 Virtual Open Systems Sarl.
|
|
*
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
* See the COPYING file in the top-level directory.
|
|
*
|
|
*/
|
|
|
|
#ifndef VHOST_USER_H
|
|
#define VHOST_USER_H
|
|
|
|
struct vhost_net;
|
|
struct vhost_net *vhost_user_get_vhost_net(NetClientState *nc);
|
|
uint64_t vhost_user_get_acked_features(NetClientState *nc);
|
|
void vhost_user_save_acked_features(NetClientState *nc);
|
|
|
|
#endif /* VHOST_USER_H */
|