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 3F30F1B1B8; Fri, 6 Oct 2017 00:32:27 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP; 05 Oct 2017 15:32:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,482,1500966000"; d="scan'208";a="907198847" Received: from unknown (HELO [10.241.225.33]) ([10.241.225.33]) by FMSMGA003.fm.intel.com with ESMTP; 05 Oct 2017 15:32:23 -0700 To: Yongseok Koh , adrien.mazarguil@6wind.com, nelio.laranjeiro@6wind.com Cc: martin.weiser@allegro-packets.com, dev@dpdk.org, stable@dpdk.org References: <20171005213729.26326-1-yskoh@mellanox.com> From: Ferruh Yigit Message-ID: <1c243a95-6d50-5ffd-05d9-8b9552251208@intel.com> Date: Thu, 5 Oct 2017 23:32:23 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20171005213729.26326-1-yskoh@mellanox.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [dpdk-stable] [PATCH] net/mlx5: fix overflow of Rx SW ring 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: Thu, 05 Oct 2017 22:32:28 -0000 On 10/5/2017 10:37 PM, Yongseok Koh wrote: > If vectorized Rx burst is short of mbufs in replenishment, Rx SW ring can > overflow as the Rx burst handles 4 packets in a loop. This is because the > function fills SW ring and its mbufs first and checks validity of > each completion later. So, there should be some buffer slots at the tail of > the ring to protect mbufs which are already owned by application. > > Fixes: 6cb559d67b83 ("net/mlx5: add vectorized Rx/Tx burst for x86") > Cc: stable@dpdk.org > > Reported-by: Martin Weiser > Signed-off-by: Yongseok Koh Applied to dpdk-next-net/master, thanks.