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

Function vhost_user_set_log_fd

dpdk/lib/vhost/vhost_user.c:2384–2397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2382}
2383
2384static int vhost_user_set_log_fd(struct virtio_net **pdev,
2385 struct vhu_msg_context *ctx,
2386 int main_fd __rte_unused)
2387{
2388 struct virtio_net *dev = *pdev;
2389
2390 if (validate_msg_fds(dev, ctx, 1) != 0)
2391 return RTE_VHOST_MSG_RESULT_ERR;
2392
2393 close(ctx->fds[0]);
2394 VHOST_LOG_CONFIG(dev->ifname, DEBUG, "not implemented.\n");
2395
2396 return RTE_VHOST_MSG_RESULT_OK;
2397}
2398
2399/*
2400 * An rarp packet is constructed and broadcasted to notify switches about

Callers

nothing calls this directly

Calls 2

validate_msg_fdsFunction · 0.85
closeFunction · 0.50

Tested by

no test coverage detected