DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH 1/4] vhost: remove redundant ;
@ 2015-09-09  5:34 Yuanhan Liu
  2015-09-09  5:34 ` [dpdk-dev] [PATCH 2/4] vhost: fix typo Yuanhan Liu
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Yuanhan Liu @ 2015-09-09  5:34 UTC (permalink / raw)
  To: dev

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Acked-by: Changchun Ouyang <Changchun.ouyang@intel.com>
Acked-by: Huawei Xie <huawei.xie@intel.com>
---
 lib/librte_vhost/vhost_rxtx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/librte_vhost/vhost_rxtx.c b/lib/librte_vhost/vhost_rxtx.c
index 0d07338..d412293 100644
--- a/lib/librte_vhost/vhost_rxtx.c
+++ b/lib/librte_vhost/vhost_rxtx.c
@@ -185,7 +185,7 @@ virtio_dev_rx(struct virtio_net *dev, uint16_t queue_id,
 				}
 			}
 			len_to_cpy = RTE_MIN(data_len - offset, desc->len - vb_offset);
-		};
+		}
 
 		/* Update used ring with desc information */
 		vq->used->ring[res_cur_idx & (vq->size - 1)].id =
-- 
1.9.0

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [dpdk-dev] [PATCH 2/4] vhost: fix typo
  2015-09-09  5:34 [dpdk-dev] [PATCH 1/4] vhost: remove redundant ; Yuanhan Liu
@ 2015-09-09  5:34 ` Yuanhan Liu
  2015-09-09  5:34 ` [dpdk-dev] [PATCH 3/4] vhost: get rid of duplicate code Yuanhan Liu
  2015-09-09  5:34 ` [dpdk-dev] [PATCH 4/4 v2] vhost: fix wrong usage of eventfd_t Yuanhan Liu
  2 siblings, 0 replies; 11+ messages in thread
From: Yuanhan Liu @ 2015-09-09  5:34 UTC (permalink / raw)
  To: dev

_det => _dev

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Acked-by: Changchun Ouyang <Changchun.ouyang@intel.com>
Acked-by: Huawei Xie <huawei.xie@intel.com>
---
 lib/librte_vhost/virtio-net.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/librte_vhost/virtio-net.c b/lib/librte_vhost/virtio-net.c
index b520ec5..b670992 100644
--- a/lib/librte_vhost/virtio-net.c
+++ b/lib/librte_vhost/virtio-net.c
@@ -485,7 +485,7 @@ set_vring_num(struct vhost_device_ctx ctx, struct vhost_vring_state *state)
 }
 
 /*
- * Reallocate virtio_det and vhost_virtqueue data structure to make them on the
+ * Reallocate virtio_dev and vhost_virtqueue data structure to make them on the
  * same numa node as the memory of vring descriptor.
  */
 #ifdef RTE_LIBRTE_VHOST_NUMA
