Lines Matching refs:features

155 static bool vhost_vdpa_net_valid_svq_features(uint64_t features, Error **errp)  in vhost_vdpa_net_valid_svq_features()  argument
158 features & ~vdpa_svq_device_features & in vhost_vdpa_net_valid_svq_features()
169 return vhost_svq_valid_features(features, errp); in vhost_vdpa_net_valid_svq_features()
263 uint64_t features = 0; in vhost_vdpa_has_ufo() local
264 features |= (1ULL << VIRTIO_NET_F_HOST_UFO); in vhost_vdpa_has_ufo()
265 features = vhost_net_get_features(s->vhost_net, features); in vhost_vdpa_has_ufo()
266 return !!(features & (1ULL << VIRTIO_NET_F_HOST_UFO)); in vhost_vdpa_has_ufo()
558 if (!vhost_vdpa_net_valid_svq_features(v->dev->features, NULL)) { in vhost_vdpa_net_cvq_start()
1582 static int vhost_vdpa_probe_cvq_isolation(int device_fd, uint64_t features, in vhost_vdpa_probe_cvq_isolation() argument
1608 r = ioctl(device_fd, VHOST_SET_FEATURES, &features); in vhost_vdpa_probe_cvq_isolation()
1669 uint64_t features, in net_vhost_vdpa_init() argument
1683 cvq_isolated = vhost_vdpa_probe_cvq_isolation(vdpa_device_fd, features, in net_vhost_vdpa_init()
1701 vhost_vdpa_net_valid_svq_features(features, in net_vhost_vdpa_init()
1732 static int vhost_vdpa_get_features(int fd, uint64_t *features, Error **errp) in vhost_vdpa_get_features() argument
1734 int ret = ioctl(fd, VHOST_GET_FEATURES, features); in vhost_vdpa_get_features()
1742 static int vhost_vdpa_get_max_queue_pairs(int fd, uint64_t features, in vhost_vdpa_get_max_queue_pairs() argument
1750 if (features & (1 << VIRTIO_NET_F_CTRL_VQ)) { in vhost_vdpa_get_max_queue_pairs()
1756 if (features & (1 << VIRTIO_NET_F_MQ)) { in vhost_vdpa_get_max_queue_pairs()
1780 uint64_t features; in net_init_vhost_vdpa() local
1815 r = vhost_vdpa_get_features(vdpa_device_fd, &features, errp); in net_init_vhost_vdpa()
1820 queue_pairs = vhost_vdpa_get_max_queue_pairs(vdpa_device_fd, features, in net_init_vhost_vdpa()
1834 if (opts->x_svq && !vhost_vdpa_net_valid_svq_features(features, errp)) { in net_init_vhost_vdpa()
1848 iova_range, features, shared, errp); in net_init_vhost_vdpa()
1859 opts->x_svq, iova_range, features, shared, in net_init_vhost_vdpa()