[dpdk-dev,v6,22/25] lib/librte_vhost: add priv context field to virtio_net structure

Message ID 1412794499-4332-23-git-send-email-huawei.xie@intel.com (mailing list archive)
State Accepted, archived
Headers

Commit Message

Huawei Xie Oct. 8, 2014, 6:54 p.m. UTC
  priv field could be used to store application specific context.

Signed-off-by: Huawei Xie <huawei.xie@intel.com>
---
 lib/librte_vhost/rte_virtio_net.h | 1 +
 1 file changed, 1 insertion(+)
  

Patch

diff --git a/lib/librte_vhost/rte_virtio_net.h b/lib/librte_vhost/rte_virtio_net.h
index 13d75fe..adf35e4 100644
--- a/lib/librte_vhost/rte_virtio_net.h
+++ b/lib/librte_vhost/rte_virtio_net.h
@@ -94,6 +94,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;
 
 /*