Re: [dpdk-dev] [RFC v2 2/2] vhost: support requests only handled by external backend

2019-03-08 Thread Maxime Coquelin
-dev] [RFC v2 2/2] vhost: support requests only handled by external backend External backends may have specific requests to handle, and so we don't want the vhost-user lib to handle these requests as errors. This patch also changes the experimental API by introducing RTE_VHOST_MSG_RESULT_NOT_HA

Re: [dpdk-dev] [RFC v2 2/2] vhost: support requests only handled by external backend

2019-03-08 Thread Stojaczyk, Dariusz
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Maxime Coquelin > Sent: Thursday, February 28, 2019 4:32 PM > To: dev@dpdk.org; Liu, Changpeng ; Bie, Tiwei > ; i.maxim...@samsung.com > Cc: Maxime Coquelin > Subject: [dpdk-dev] [RFC v

Re: [dpdk-dev] [RFC v2 2/2] vhost: support requests only handled by external backend

2019-03-04 Thread Ilya Maximets
On 04.03.2019 19:02, Maxime Coquelin wrote: > > > On 3/4/19 4:25 PM, Ilya Maximets wrote: >> On 28.02.2019 18:31, Maxime Coquelin wrote: >>> External backends may have specific requests to handle, and so >>> we don't want the vhost-user lib to handle these requests as >>> errors. >>> >>> This pat

Re: [dpdk-dev] [RFC v2 2/2] vhost: support requests only handled by external backend

2019-03-04 Thread Maxime Coquelin
On 3/4/19 4:25 PM, Ilya Maximets wrote: On 28.02.2019 18:31, Maxime Coquelin wrote: External backends may have specific requests to handle, and so we don't want the vhost-user lib to handle these requests as errors. This patch also changes the experimental API by introducing RTE_VHOST_MSG_RE

Re: [dpdk-dev] [RFC v2 2/2] vhost: support requests only handled by external backend

2019-03-04 Thread Ilya Maximets
On 28.02.2019 18:31, Maxime Coquelin wrote: > External backends may have specific requests to handle, and so > we don't want the vhost-user lib to handle these requests as > errors. > > This patch also changes the experimental API by introducing > RTE_VHOST_MSG_RESULT_NOT_HANDLED so that vhost-use

Re: [dpdk-dev] [RFC v2 2/2] vhost: support requests only handled by external backend

2019-02-28 Thread Maxime Coquelin
On 2/28/19 4:31 PM, Maxime Coquelin wrote: + handled = false; if (dev->extern_ops.pre_msg_handle) { ret = (*dev->extern_ops.pre_msg_handle)(dev->vid, - (void *)&msg, &skip_master); - if (ret == RTE_VHOST_MSG_RESULT_ERR)

[dpdk-dev] [RFC v2 2/2] vhost: support requests only handled by external backend

2019-02-28 Thread Maxime Coquelin
External backends may have specific requests to handle, and so we don't want the vhost-user lib to handle these requests as errors. This patch also changes the experimental API by introducing RTE_VHOST_MSG_RESULT_NOT_HANDLED so that vhost-user lib can report an error if a message is handled neithe