vhost: add private context field
authorHuawei Xie <huawei.xie@intel.com>
Wed, 8 Oct 2014 18:54:56 +0000 (02:54 +0800)
committerThomas 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

index de2ced6..0606143 100644 (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;
 
 /*