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

Function rte_vhost_driver_disable_features

dpdk/lib/vhost/socket.c:660–678  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

658}
659
660int
661rte_vhost_driver_disable_features(const char *path, uint64_t features)
662{
663 struct vhost_user_socket *vsocket;
664
665 pthread_mutex_lock(&vhost_user.mutex);
666 vsocket = find_vhost_user_socket(path);
667
668 /* Note that use_builtin_virtio_net is not affected by this function
669 * since callers may want to selectively disable features of the
670 * built-in vhost net device backend.
671 */
672
673 if (vsocket)
674 vsocket->features &= ~features;
675 pthread_mutex_unlock(&vhost_user.mutex);
676
677 return vsocket ? 0 : -1;
678}
679
680int
681rte_vhost_driver_enable_features(const char *path, uint64_t features)

Callers 3

vhost_driver_setupFunction · 0.85
mainFunction · 0.85

Calls 3

pthread_mutex_lockFunction · 0.85
find_vhost_user_socketFunction · 0.85
pthread_mutex_unlockFunction · 0.85

Tested by

no test coverage detected