| 2242 | } |
| 2243 | |
| 2244 | static int |
| 2245 | vhost_user_get_protocol_features(struct virtio_net **pdev, |
| 2246 | struct vhu_msg_context *ctx, |
| 2247 | int main_fd __rte_unused) |
| 2248 | { |
| 2249 | struct virtio_net *dev = *pdev; |
| 2250 | uint64_t features, protocol_features; |
| 2251 | |
| 2252 | rte_vhost_driver_get_features(dev->ifname, &features); |
| 2253 | rte_vhost_driver_get_protocol_features(dev->ifname, &protocol_features); |
| 2254 | |
| 2255 | ctx->msg.payload.u64 = protocol_features; |
| 2256 | ctx->msg.size = sizeof(ctx->msg.payload.u64); |
| 2257 | ctx->fd_num = 0; |
| 2258 | |
| 2259 | return RTE_VHOST_MSG_RESULT_REPLY; |
| 2260 | } |
| 2261 | |
| 2262 | static int |
| 2263 | vhost_user_set_protocol_features(struct virtio_net **pdev, |
nothing calls this directly
no test coverage detected