From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 529951077 for ; Wed, 19 Apr 2017 04:17:14 +0200 (CEST) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP; 18 Apr 2017 19:17:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,219,1488873600"; d="scan'208";a="89352307" Received: from yliu-dev.sh.intel.com (HELO yliu-dev) ([10.239.67.162]) by orsmga005.jf.intel.com with ESMTP; 18 Apr 2017 19:17:12 -0700 Date: Wed, 19 Apr 2017 10:14:04 +0800 From: Yuanhan Liu To: Jianfeng Tan Cc: dev@dpdk.org Message-ID: <20170419021404.GT7333@yliu-dev.sh.intel.com> References: <1492150230-131946-1-git-send-email-jianfeng.tan@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1492150230-131946-1-git-send-email-jianfeng.tan@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] [PATCH] net/virtio-user: fix LSC not working X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2017 02:17:14 -0000 On Fri, Apr 14, 2017 at 06:10:30AM +0000, Jianfeng Tan wrote: > Previously, we miss to set intr_handle->fd which will be used as > target file for epoll to check LSC. > > As a result, stdin (0) is used and intr thread keeps busy whenever > data comes from stdin. > > To fix this, we use vhostfd as the target file for epoll to check > the link status change events. And we move intr_handle initialization > after vhost backend settup to make sure vhostfd is initialized. > > Fixes: 35c4f8554833 ("net/virtio-user: support to report net status") > > Signed-off-by: Jianfeng Tan Applied to dpdk-next-virtio. Thanks. --yliu