From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 213E81B224 for ; Fri, 20 Oct 2017 13:58:27 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Oct 2017 04:58:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,405,1503385200"; d="scan'208";a="911893080" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.221.32]) by FMSMGA003.fm.intel.com with SMTP; 20 Oct 2017 04:58:24 -0700 Received: by (sSMTP sendmail emulation); Fri, 20 Oct 2017 12:58:23 +0100 Date: Fri, 20 Oct 2017 12:58:23 +0100 From: Bruce Richardson To: Andrew Rybchenko Cc: Yongseok Koh , "dev@dpdk.org" Message-ID: <20171020115823.GA21216@bricha3-MOBL3.ger.corp.intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Research and Development Ireland Ltd. User-Agent: Mutt/1.9.1 (2017-09-22) Subject: Re: [dpdk-dev] Requirement of minimum Rx burst size for PMDs 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: Fri, 20 Oct 2017 11:58:28 -0000 On Fri, Oct 20, 2017 at 01:07:17PM +0300, Andrew Rybchenko wrote: > On 10/20/2017 04:18 AM, Yongseok Koh wrote: > > Therefore, how about adding min_rx/tx_burst_sz in struct rte_eth_dev_info and > > have PMDs fill it in on dev_ops->dev_infos_get() so as to make apps comply with > > it. > > Just for my understand, what should happen if application wants to send only > one packet? 5 packets? 33? 35? I actually think there is a mistake in the original mails. At least for Intel PMDs there is no restriction on min TX burst sizes in any code path. The vector RX on the other hand does require a minimum number of empty buffers to be passed to it, so you need to request no fewer than 4 packets in a burst. If only one packet is available that will still be returned to you, but you must request at least 4 Reagrds, /Bruce