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

Function vhost_user_get_protocol_features

dpdk/lib/vhost/vhost_user.c:2244–2260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2242}
2243
2244static int
2245vhost_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
2262static int
2263vhost_user_set_protocol_features(struct virtio_net **pdev,

Callers

nothing calls this directly

Tested by

no test coverage detected