| 757 | } |
| 758 | |
| 759 | int |
| 760 | rte_vhost_driver_set_protocol_features(const char *path, |
| 761 | uint64_t protocol_features) |
| 762 | { |
| 763 | struct vhost_user_socket *vsocket; |
| 764 | |
| 765 | pthread_mutex_lock(&vhost_user.mutex); |
| 766 | vsocket = find_vhost_user_socket(path); |
| 767 | if (vsocket) |
| 768 | vsocket->protocol_features = protocol_features; |
| 769 | pthread_mutex_unlock(&vhost_user.mutex); |
| 770 | return vsocket ? 0 : -1; |
| 771 | } |
| 772 | |
| 773 | int |
| 774 | rte_vhost_driver_get_protocol_features(const char *path, |
no test coverage detected