[dpdk-dev] [PATCH v5 3/5] vhost: add apis for datapath configuration

Maxime Coquelin maxime.coquelin at redhat.com
Tue Apr 3 10:07:35 CEST 2018



On 04/02/2018 01:46 PM, Zhihong Wang wrote:
> This patch adds APIs for datapath configuration.
> 
> The did of the vhost-user socket can be set to identify the backend device,
> in this case each vhost-user socket can have only 1 connection. The did is
> set to -1 by default when the software datapath is used.
> 
> Signed-off-by: Zhihong Wang<zhihong.wang at intel.com>
> ---
> Changes in v5:
> 
>   1. Rename APIs for better description.
> 
>   2. Improve sanity check.
> 
> ---
> Changes in v4:
> 
>   1. Remove the "engine" concept in the lib.
> 
>   lib/librte_vhost/rte_vhost.h           | 46 +++++++++++++++++++++++++++++
>   lib/librte_vhost/rte_vhost_version.map |  4 +++
>   lib/librte_vhost/socket.c              | 53 ++++++++++++++++++++++++++++++++++
>   lib/librte_vhost/vhost.c               | 36 +++++++++++++++++++++++
>   lib/librte_vhost/vhost.h               | 10 +++++++
>   5 files changed, 149 insertions(+)

Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>

Thanks,
Maxime


More information about the dev mailing list