call back when there is new vhost-user connection from client */
| 297 | |
| 298 | /* call back when there is new vhost-user connection from client */ |
| 299 | static void |
| 300 | vhost_user_server_new_connection(int fd, void *dat, int *remove __rte_unused) |
| 301 | { |
| 302 | struct vhost_user_socket *vsocket = dat; |
| 303 | |
| 304 | fd = accept(fd, NULL, NULL); |
| 305 | if (fd < 0) |
| 306 | return; |
| 307 | |
| 308 | VHOST_LOG_CONFIG(vsocket->path, INFO, "new vhost user connection is %d\n", fd); |
| 309 | vhost_user_add_connection(fd, vsocket); |
| 310 | } |
| 311 | |
| 312 | static void |
| 313 | vhost_user_read_cb(int connfd, void *dat, int *remove) |
nothing calls this directly
no test coverage detected