* The features that we support are requested. */
| 288 | * The features that we support are requested. |
| 289 | */ |
| 290 | static int |
| 291 | vhost_user_get_features(struct virtio_net **pdev, |
| 292 | struct vhu_msg_context *ctx, |
| 293 | int main_fd __rte_unused) |
| 294 | { |
| 295 | struct virtio_net *dev = *pdev; |
| 296 | uint64_t features = 0; |
| 297 | |
| 298 | rte_vhost_driver_get_features(dev->ifname, &features); |
| 299 | |
| 300 | ctx->msg.payload.u64 = features; |
| 301 | ctx->msg.size = sizeof(ctx->msg.payload.u64); |
| 302 | ctx->fd_num = 0; |
| 303 | |
| 304 | return RTE_VHOST_MSG_RESULT_REPLY; |
| 305 | } |
| 306 | |
| 307 | /* |
| 308 | * The queue number that we support are requested. |
nothing calls this directly
no test coverage detected