| 658 | } |
| 659 | |
| 660 | int |
| 661 | rte_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 | |
| 680 | int |
| 681 | rte_vhost_driver_enable_features(const char *path, uint64_t features) |
no test coverage detected