-- 
1.9.0

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [dpdk-dev] [PATCH 3/4] vhost: get rid of duplicate code
  2015-09-09  5:34 [dpdk-dev] [PATCH 1/4] vhost: remove redundant ; Yuanhan Liu
  2015-09-09  5:34 ` [dpdk-dev] [PATCH 2/4] vhost: fix typo Yuanhan Liu
@ 2015-09-09  5:34 ` Yuanhan Liu
  2015-09-09  5:34 ` [dpdk-dev] [PATCH 4/4 v2] vhost: fix wrong usage of eventfd_t Yuanhan Liu
  2 siblings, 0 replies; 11+ messages in thread
From: Yuanhan Liu @ 2015-09-09  5:34 UTC (permalink / raw)
  To: dev

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Acked-by: Changchun Ouyang <Changchun.ouyang@intel.com>
Acked-by: Huawei Xie <huawei.xie@intel.com>
---
 lib/librte_vhost/vhost_user/vhost-net-user.c | 36 ++++++++--------------------
 1 file changed, 10 insertions(+), 26 deletions(-)

diff --git a/lib/librte_vhost/vhost_user/vhost-net-user.c b/lib/librte_vhost/vhost_user/vhost-net-user.c
index f406a94..d1f8877 100644
--- a/lib/librte_vhost/vhost_user/vhost-net-user.c
+++ b/lib/librte_vhost/vhost_user/vhost-net-user.c
@@ -329,32 +329,16 @@ vserver_message_handler(int connfd, void *dat, int *remove)
 
 	ctx.fh = cfd_ctx->fh;
 	ret = read_vhost_message(connfd, &msg);
-	if (ret < 0) {
-		RTE_LOG(ERR, VHOST_CONFIG,
-			"vhost read message failed\n");
-
-		close(connfd);
-		*remove = 1;
-		free(cfd_ctx);
-		user_destroy_device(ctx);
-		ops->destroy_device(ctx);
-
-		return;
-	} else if (ret == 0) {
-		RTE_LOG(INFO, VHOST_CONFIG,
-			"vhost peer closed\n");
-
-		close(connfd);
-		*remove = 1;
-		free(cfd_ctx);
-		user_destroy_device(ctx);
-		ops->destroy_device(ctx);
-
-		return;
-	}
-	if (msg.request > VHOST_USER_MAX) {
-		RTE_LOG(ERR, VHOST_CONFIG,
-			"vhost read incorrect message\n");
+	if (ret <= 0 || msg.request > VHOST_USER_MAX) {
+		if (ret < 0)
+			RTE_LOG(ERR, VHOST_CONFIG,
+				"vhost read message failed\n");
+		else if (ret == 0)
+			RTE_LOG(INFO, VHOST_CONFIG,
+				"vhost peer closed\n");
+		else
+			RTE_LOG(ERR, VHOST_CONFIG,
+				"vhost read incorrect message\n");
 
 		close(connfd);
 		*remove = 1;
-- 
1.9.0

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [dpdk-dev] [PATCH 4/4 v2] vhost: fix wrong usage of eventfd_t
  2015-09-09  5:34 [dpdk-dev] [PATCH 1/4] vhost: remove redundant ; Yuanhan Liu
  2015-09-09  5:34 ` [dpdk-dev] [PATCH 2/4] vhost: fix typo Yuanhan Liu
  2015-09-09  5:34 ` [dpdk-dev] [PATCH 3/4] vhost: get rid of duplicate code Yuanhan Liu
@ 2015-09-09  5:34 ` Yuanhan Liu
  2015-09-09  5:44   ` Xie, Huawei
  2 siblings, 1 reply; 11+ messages in thread
From: Yuanhan Liu @ 2015-09-09  5:34 UTC (permalink / raw)
  To: dev

According to eventfd man page:

    typedef uint64_t eventfd_t;

    int eventfd_read(int fd, eventfd_t *value);
    int eventfd_write(int fd, eventfd_t value);

eventfd_t is defined for the second arg(value), but not for fd.

Here I redefine those fd fields to `int' type, which also removes
the redundant (int) cast. And as the man page stated, we should
cast 1 to eventfd_t type for eventfd_write().

