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

Function rte_vhost_get_negotiated_protocol_features

dpdk/lib/vhost/vhost.c:947–959  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

945}
946
947int
948rte_vhost_get_negotiated_protocol_features(int vid,
949 uint64_t *protocol_features)
950{
951 struct virtio_net *dev;
952
953 dev = get_device(vid);
954 if (dev == NULL || protocol_features == NULL)
955 return -1;
956
957 *protocol_features = dev->protocol_features;
958 return 0;
959}
960
961int
962rte_vhost_get_mem_table(int vid, struct rte_vhost_memory **mem)

Callers 1

new_deviceFunction · 0.85

Calls 1

get_deviceFunction · 0.85

Tested by

no test coverage detected