vhost: add private context field

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>
This commit is contained in:
Huawei Xie 2014-10-09 02:54:56 +08:00 committed by Thomas Monjalon
parent 3d671af711
commit a58f905514

View File

@ -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;
/*