v2: cast 1 with `eventfd_t' type.

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
---
 examples/vhost/main.c                         |  6 ++---
 lib/librte_vhost/rte_virtio_net.h             |  4 ++--
 lib/librte_vhost/vhost_rxtx.c                 |  6 ++---
 lib/librte_vhost/vhost_user/virtio-net-user.c | 16 +++++++-------
 lib/librte_vhost/virtio-net.c                 | 32 +++++++++++++--------------
 5 files changed, 32 insertions(+), 32 deletions(-)

diff --git a/examples/vhost/main.c b/examples/vhost/main.c
index 1b137b9..9eac2d0 100644
--- a/examples/vhost/main.c
+++ b/examples/vhost/main.c
@@ -1433,7 +1433,7 @@ put_desc_to_used_list_zcp(struct vhost_virtqueue *vq, uint16_t desc_idx)
 
 	/* Kick the guest if necessary. */
 	if (!(vq->avail->flags & VRING_AVAIL_F_NO_INTERRUPT))
-		eventfd_write((int)vq->callfd, 1);
+		eventfd_write(vq->callfd, (eventfd_t)1);
 }
 
 /*
@@ -1626,7 +1626,7 @@ txmbuf_clean_zcp(struct virtio_net *dev, struct vpool *vpool)
 
 	/* Kick guest if required. */
 	if (!(vq->avail->flags & VRING_AVAIL_F_NO_INTERRUPT))
-		eventfd_write((int)vq->callfd, 1);
+		eventfd_write(vq->callfd, (eventfd_t)1);
 
 	return 0;
 }
@@ -1774,7 +1774,7 @@ virtio_dev_rx_zcp(struct virtio_net *dev, struct rte_mbuf **pkts,
 
 	/* Kick the guest if necessary. */
 	if (!(vq->avail->flags & VRING_AVAIL_F_NO_INTERRUPT))
-		eventfd_write((int)vq->callfd, 1);
+		eventfd_write(vq->callfd, (eventfd_t)1);
 
 	return count;
 }
diff --git a/lib/librte_vhost/rte_virtio_net.h b/lib/librte_vhost/rte_virtio_net.h
index b9bf320..a037c15 100644
--- a/lib/librte_vhost/rte_virtio_net.h
+++ b/lib/librte_vhost/rte_virtio_net.h
@@ -87,8 +87,8 @@ struct vhost_virtqueue {
 	uint16_t		vhost_hlen;		/**< Vhost header length (varies depending on RX merge buffers. */
 	volatile uint16_t	last_used_idx;		/**< Last index used on the available ring */
 	volatile uint16_t	last_used_idx_res;	/**< Used for multiple devices reserving buffers. */
-	eventfd_t		callfd;			/**< Used to notify the guest (trigger interrupt). */
-	eventfd_t		kickfd;			/**< Currently unused as polling mode is enabled. */
+	int			callfd;			/**< Used to notify the guest (trigger interrupt). */
+	int			kickfd;			/**< Currently unused as polling mode is enabled. */
 	struct buf_vector	buf_vec[BUF_VECTOR_MAX];	/**< for scatter RX. */
 } __rte_cache_aligned;
 
diff --git a/lib/librte_vhost/vhost_rxtx.c b/lib/librte_vhost/vhost_rxtx.c
index d412293..b2b2bcc 100644
--- a/lib/librte_vhost/vhost_rxtx.c
+++ b/lib/librte_vhost/vhost_rxtx.c
@@ -230,7 +230,7 @@ virtio_dev_rx(struct virtio_net *dev, uint16_t queue_id,
 
 	/* Kick the guest if necessary. */
 	if (!(vq->avail->flags & VRING_AVAIL_F_NO_INTERRUPT))
-		eventfd_write((int)vq->callfd, 1);
+		eventfd_write(vq->callfd, (eventfd_t)1);
 	return count;
 }
 
@@ -529,7 +529,7 @@ virtio_dev_merge_rx(struct virtio_net *dev, uint16_t queue_id,
 
 		/* Kick the guest if necessary. */
 		if (!(vq->avail->flags & VRING_AVAIL_F_NO_INTERRUPT))
-			eventfd_write((int)vq->callfd, 1);
+			eventfd_write(vq->callfd, (eventfd_t)1);
 	}
 
 	return count;
@@ -752,6 +752,6 @@ rte_vhost_dequeue_burst(struct virtio_net *dev, uint16_t queue_id,
 	vq->used->idx += entry_success;
 	/* Kick guest if required. */
 	if (!(vq->avail->flags & VRING_AVAIL_F_NO_INTERRUPT))
-		eventfd_write((int)vq->callfd, 1);
+		eventfd_write(vq->callfd, (eventfd_t)1);
 	return entry_success;
 }
diff --git a/lib/librte_vhost/vhost_user/virtio-net-user.c b/lib/librte_vhost/vhost_user/virtio-net-user.c
index c1ffc38..4689927 100644
--- a/lib/librte_vhost/vhost_user/virtio-net-user.c
+++ b/lib/librte_vhost/vhost_user/virtio-net-user.c
@@ -214,10 +214,10 @@ virtio_is_ready(struct virtio_net *dev)
 	rvq = dev->virtqueue[VIRTIO_RXQ];
 	tvq = dev->virtqueue[VIRTIO_TXQ];
 	if (rvq && tvq && rvq->desc && tvq->desc &&
-		(rvq->kickfd != (eventfd_t)-1) &&
-		(rvq->callfd != (eventfd_t)-1) &&
-		(tvq->kickfd != (eventfd_t)-1) &&
-		(tvq->callfd != (eventfd_t)-1)) {
+		(rvq->kickfd != -1) &&
+		(rvq->callfd != -1) &&
+		(tvq->kickfd != -1) &&
+		(tvq->callfd != -1)) {
 		RTE_LOG(INFO, VHOST_CONFIG,
 			"virtio is now ready for processing.\n");
 		return 1;
@@ -290,13 +290,13 @@ user_get_vring_base(struct vhost_device_ctx ctx,
 	 * sent and only sent in vhost_vring_stop.
 	 * TODO: cleanup the vring, it isn't usable since here.
 	 */
-	if (((int)dev->virtqueue[VIRTIO_RXQ]->kickfd) >= 0) {
+	if ((dev->virtqueue[VIRTIO_RXQ]->kickfd) >= 0) {
 		close(dev->virtqueue[VIRTIO_RXQ]->kickfd);
-		dev->virtqueue[VIRTIO_RXQ]->kickfd = (eventfd_t)-1;
+		dev->virtqueue[VIRTIO_RXQ]->kickfd = -1;
 	}
-	if (((int)dev->virtqueue[VIRTIO_TXQ]->kickfd) >= 0) {
+	if ((dev->virtqueue[VIRTIO_TXQ]->kickfd) >= 0) {
 		close(dev->virtqueue[VIRTIO_TXQ]->kickfd);
-		dev->virtqueue[VIRTIO_TXQ]->kickfd = (eventfd_t)-1;
+		dev->virtqueue[VIRTIO_TXQ]->kickfd = -1;
 	}
 
 	return 0;
diff --git a/lib/librte_vhost/virtio-net.c b/lib/librte_vhost/virtio-net.c
index b670992..d0f1764 100644
--- a/lib/librte_vhost/virtio-net.c
+++ b/lib/librte_vhost/virtio-net.c
@@ -190,14 +190,14 @@ cleanup_device(struct virtio_net *dev)
 	}
 
 	/* Close any event notifiers opened by device. */
-	if ((int)dev->virtqueue[VIRTIO_RXQ]->callfd >= 0)
-		close((int)dev->virtqueue[VIRTIO_RXQ]->callfd);
-	if ((int)dev->virtqueue[VIRTIO_RXQ]->kickfd >= 0)
-		close((int)dev->virtqueue[VIRTIO_RXQ]->kickfd);
-	if ((int)dev->virtqueue[VIRTIO_TXQ]->callfd >= 0)
-		close((int)dev->virtqueue[VIRTIO_TXQ]->callfd);
-	if ((int)dev->virtqueue[VIRTIO_TXQ]->kickfd >= 0)
-		close((int)dev->virtqueue[VIRTIO_TXQ]->kickfd);
+	if (dev->virtqueue[VIRTIO_RXQ]->callfd >= 0)
+		close(dev->virtqueue[VIRTIO_RXQ]->callfd);
+	if (dev->virtqueue[VIRTIO_RXQ]->kickfd >= 0)
+		close(dev->virtqueue[VIRTIO_RXQ]->kickfd);
+	if (dev->virtqueue[VIRTIO_TXQ]->callfd >= 0)
+		close(dev->virtqueue[VIRTIO_TXQ]->callfd);
+	if (dev->virtqueue[VIRTIO_TXQ]->kickfd >= 0)
+		close(dev->virtqueue[VIRTIO_TXQ]->kickfd);
 }
 
 /*
@@ -261,10 +261,10 @@ init_device(struct virtio_net *dev)
 	memset(dev->virtqueue[VIRTIO_RXQ], 0, sizeof(struct vhost_virtqueue));
 	memset(dev->virtqueue[VIRTIO_TXQ], 0, sizeof(struct vhost_virtqueue));
 
-	dev->virtqueue[VIRTIO_RXQ]->kickfd = (eventfd_t)-1;
-	dev->virtqueue[VIRTIO_RXQ]->callfd = (eventfd_t)-1;
-	dev->virtqueue[VIRTIO_TXQ]->kickfd = (eventfd_t)-1;
-	dev->virtqueue[VIRTIO_TXQ]->callfd = (eventfd_t)-1;
+	dev->virtqueue[VIRTIO_RXQ]->kickfd = -1;
+	dev->virtqueue[VIRTIO_RXQ]->callfd = -1;
+	dev->virtqueue[VIRTIO_TXQ]->kickfd = -1;
+	dev->virtqueue[VIRTIO_TXQ]->callfd = -1;
 
 	/* Backends are set to -1 indicating an inactive device. */
 	dev->virtqueue[VIRTIO_RXQ]->backend = VIRTIO_DEV_STOPPED;
@@ -685,8 +685,8 @@ set_vring_call(struct vhost_device_ctx ctx, struct vhost_vring_file *file)
 	/* file->index refers to the queue index. The txq is 1, rxq is 0. */
 	vq = dev->virtqueue[file->index];
 
-	if ((int)vq->callfd >= 0)
-		close((int)vq->callfd);
+	if (vq->callfd >= 0)
+		close(vq->callfd);
 
 	vq->callfd = file->fd;
 
@@ -711,8 +711,8 @@ set_vring_kick(struct vhost_device_ctx ctx, struct vhost_vring_file *file)
 	/* file->index refers to the queue index. The txq is 1, rxq is 0. */
 	vq = dev->virtqueue[file->index];
 
-	if ((int)vq->kickfd >= 0)
-		close((int)vq->kickfd);
+	if (vq->kickfd >= 0)
+		close(vq->kickfd);
 
 	vq->kickfd = file->fd;
 
-- 
1.9.0

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [dpdk-dev] [PATCH 4/4 v2] vhost: fix wrong usage of eventfd_t
  2015-09-09  5:34 ` [dpdk-dev] [PATCH 4/4 v2] vhost: fix wrong usage of eventfd_t Yuanhan Liu
