From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 67887A00E6 for ; Wed, 20 Mar 2019 11:44:45 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 52CBA4F91; Wed, 20 Mar 2019 11:44:44 +0100 (CET) Received: from smtpbgsg2.qq.com (smtpbgsg2.qq.com [54.254.200.128]) by dpdk.org (Postfix) with ESMTP id EDA0A4F90 for ; Wed, 20 Mar 2019 11:44:42 +0100 (CET) X-QQ-mid: bizesmtp16t1553078676t2n8cuf9 Received: from DESKTOPDQ7VDGF (unknown [202.106.72.207]) by esmtp4.qq.com (ESMTP) with SMTP id 0 for ; Wed, 20 Mar 2019 18:44:35 +0800 (CST) X-QQ-SSF: 00400000002000B0D220B00A0000000 X-QQ-FEAT: Pd9sUd95vlwLHaYkKBzPBhM7CtDSPNaLmiEUlYfuQUxx8NraZMaM+VAz/F0qq t82gx5ovfvSoszsJQF4MattZKGLXe0jpVlSNHFub23oCXWghpTaIYnPggzu21GMl0Y5lJ9e SPyGMSfliXCzMw25ljB3jFm/c+N/wb8Y9KTNHsM2sUm0qnIUULKh2P18g6bITMKCaXY455O OfRNJlijdTIMQYnyavsEnSttOA3Z+iop/ULsUPFq+D8LTobRvowiXTt/P7yyIskfx8967nn prq0nq2xVB18mBVjf//yh4v6Ffd/G8+xXeaV6XNqL6fAQy X-QQ-GoodBg: 2 From: =?gb2312?B?y8693Q==?= To: Date: Wed, 20 Mar 2019 18:44:35 +0800 Message-ID: <000001d4df09$e970f1e0$bc52d5a0$@zctt.com>+86DF114D4D1219DB MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdTfCehwCRpx+mXASbmbr1MqpO4QZw== Content-Language: zh-cn X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:zctt.com:qybgforeign:qybgforeign4 X-QQ-Bgrelay: 1 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] How to getting first objects from a rte_mempool buffer every time? X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" Hi all=A3=AC =20 I have a pcap file that contained 100 IP packets. I can send them by = DPDK by below steps: =20 1. I create a rte_mempool buffer by rte_pktmbuf_pool_create. load = these 100 packets into this buffer.=20 2. call rte_mempool_get_bulk to getting packets form rte_mempool = buffer into rte_mbuf buffer, 3. put rte_mbuf buffer into rte_eth_tx_burst for sending . The pcap packets can be sent out from 1 to 100 Ok. =20 Now I want to send the only first 10 packets every time, rte_mempool_get_bulk can get 1-10 objects, but next time it will get = 11-20 objects. I don=A1=AFt know if there is easy way to getting first 10 objects from rte_mempool buffer every time? =20 =20 Thanks =20 Jie