| 127 | }; |
| 128 | |
| 129 | static void |
| 130 | vduse_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 | |
| 148 | static void |
| 149 | vduse_vring_setup(struct virtio_net *dev, unsigned int index) |
nothing calls this directly
no test coverage detected