[dpdk-dev] [PATCH] net/virtio: fix missing listen FD initialization

Ferruh Yigit ferruh.yigit at intel.com
Wed Feb 3 00:11:45 CET 2021

On 2/2/2021 9:26 AM, Zhou, JunX W wrote:

> -----Original Message-----
> From: Maxime Coquelin [mailto:maxime.coquelin at redhat.com]
> Sent: Monday, February 1, 2021 5:33 PM
> To: dev at dpdk.org; Wang, Yinan <yinan.wang at intel.com>; Xia, Chenbo <chenbo.xia at intel.com>; amorenoz at redhat.com; david.marchand at redhat.com; Ling, WeiX <weix.ling at intel.com>; Jiang, YuX <yux.jiang at intel.com>
> Cc: Maxime Coquelin <maxime.coquelin at redhat.com>; Zhou, JunX W <junx.w.zhou at 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.zhou at intel.com>
> Signed-off-by: Maxime Coquelin <maxime.coquelin at redhat.com>
 > Reviewed-by: David Marchand <david.marchand at redhat.com>
 > Tested-by: Zhou, Jun <junx.w.zhou at intel.com>

Applied to dpdk-next-net/main, thanks.

More information about the dev mailing list