From mboxrd@z Thu Jan 1 00:00:00 1970 From: Huawei Xie Subject: [PATCH v6 22/25] lib/librte_vhost: add priv context field to virtio_net structure Date: Thu, 9 Oct 2014 02:54:56 +0800 Message-ID: <1412794499-4332-23-git-send-email-huawei.xie@intel.com> References: <1412794499-4332-1-git-send-email-huawei.xie@intel.com> To: dev-VfR2kkLFssw@public.gmane.org Return-path: In-Reply-To: <1412794499-4332-1-git-send-email-huawei.xie-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" priv field could be used to store application specific context. Signed-off-by: Huawei Xie --- 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