On 2/2/2021 9:26 AM, Zhou, JunX W wrote:
-----Original Message-----
From: Maxime Coquelin [mailto:maxime.coque...@redhat.com]
Sent: Monday, February 1, 2021 5:33 PM
To: dev@dpdk.org; Wang, Yinan <yinan.w...@intel.com>; Xia, Chenbo <chenbo....@intel.com>;
amore...@redhat.com; david.march...@redhat.com; Ling, WeiX <weix.l...@intel.com>; Jiang, YuX
<yux.ji...@intel.com>
Cc: Maxime Coquelin <maxime.coque...@redhat.com>; Zhou, JunX W
<junx.w.z...@intel.com>
Subject: [PATCH] net/virtio: fix missing listen FD initialization
When running in client mode, the listen file descriptor is not initialized, and
so has value 0. At destroy time, the listen FD is closed if its value is
greater than or equal to zero, which causes STDIN to be closed.
> Bugzilla ID: 630
Fixes: 949735312f5e ("net/virtio: move vhost-user specifics to its backend")
Reported-by: Jun W Zhou <junx.w.z...@intel.com>
Signed-off-by: Maxime Coquelin <maxime.coque...@redhat.com>
> Reviewed-by: David Marchand <david.march...@redhat.com>
>
> Tested-by: Zhou, Jun <junx.w.z...@intel.com>
>
Applied to dpdk-next-net/main, thanks.