MCPcopy Create free account
hub / github.com/F-Stack/f-stack / send_vhost_reply

Function send_vhost_reply

dpdk/lib/vhost/vhost_user.c:2927–2939  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2925}
2926
2927static int
2928send_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
2941static int
2942send_vhost_backend_message(struct virtio_net *dev, struct vhu_msg_context *ctx)

Callers 2

vhost_user_msg_handlerFunction · 0.85

Calls 1

send_vhost_messageFunction · 0.85

Tested by

no test coverage detected