From mboxrd@z Thu Jan 1 00:00:00 1970 From: Masoud Moshref Javadi Subject: rte_eth_rx_burst only returns up to 32 packets Date: Fri, 28 Aug 2015 12:04:12 -0700 Message-ID: <55E0B0AC.7060509@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit To: dev@dpdk.org Return-path: Received: from mail-pa0-f49.google.com (mail-pa0-f49.google.com [209.85.220.49]) by dpdk.org (Postfix) with ESMTP id 84F325A33 for ; Fri, 28 Aug 2015 21:04:10 +0200 (CEST) Received: by paczk9 with SMTP id zk9so269082pac.0 for ; Fri, 28 Aug 2015 12:04:10 -0700 (PDT) Received: from [204.57.7.4] ([204.57.7.4]) by smtp.googlemail.com with ESMTPSA id hk4sm1623696pdb.22.2015.08.28.12.04.08 for (version=TLSv1/SSLv3 cipher=OTHER); Fri, 28 Aug 2015 12:04:09 -0700 (PDT) List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi, The documentation of this method says: Applications implementing a "retrieve as much received packets as possible" policy can check this specific case and keep invoking the rte_eth_rx_burst() function until a value less than nb_pkts is returned. But the function returns at most 32 packets regardless of the burst size parameter (nb_pkts). For example when I set the burst size to 256, it only returns 32 packets even though the queue has more packets. This means that I cannot rely on the returned value to know if there are > 256 packets in the queue or not. Where this number 32 comes from? Is it because "PMD: ixgbe_set_rx_function(): Vector rx enabled, please make sure RX burst size no less than 32." ? I use DPDK 2.0.0 and Intel 82599 10 G NIC. Thanks