From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuanhan Liu Subject: Re: [PATCH v2] net/virtio: fix an incorrect behavior of device stop/start Date: Fri, 20 Oct 2017 13:35:30 +0800 Message-ID: <20171020053530.GD1545@yliu-home> References: <20170829082601.30349-1-tiwei.bie@intel.com> <1508465368-36746-1-git-send-email-tiwei.bie@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org, maxime.coquelin@redhat.com, jfreimann@redhat.com, stable@dpdk.org To: Tiwei Bie Return-path: Content-Disposition: inline In-Reply-To: <1508465368-36746-1-git-send-email-tiwei.bie@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Fri, Oct 20, 2017 at 10:09:28AM +0800, Tiwei Bie wrote: > After starting a device, the driver shouldn't deliver the > packets that already existed before the device is started > to applications. Otherwise it will lead to incorrect packet > collection for port state. This patch fixes this issue by > flushing the Rx queues when starting the device. > > Fixes: a85786dc816f ("virtio: fix states handling during initialization") > Cc: stable@dpdk.org > > Signed-off-by: Tiwei Bie > Reviewed-by: Jens Freimann Applied to dpdk-next-virtio. Thanks. --yliu