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

Function vduse_control_queue_event

dpdk/lib/vhost/vduse.c:129–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127};
128
129static void
130vduse_control_queue_event(int fd, void *arg, int *remove __rte_unused)
131{
132 struct virtio_net *dev = arg;
133 uint64_t buf;
134 int ret;
135
136 ret = read(fd, &buf, sizeof(buf));
137 if (ret < 0) {
138 VHOST_LOG_CONFIG(dev->ifname, ERR, "Failed to read control queue event: %s\n",
139 strerror(errno));
140 return;
141 }
142
143 VHOST_LOG_CONFIG(dev->ifname, DEBUG, "Control queue kicked\n");
144 if (virtio_net_ctrl_handle(dev))
145 VHOST_LOG_CONFIG(dev->ifname, ERR, "Failed to handle ctrl request\n");
146}
147
148static void
149vduse_vring_setup(struct virtio_net *dev, unsigned int index)

Callers

nothing calls this directly

Calls 2

virtio_net_ctrl_handleFunction · 0.85
readFunction · 0.50

Tested by

no test coverage detected