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
app/testpmd: fix crash when mempool allocation fails
[dpdk.git]
/
examples
/
vhost
/
main.h
diff --git
a/examples/vhost/main.h
b/examples/vhost/main.h
index
bd7f1a3
..
6bb42e8
100644
(file)
--- a/
examples/vhost/main.h
+++ b/
examples/vhost/main.h
@@
-49,8
+49,6
@@
struct device_statistics {
};
struct vhost_dev {
};
struct vhost_dev {
- /**< Pointer to device created by vhost lib. */
- struct virtio_net *dev;
/**< Number of memory regions for gpa to hpa translation. */
uint32_t nregions_hpa;
/**< Device MAC address (Obtained on first TX packet). */
/**< Number of memory regions for gpa to hpa translation. */
uint32_t nregions_hpa;
/**< Device MAC address (Obtained on first TX packet). */
@@
-66,6
+64,7
@@
struct vhost_dev {
/**< Device is marked for removal from the data core. */
volatile uint8_t remove;
/**< Device is marked for removal from the data core. */
volatile uint8_t remove;
+ int vid;
struct device_statistics stats;
TAILQ_ENTRY(vhost_dev) global_vdev_entry;
TAILQ_ENTRY(vhost_dev) lcore_vdev_entry;
struct device_statistics stats;
TAILQ_ENTRY(vhost_dev) global_vdev_entry;
TAILQ_ENTRY(vhost_dev) lcore_vdev_entry;