From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from new2-smtp.messagingengine.com (new2-smtp.messagingengine.com [66.111.4.224]) by dpdk.org (Postfix) with ESMTP id D5F4E7CFC; Fri, 20 Oct 2017 07:35:35 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailnew.nyi.internal (Postfix) with ESMTP id 0A3E3141B; Fri, 20 Oct 2017 01:35:35 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Fri, 20 Oct 2017 01:35:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=o0wsWZmdYldfkHV/2frPiXJbfwPRBVoOuJIKebAkHu0=; b=ZYg0AGtT tc1Dgu+YjrKVnN+nDNoQmmn9BdcJGJvd96bXrd8rVKPxuePcKHdVS4oM0YNTlvAW bCM7W3c4vNsL66WVkMPhJH4J+bEHoSurUQyoOPh+wfBWfm4K0xbtUpF76y+zKhJJ N4JAK0+AbBW4IKPq3r7tYstSDzV19Q7HInJu1bBn8YbnaxEfVwjTzK93V9HGmRcN Kasr2KpyrJMAy7KV3m7294oHilOORBQlUbu4Hytx23sQDA10BqavNM3GKwzCdXG+ ZHYooyoFMAyjxLD8BU2s9nzJwpa03T4zjOEA3bzioWPibbBZjjVO0aLm6+2nc9tt ne5cHcHvfD8kqg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=o0wsWZmdYldfkHV/2frPiXJbfwPRB VoOuJIKebAkHu0=; b=HqFN/07I8lHKB3Lkdj0ETkjHFgFQIK7zlj1ot0NM6myKn EEfsM+PvIuvkH0cGIvh0xSgoA5kOy7LL99aNEw+fnL+qX8Z91E80EoWCbP8dzvHO nHD3XEwo5J/4EentU4moNN+5qGpOZByFCLYupUOE3in2JrBGQrt1hJmsal7jZr7z zMVCzICBmQ0VROR+5nFf5aI9fAymNDmAh6/ZPk4nABwIXiKHGrnUG9MK1HCvXMQ2 Y3w0g+bCWaOyuzdMyV1piQouCqYQSO3XS9VU+EpsG1W6aucGkLvFWc3dPRc3fEuA 416ox/BdQ+blR9mzPmQN1/rrmZ1e8LEb1ykgkU4dQ== X-ME-Sender: Received: from yliu-home (unknown [124.79.168.36]) by mail.messagingengine.com (Postfix) with ESMTPA id C34A22489B; Fri, 20 Oct 2017 01:35:33 -0400 (EDT) Date: Fri, 20 Oct 2017 13:35:30 +0800 From: Yuanhan Liu To: Tiwei Bie Cc: dev@dpdk.org, maxime.coquelin@redhat.com, jfreimann@redhat.com, stable@dpdk.org 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 Content-Disposition: inline In-Reply-To: <1508465368-36746-1-git-send-email-tiwei.bie@intel.com> User-Agent: Mutt/1.5.24 (2015-08-30) Subject: Re: [dpdk-stable] [PATCH v2] net/virtio: fix an incorrect behavior of device stop/start X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Oct 2017 05:35:36 -0000 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