Re: [dpdk-dev] [PATCH v2] net/virtio-user: fix run close(0) and close callfd

2021-01-08 Thread Maxime Coquelin
On 12/11/20 6:11 PM, Jiawei Zhu wrote: > From: Jiawei Zhu > > When i < VIRTIO_MAX_VIRTQUEUES and j == i, > dev->callfds[i] and dev->kickfds[i] are default 0. > So it will close(0), close the standard input (stdin). > And when the code fails in kickfd creation, > it will leaves one callfd not c

Re: [dpdk-dev] [PATCH v2] net/virtio-user: fix run close(0) and close callfd

2021-01-07 Thread Maxime Coquelin
Cc'ing sta...@dpdk.org. On 12/11/20 6:11 PM, Jiawei Zhu wrote: > From: Jiawei Zhu > > When i < VIRTIO_MAX_VIRTQUEUES and j == i, > dev->callfds[i] and dev->kickfds[i] are default 0. > So it will close(0), close the standard input (stdin). > And when the code fails in kickfd creation, > it will l

Re: [dpdk-dev] [PATCH v2] net/virtio-user: fix run close(0) and close callfd

2020-12-14 Thread Xia, Chenbo
Hi Jiawei, > -Original Message- > From: dev On Behalf Of Jiawei Zhu > Sent: Saturday, December 12, 2020 12:53 AM > To: dev@dpdk.org > Subject: [dpdk-dev] [PATCH v2] net/virtio-user: fix run close(0) and close > callfd > > From: Jiawei Zhu > > When i <

[dpdk-dev] [PATCH v2] net/virtio-user: fix run close(0) and close callfd

2020-12-11 Thread Jiawei Zhu
From: Jiawei Zhu When i < VIRTIO_MAX_VIRTQUEUES and j == i, dev->callfds[i] and dev->kickfds[i] are default 0. So it will close(0), close the standard input (stdin). And when the code fails in kickfd creation, it will leaves one callfd not closed. Fixes: e6e7ad8b3024 ("net/virtio-user: move even

[dpdk-dev] [PATCH v2] net/virtio-user: fix run close(0) and close callfd

2020-12-11 Thread Jiawei Zhu
From: Jiawei Zhu When i < VIRTIO_MAX_VIRTQUEUES and j == i, dev->callfds[i] and dev->kickfds[i] are default 0. So it will close(0), close the standard input (stdin). And when the code fails in kickfd creation, it will leaves one callfd not closed. Fixes: e6e7ad8b3024 ("net/virtio-user: move even

[dpdk-dev] [PATCH v2] net/virtio-user: fix run close(0) and close callfd

2020-12-11 Thread Jiawei Zhu
From: Jiawei Zhu When i < VIRTIO_MAX_VIRTQUEUES and j == i, dev->callfds[i] and dev->kickfds[i] are default 0. So it will close(0), close the standard input (stdin). And when the code fails in kickfd creation, it will leaves one callfd not closed. Fixes: e6e7ad8b3024 ("net/virtio-user: move even

[dpdk-dev] [PATCH v2] net/virtio-user: fix run close(0) and close callfd

2020-12-11 Thread Jiawei Zhu
From: Jiawei Zhu When i < VIRTIO_MAX_VIRTQUEUES and j == i, dev->callfds[i] and dev->kickfds[i] are default 0. So it will close(0), close the standard input (stdin). And when the code fails in kickfd creation, it will leaves one callfd not closed. Fixes: e6e7ad8b3024 ("net/virtio-user: move even

[dpdk-dev] [PATCH v2] net/virtio-user: fix run close(0) and close callfd

2020-12-11 Thread Jiawei Zhu
From: Jiawei Zhu When i < VIRTIO_MAX_VIRTQUEUES and j == i, dev->callfds[i] and dev->kickfds[i] are default 0. So it will close(0), close the standard input (stdin). And when the code fails in kickfd creationg, it will leaves one callfd not closed. Fixes: e6e7ad8b3024 ("net/virtio-user: move eve