@ 2015-09-09  5:44   ` Xie, Huawei
  2015-09-24 14:01     ` Yuanhan Liu
  0 siblings, 1 reply; 11+ messages in thread
From: Xie, Huawei @ 2015-09-09  5:44 UTC (permalink / raw)
  To: dev


Acked-by: Huawei Xie <huawei.xie@intel.com>

Thanks for fixing this.

On 9/9/2015 1:32 PM, Yuanhan Liu wrote:
> According to eventfd man page:
>
>     typedef uint64_t eventfd_t;
>
>     int eventfd_read(int fd, eventfd_t *value);
>     int eventfd_write(int fd, eventfd_t value);
>
> eventfd_t is defined for the second arg(value), but not for fd.
>
> Here I redefine those fd fields to `int' type, which also removes
> the redundant (int) cast. And as the man page stated, we should
> cast 1 to eventfd_t type for eventfd_write().
>
> v2: cast 1 with `eventfd_t' type.
>
> Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
> ---
>  examples/vhost/main.c                         |  6 ++---
>  lib/librte_vhost/rte_virtio_net.h             |  4 ++--
>  lib/librte_vhost/vhost_rxtx.c                 |  6 ++---
>  lib/librte_vhost/vhost_user/virtio-net-user.c | 16 +++++++-------
>  lib/librte_vhost/virtio-net.c                 | 32 +++++++++++++--------------
>  5 files changed, 32 insertions(+), 32 deletions(-)
>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [dpdk-dev] [PATCH 4/4 v2] vhost: fix wrong usage of eventfd_t
  2015-09-09  5:44   ` Xie, Huawei
@ 2015-09-24 14:01     ` Yuanhan Liu
  2015-09-25 12:44       ` Thomas Monjalon
  0 siblings, 1 reply; 11+ messages in thread
From: Yuanhan Liu @ 2015-09-24 14:01 UTC (permalink / raw)
  To: Thomas Monjalon; +Cc: dev

Hi Thomas,

Would you consider to apply these 4 patches please? The 4th patch
affects quite many lines of code, and the sooner we apply it, the
fewer chance it will introduce conflicts for later patches.

Thanks.

	--yliu

On Wed, Sep 09, 2015 at 05:44:51AM +0000, Xie, Huawei wrote:
> 
> Acked-by: Huawei Xie <huawei.xie@intel.com>
> 
> Thanks for fixing this.
> 
> On 9/9/2015 1:32 PM, Yuanhan Liu wrote:
> > According to eventfd man page:
> >
> >     typedef uint64_t eventfd_t;
> >
> >     int eventfd_read(int fd, eventfd_t *value);
> >     int eventfd_write(int fd, eventfd_t value);
> >
> > eventfd_t is defined for the second arg(value), but not for fd.
> >
> > Here I redefine those fd fields to `int' type, which also removes
> > the redundant (int) cast. And as the man page stated, we should
> > cast 1 to eventfd_t type for eventfd_write().
> >
> > v2: cast 1 with `eventfd_t' type.
> >
> > Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
> > ---
> >  examples/vhost/main.c                         |  6 ++---
> >  lib/librte_vhost/rte_virtio_net.h             |  4 ++--
> >  lib/librte_vhost/vhost_rxtx.c                 |  6 ++---
> >  lib/librte_vhost/vhost_user/virtio-net-user.c | 16 +++++++-------
> >  lib/librte_vhost/virtio-net.c                 | 32 +++++++++++++--------------
> >  5 files changed, 32 insertions(+), 32 deletions(-)
> >

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [dpdk-dev] [PATCH 4/4 v2] vhost: fix wrong usage of eventfd_t
  2015-09-24 14:01     ` Yuanhan Liu
