* [dpdk-dev] [PATCH] doc: note a pitfall on reconnect feature
@ 2016-07-19 4:17 Yuanhan Liu
2016-07-19 4:17 ` [dpdk-dev] [PATCH RFC] maintainers: add git tree for virtio/vhost Yuanhan Liu
2016-07-19 13:57 ` [dpdk-dev] [PATCH] doc: note a pitfall on reconnect feature Mcnamara, John
0 siblings, 2 replies; 6+ messages in thread
From: Yuanhan Liu @ 2016-07-19 4:17 UTC (permalink / raw)
To: dev; +Cc: Thomas Monjalon, Yuanhan Liu
The vhost feature negotiation only happens at virtio reset stage, say
when a virtio-net device is firstly initiated, or when DPDK virtio PMD
initiates. That means, if vhost APP restarts after the negotiation and
reconnects, the feature negotiation process will not be triggered again,
meaning the info is lost. To make reconnect work, QEMU simply saves
the negotiated features before the restart and restores it afterwards.
Therefore, the vhost supported features must be exactly the same before
and after the restart. For example, if TSO is disabled and then enabled,
nothing will work and issues undefined might happen.
Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
---
I just put the part "people should not do this" into the doc, and I'm
not quite sure I need put the "why" part there or not.
---
doc/guides/prog_guide/vhost_lib.rst | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/doc/guides/prog_guide/vhost_lib.rst b/doc/guides/prog_guide/vhost_lib.rst
index 14d5e67..6b0c6b2 100644
--- a/doc/guides/prog_guide/vhost_lib.rst
+++ b/doc/guides/prog_guide/vhost_lib.rst
@@ -189,7 +189,12 @@ vhost-user implementation has two options:
When the DPDK vhost-user application restarts, DPDK vhost-user will try to
connect to the server again. This is how the "reconnect" feature works.
- Note: the "reconnect" feature requires **QEMU v2.7** (or above).
+ .. Note::
+ * The "reconnect" feature requires **QEMU v2.7** (or above).
+
+ * The vhost supported features must be exactly the same before and
+ after the restart. For example, if TSO is disabled and then enabled,
+ nothing will work and issues undefined might happen.
No matter which mode is used, once a connection is established, DPDK
vhost-user will start receiving and processing vhost messages from QEMU.
--
1.9.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [dpdk-dev] [PATCH RFC] maintainers: add git tree for virtio/vhost
2016-07-19 4:17 [dpdk-dev] [PATCH] doc: note a pitfall on reconnect feature Yuanhan Liu
@ 2016-07-19 4:17 ` Yuanhan Liu
2016-07-22 20:39 ` Thomas Monjalon
2016-07-19 13:57 ` [dpdk-dev] [PATCH] doc: note a pitfall on reconnect feature Mcnamara, John
1 sibling, 1 reply; 6+ messages in thread
From: Yuanhan Liu @ 2016-07-19 4:17 UTC (permalink / raw)
To: dev; +Cc: Thomas Monjalon, Yuanhan Liu
Add a git tree line for the virtio/vhost section, to make an explicit
statement that the developers are suggested to make patches based on
that tree.
Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
---
MAINTAINERS | 2 ++
1 file changed, 2 insertions(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 9c76352..433ddd8 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -356,6 +356,7 @@ F: doc/guides/nics/qede.rst
RedHat virtio
M: Huawei Xie <huawei.xie@intel.com>
M: Yuanhan Liu <yuanhan.liu@linux.intel.com>
+T: git://dpdk.org/next/dpdk-next-virtio
F: drivers/net/virtio/
F: doc/guides/nics/virtio.rst
F: lib/librte_vhost/
@@ -371,6 +372,7 @@ F: doc/guides/nics/vmxnet3.rst
Vhost PMD
M: Tetsuya Mukawa <mukawa@igel.co.jp>
M: Yuanhan Liu <yuanhan.liu@linux.intel.com>
+T: git://dpdk.org/next/dpdk-next-virtio
F: drivers/net/vhost/
PCAP PMD
--
1.9.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [dpdk-dev] [PATCH] doc: note a pitfall on reconnect feature
2016-07-19 4:17 [dpdk-dev] [PATCH] doc: note a pitfall on reconnect feature Yuanhan Liu
2016-07-19 4:17 ` [dpdk-dev] [PATCH RFC] maintainers: add git tree for virtio/vhost Yuanhan Liu
@ 2016-07-19 13:57 ` Mcnamara, John
2016-07-20 1:08 ` Yuanhan Liu
1 sibling, 1 reply; 6+ messages in thread
From: Mcnamara, John @ 2016-07-19 13:57 UTC (permalink / raw)
To: Yuanhan Liu, dev; +Cc: Thomas Monjalon
> - Note: the "reconnect" feature requires **QEMU v2.7** (or above).
> + .. Note::
> + * The "reconnect" feature requires **QEMU v2.7** (or above).
> +
> + * The vhost supported features must be exactly the same before and
> + after the restart. For example, if TSO is disabled and then
> enabled,
> + nothing will work and issues undefined might happen.
s/ issues undefined / undefined issues /
Apart from that:
Acked-by: John McNamara <john.mcnamara@intel.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [dpdk-dev] [PATCH] doc: note a pitfall on reconnect feature
2016-07-19 13:57 ` [dpdk-dev] [PATCH] doc: note a pitfall on reconnect feature Mcnamara, John
@ 2016-07-20 1:08 ` Yuanhan Liu
2016-07-22 16:06 ` Thomas Monjalon
0 siblings, 1 reply; 6+ messages in thread
From: Yuanhan Liu @ 2016-07-20 1:08 UTC (permalink / raw)
To: Mcnamara, John; +Cc: dev, Thomas Monjalon
On Tue, Jul 19, 2016 at 01:57:11PM +0000, Mcnamara, John wrote:
> > - Note: the "reconnect" feature requires **QEMU v2.7** (or above).
> > + .. Note::
> > + * The "reconnect" feature requires **QEMU v2.7** (or above).
> > +
> > + * The vhost supported features must be exactly the same before and
> > + after the restart. For example, if TSO is disabled and then
> > enabled,
> > + nothing will work and issues undefined might happen.
>
> s/ issues undefined / undefined issues /
Thomas, mind to fix it while apply?
> Apart from that:
>
> Acked-by: John McNamara <john.mcnamara@intel.com>
Thanks!
--yliu
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [dpdk-dev] [PATCH] doc: note a pitfall on reconnect feature
2016-07-20 1:08 ` Yuanhan Liu
@ 2016-07-22 16:06 ` Thomas Monjalon
0 siblings, 0 replies; 6+ messages in thread
From: Thomas Monjalon @ 2016-07-22 16:06 UTC (permalink / raw)
To: Yuanhan Liu; +Cc: Mcnamara, John, dev
2016-07-20 09:08, Yuanhan Liu:
> On Tue, Jul 19, 2016 at 01:57:11PM +0000, Mcnamara, John wrote:
> > > - Note: the "reconnect" feature requires **QEMU v2.7** (or above).
> > > + .. Note::
> > > + * The "reconnect" feature requires **QEMU v2.7** (or above).
> > > +
> > > + * The vhost supported features must be exactly the same before and
> > > + after the restart. For example, if TSO is disabled and then
> > > enabled,
> > > + nothing will work and issues undefined might happen.
> >
> > s/ issues undefined / undefined issues /
>
> Thomas, mind to fix it while apply?
Yes
> > Apart from that:
> >
> > Acked-by: John McNamara <john.mcnamara@intel.com>
>
> Thanks!
Applied, thanks
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [dpdk-dev] [PATCH RFC] maintainers: add git tree for virtio/vhost
2016-07-19 4:17 ` [dpdk-dev] [PATCH RFC] maintainers: add git tree for virtio/vhost Yuanhan Liu
@ 2016-07-22 20:39 ` Thomas Monjalon
0 siblings, 0 replies; 6+ messages in thread
From: Thomas Monjalon @ 2016-07-22 20:39 UTC (permalink / raw)
To: Yuanhan Liu; +Cc: dev
2016-07-19 12:17, Yuanhan Liu:
> Add a git tree line for the virtio/vhost section, to make an explicit
> statement that the developers are suggested to make patches based on
> that tree.
>
> Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Applied, thanks for your work on next-virtio
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-07-22 20:39 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-19 4:17 [dpdk-dev] [PATCH] doc: note a pitfall on reconnect feature Yuanhan Liu
2016-07-19 4:17 ` [dpdk-dev] [PATCH RFC] maintainers: add git tree for virtio/vhost Yuanhan Liu
2016-07-22 20:39 ` Thomas Monjalon
2016-07-19 13:57 ` [dpdk-dev] [PATCH] doc: note a pitfall on reconnect feature Mcnamara, John
2016-07-20 1:08 ` Yuanhan Liu
2016-07-22 16:06 ` Thomas Monjalon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).