[dpdk-dev] [PATCH v3 04/22] vhost: make notify ops per vhost driver
Maxime Coquelin
maxime.coquelin at redhat.com
Wed Mar 29 17:03:28 CEST 2017
On 03/28/2017 02:45 PM, Yuanhan Liu wrote:
> Assume there is an application both support vhost-user net and
> vhost-user scsi, the callback should be different. Making notify
> ops per vhost driver allow application define different set of
> callbacks for different driver.
>
> Signed-off-by: Yuanhan Liu <yuanhan.liu at linux.intel.com>
> ---
>
> v2: - check the return value of callback_register and callback_get
> - update release note
> ---
> doc/guides/prog_guide/vhost_lib.rst | 2 +-
> doc/guides/rel_notes/release_17_05.rst | 3 +++
> drivers/net/vhost/rte_eth_vhost.c | 20 +++++++++++---------
> examples/tep_termination/main.c | 7 ++++++-
> examples/vhost/main.c | 9 +++++++--
> lib/librte_vhost/rte_virtio_net.h | 3 ++-
> lib/librte_vhost/socket.c | 32 ++++++++++++++++++++++++++++++++
> lib/librte_vhost/vhost.c | 16 +---------------
> lib/librte_vhost/vhost.h | 5 ++++-
> lib/librte_vhost/vhost_user.c | 22 ++++++++++++++++------
> 10 files changed, 83 insertions(+), 36 deletions(-)
Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
Thanks,
Maxime
More information about the dev
mailing list