@ 2015-09-25 12:44       ` Thomas Monjalon
  2015-09-25 12:59         ` Thomas Monjalon
  2015-09-27  0:17         ` Yuanhan Liu
  0 siblings, 2 replies; 11+ messages in thread
From: Thomas Monjalon @ 2015-09-25 12:44 UTC (permalink / raw)
  To: Yuanhan Liu; +Cc: dev

2015-09-24 22:01, Yuanhan Liu:
> Would you consider to apply these 4 patches please? The 4th patch
> affects quite many lines of code, and the sooner we apply it, the
> fewer chance it will introduce conflicts for later patches.

Yes, I'm checking it.

The patch 4/4 is v2. Other ones have no version.
When you'll send a new version of a new patchset, please
- increment version number of every patches to the same number
- make the first email the child of the previous version
Thanks

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [dpdk-dev] [PATCH 4/4 v2] vhost: fix wrong usage of eventfd_t
  2015-09-25 12:44       ` Thomas Monjalon
@ 2015-09-25 12:59         ` Thomas Monjalon
  2015-09-27  0:17         ` Yuanhan Liu
  1 sibling, 0 replies; 11+ messages in thread
From: Thomas Monjalon @ 2015-09-25 12:59 UTC (permalink / raw)
  To: Yuanhan Liu; +Cc: dev

