|
@@ -823,14 +823,14 @@ static long vhost_net_ioctl(struct file *f, unsigned int ioctl,
|
|
|
return -EFAULT;
|
|
|
return vhost_net_set_backend(n, backend.index, backend.fd);
|
|
|
case VHOST_GET_FEATURES:
|
|
|
- features = VHOST_FEATURES;
|
|
|
+ features = VHOST_NET_FEATURES;
|
|
|
if (copy_to_user(featurep, &features, sizeof features))
|
|
|
return -EFAULT;
|
|
|
return 0;
|
|
|
case VHOST_SET_FEATURES:
|
|
|
if (copy_from_user(&features, featurep, sizeof features))
|
|
|
return -EFAULT;
|
|
|
- if (features & ~VHOST_FEATURES)
|
|
|
+ if (features & ~VHOST_NET_FEATURES)
|
|
|
return -EOPNOTSUPP;
|
|
|
return vhost_net_set_features(n, features);
|
|
|
case VHOST_RESET_OWNER:
|