| 2925 | } |
| 2926 | |
| 2927 | static int |
| 2928 | send_vhost_reply(struct virtio_net *dev, int sockfd, struct vhu_msg_context *ctx) |
| 2929 | { |
| 2930 | if (!ctx) |
| 2931 | return 0; |
| 2932 | |
| 2933 | ctx->msg.flags &= ~VHOST_USER_VERSION_MASK; |
| 2934 | ctx->msg.flags &= ~VHOST_USER_NEED_REPLY; |
| 2935 | ctx->msg.flags |= VHOST_USER_VERSION; |
| 2936 | ctx->msg.flags |= VHOST_USER_REPLY_MASK; |
| 2937 | |
| 2938 | return send_vhost_message(dev, sockfd, ctx); |
| 2939 | } |
| 2940 | |
| 2941 | static int |
| 2942 | send_vhost_backend_message(struct virtio_net *dev, struct vhu_msg_context *ctx) |
no test coverage detected