From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; bh=d2IVKGGI9Edy8lNZbkI/mUuTtIp34EA9LLT4JmchUdc=; b=CmltRCnwUF7kSQPUCRFBx4LuKK5+NG2XnyU2FMwBXnB75IcOTJI4TmVSXex5II8hRf 2OAYZiNt5K7nfTzoKmyb4NaRYdFhKBhmghU0s+ryL0K9z82IYAshyNRtkWGLB008DhJ5 c2fwsbwtvN2AUfGgEmyXrSWsyZ6ef2PysgG0JaGjpV6nEvxJBSuATt886sBP4xGLiSfi grwfAkpFKi94YMnhTC7pWQSRKaPgJjD7tn0Z43FS5xBZ7SQ+b21/QtggCf3KlSJKcM9R YuInE1XUp5HJ7ojaqaL1sKzcQfeZDlM0SkX5t/a1PYFYVYmY1wQQI3t+PxJ/aIDlfMb0 ti3Q== X-Received: by 10.68.253.65 with SMTP id zy1mr17729317pbc.159.1440788649907; Fri, 28 Aug 2015 12:04:09 -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) Message-ID: <55E0B0AC.7060509@gmail.com> Date: Fri, 28 Aug 2015 12:04:12 -0700 From: Masoud Moshref Javadi User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: dev@dpdk.org Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] rte_eth_rx_burst only returns up to 32 packets X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Aug 2015 19:04:11 -0000 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