git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d671af
)
vhost: add private context field
author
Huawei Xie
<huawei.xie@intel.com>
Wed, 8 Oct 2014 18:54:56 +0000
(
02:54
+0800)
committer
Thomas Monjalon
<thomas.monjalon@6wind.com>
Mon, 13 Oct 2014 17:16:54 +0000
(19:16 +0200)
priv field could be used to store application specific context.
Signed-off-by: Huawei Xie <huawei.xie@intel.com>
Acked-by: Changchun Ouyang <changchun.ouyang@intel.com>
lib/librte_vhost/rte_virtio_net.h
patch
|
blob
|
history
diff --git
a/lib/librte_vhost/rte_virtio_net.h
b/lib/librte_vhost/rte_virtio_net.h
index
de2ced6
..
0606143
100644
(file)
--- a/
lib/librte_vhost/rte_virtio_net.h
+++ b/
lib/librte_vhost/rte_virtio_net.h
@@
-85,6
+85,7
@@
struct virtio_net
uint64_t features; /* Negotiated feature set. */
uint64_t device_fh; /* device identifier. */
uint32_t flags; /* Device flags. Only used to check if device is running on data core. */
+ void *priv; /**< private context */
} __rte_cache_aligned;
/*