2015-09-25 14:44, Thomas Monjalon:
> 2015-09-24 22:01, Yuanhan Liu:
> > Would you consider to apply these 4 patches please? The 4th patch
> > affects quite many lines of code, and the sooner we apply it, the
> > fewer chance it will introduce conflicts for later patches.
> 
> Yes, I'm checking it.

Applied, thanks

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [dpdk-dev] [PATCH 4/4 v2] vhost: fix wrong usage of eventfd_t
  2015-09-25 12:44       ` Thomas Monjalon
  2015-09-25 12:59         ` Thomas Monjalon
@ 2015-09-27  0:17         ` Yuanhan Liu
  2015-09-27 19:35           ` Thomas Monjalon
  1 sibling, 1 reply; 11+ messages in thread
From: Yuanhan Liu @ 2015-09-27  0:17 UTC (permalink / raw)
  To: Thomas Monjalon; +Cc: dev

On Fri, Sep 25, 2015 at 02:44:11PM +0200, Thomas Monjalon wrote:
> 2015-09-24 22:01, Yuanhan Liu:
> > Would you consider to apply these 4 patches please? The 4th patch
> > affects quite many lines of code, and the sooner we apply it, the
> > fewer chance it will introduce conflicts for later patches.
> 
> Yes, I'm checking it.
> 
> The patch 4/4 is v2. Other ones have no version.

