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