git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/mlx5: convert control path memory to unified malloc
[dpdk.git]
/
lib
/
librte_vhost
/
socket.c
diff --git
a/lib/librte_vhost/socket.c
b/lib/librte_vhost/socket.c
index
c4626d2
..
73e1dca
100644
(file)
--- a/
lib/librte_vhost/socket.c
+++ b/
lib/librte_vhost/socket.c
@@
-710,7
+710,7
@@
rte_vhost_driver_get_features(const char *path, uint64_t *features)
}
vdpa_dev = vsocket->vdpa_dev;
}
vdpa_dev = vsocket->vdpa_dev;
- if (!vdpa_dev
|| !vdpa_dev->ops->get_features
) {
+ if (!vdpa_dev) {
*features = vsocket->features;
goto unlock_exit;
}
*features = vsocket->features;
goto unlock_exit;
}
@@
-763,7
+763,7
@@
rte_vhost_driver_get_protocol_features(const char *path,
}
vdpa_dev = vsocket->vdpa_dev;
}
vdpa_dev = vsocket->vdpa_dev;
- if (!vdpa_dev
|| !vdpa_dev->ops->get_protocol_features
) {
+ if (!vdpa_dev) {
*protocol_features = vsocket->protocol_features;
goto unlock_exit;
}
*protocol_features = vsocket->protocol_features;
goto unlock_exit;
}
@@
-803,7
+803,7
@@
rte_vhost_driver_get_queue_num(const char *path, uint32_t *queue_num)
}
vdpa_dev = vsocket->vdpa_dev;
}
vdpa_dev = vsocket->vdpa_dev;
- if (!vdpa_dev
|| !vdpa_dev->ops->get_queue_num
) {
+ if (!vdpa_dev) {
*queue_num = VHOST_MAX_QUEUE_PAIRS;
goto unlock_exit;
}
*queue_num = VHOST_MAX_QUEUE_PAIRS;
goto unlock_exit;
}