Which means no changes for others in this version.

> When you'll send a new version of a new patchset, please
> - increment version number of every patches to the same number

And, I can do that.

> - make the first email the child of the previous version

I'm wondering how could you do that, with git-send-email.

	--yliu

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [dpdk-dev] [PATCH 4/4 v2] vhost: fix wrong usage of eventfd_t
  2015-09-27  0:17         ` Yuanhan Liu
@ 2015-09-27 19:35           ` Thomas Monjalon
  2015-10-08  6:29             ` Yuanhan Liu
  0 siblings, 1 reply; 11+ messages in thread
From: Thomas Monjalon @ 2015-09-27 19:35 UTC (permalink / raw)
  To: Yuanhan Liu, dev

2015-09-27 08:17, Yuanhan Liu:
> On Fri, Sep 25, 2015 at 02:44:11PM +0200, Thomas Monjalon wrote:
> > - make the first email the child of the previous version
> 
> I'm wondering how could you do that, with git-send-email.

It can be checked in http://dpdk.org/dev#send:
	--in-reply-to <Message-ID of the previous patch>

The message id is in the mail headers.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [dpdk-dev] [PATCH 4/4 v2] vhost: fix wrong usage of eventfd_t
  2015-09-27 19:35           ` Thomas Monjalon
@ 2015-10-08  6:29             ` Yuanhan Liu
  0 siblings, 0 replies; 11+ messages in thread
From: Yuanhan Liu @ 2015-10-08  6:29 UTC (permalink / raw)
  To: Thomas Monjalon; +Cc: dev

On Sun, Sep 27, 2015 at 09:35:35PM +0200, Thomas Monjalon wrote:
> 2015-09-27 08:17, Yuanhan Liu:
> > On Fri, Sep 25, 2015 at 02:44:11PM +0200, Thomas Monjalon wrote:
> > > - make the first email the child of the previous version
> > 
> > I'm wondering how could you do that, with git-send-email.
> 
> It can be checked in http://dpdk.org/dev#send:
> 	--in-reply-to <Message-ID of the previous patch>

Thanks for the tip (and sorry for the late reply).

I see that it might be helpful, especially when it's a single patch or
small patch set. But I doubt it's helpful if it's a large patch set,
and especially when there are quite many comments. Linking a large
thread to another huge thread will make it messy, making it harder for
review, IMO. Or, am I wrong?

	--yliu
> 
> The message id is in the mail headers.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-10-08  6:26 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-09  5:34 [dpdk-dev] [PATCH 1/4] vhost: remove redundant ; Yuanhan Liu
2015-09-09  5:34 ` [dpdk-dev] [PATCH 2/4] vhost: fix typo Yuanhan Liu
2015-09-09  5:34 ` [dpdk-dev] [PATCH 3/4] vhost: get rid of duplicate code Yuanhan Liu
2015-09-09  5:34 ` [dpdk-dev] [PATCH 4/4 v2] vhost: fix wrong usage of eventfd_t Yuanhan Liu
2015-09-09  5:44   ` Xie, Huawei
2015-09-24 14:01     ` Yuanhan Liu
2015-09-25 12:44       ` Thomas Monjalon
2015-09-25 12:59         ` Thomas Monjalon
2015-09-27  0:17         ` Yuanhan Liu
2015-09-27 19:35           ` Thomas Monjalon
2015-10-08  6:29             ` Yuanhan Liu

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).