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

Huawei Xie huawei.xie at intel.com
Wed Oct 8 20:54:56 CEST 2014


priv field could be used to store application specific context.

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

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



More information about the dev mailing list