From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from m13-22.163.com (m13-22.163.com [220.181.13.22]) by dpdk.org (Postfix) with ESMTP id 5B233685D for ; Mon, 16 Sep 2013 14:18:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Received:Date:From:To:Subject:Content-Type: MIME-Version:Message-ID; bh=PjPHZNmXrQyo7HXCYUAkTalLGjSIOZDwmlzN EOFgeig=; b=SFaEp+Ch56um2h0BKv6OIHdpORBTXIf8ghXFaJqoI9oQ6vLo/GYk Nmp0iahyU3xS7c4dVCtrLAyXqUYpCqxRRA9ztHH5LxvaeZqq3K8GqNB+/NRckeV5 jqdu79je5mUypPJIj6K6buYc4rno7c4Uiiz2AM7dWwcumNsjL8A1k6E= Received: from jinxiu.1006$163.com ( [211.162.75.108] ) by ajax-webmail-wmsvr22 (Coremail) ; Mon, 16 Sep 2013 20:19:11 +0800 (CST) X-Originating-IP: [211.162.75.108] Date: Mon, 16 Sep 2013 20:19:11 +0800 (CST) From: dvr To: dev X-Priority: 3 X-Mailer: Coremail Webmail Server Version SP_ntes V3.5 build 20130822(23259.5548.5550) Copyright (c) 2002-2013 www.mailtech.cn 163com X-CM-CTRLDATA: JeoTOWZvb3Rlcl9odG09ODgzOjgx MIME-Version: 1.0 Message-ID: <36dbaa8.18e01.14126b5d04d.Coremail.jinxiu.1006@163.com> X-CM-TRANSID: FsGowGCZQEJA9zZSqqknAA--.2157W X-CM-SenderInfo: xmlq5xbxoriiqw6rljoofrz/xtbBdg+a7FEAEX+C1QABsm X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Receive packet one by one instead of a bulk of 16 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: Mon, 16 Sep 2013 12:18:38 -0000 hi all, In "testpmd", the default nb_pkt_per_burst value is 16, that is, receive 16 packets one time and then forward. Now, I set nb_pkt_per_burst=1, and after the packet received, delay 50us, because I have to add some packet processing steps between receive and transmit. However, in this situation, I lost 20% packets. How could this happen? And what should I do to have an effect? Any help will be appreciated. Best Regards. Maria >From thomas.monjalon@6wind.com Mon Sep 16 15:08:25 2013 Return-Path: Received: from mail-bk0-f46.google.com (mail-bk0-f46.google.com [209.85.214.46]) by dpdk.org (Postfix) with ESMTP id C2595688F for ; Mon, 16 Sep 2013 15:08:24 +0200 (CEST) Received: by mail-bk0-f46.google.com with SMTP id 6so1487333bkj.5 for ; Mon, 16 Sep 2013 06:09:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:organization:to:subject:date:user-agent :references:in-reply-to:cc:mime-version:content-type :content-transfer-encoding:message-id; bh=Oh2vfpNGy9yBIymmlBdS4KqP7GjBf7XCprzAA69Vr9M=; b=JmNyAszBInzSl3LjCdIoOmG5wb14wXaouNneLcaxR9/QOg4keSgtm2fYK0S45rjJrR fL2lL2FmC0qTIsFXnmTXHxpcKj45AO/LvF+y0kPnu3qG+zipad92Uw8IfTl+2tjMEWwR KTCPu+rT6llPgnhl916n/z0Atqj0IrKLq7/ElvGWEiu8+658v1oRlFaE6pE9jKNK/QVe qjsswxeaQcvHi4nUfeJvyVJX/kBVsOCv3HVKH9WcYH4Oo/LVVq+t5QU0SL7Rhnka/IVg IQCxRSyHtsxHNpk1NYIizKjiL6DTE3ZInWiaODFRAdH+VohsUYTavNrInY9wu6kaRndW Dskw== X-Gm-Message-State: ALoCoQkzd4xZ7cHJWjLsfbQCPw06BI70vmQQxo76fX1WNxCwe96SxgPcgYxfb4m9lkvaIx4XDneu X-Received: by 10.204.102.136 with SMTP id g8mr1782422bko.34.1379336942514; Mon, 16 Sep 2013 06:09:02 -0700 (PDT) Received: from angus.localnet (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by mx.google.com with ESMTPSA id ku9sm7596946bkb.1.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 16 Sep 2013 06:09:02 -0700 (PDT) From: Thomas Monjalon Organization: 6WIND To: nicolas.dichtel@6wind.com Date: Mon, 16 Sep 2013 15:09:00 +0200 User-Agent: KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; ) References: <95c752508913ea02f74b36c53eb7d5ae88a29dc0.1379081595.git.thomas.monjalon@6wind.com> <5236E9C7.5050502@6wind.com> In-Reply-To: <5236E9C7.5050502@6wind.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <201309161509.01110.thomas.monjalon@6wind.com> Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v2 1/4] kni: fix build with kernel 3.8 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: Mon, 16 Sep 2013 13:08:25 -0000 16/09/2013 13:21, Nicolas Dichtel : > Le 13/09/2013 16:14, Thomas Monjalon a =E9crit : > > - timecompare (used for hardware timestamping) has been removed. > > (see Linux commit 65f8f9a1c1db831e5159e3e3e50912d1f214cd0c) > > Simply disable HW_TIME_STAMP feature because it is not used by KNI. > > For this purpose, kcompat.h must be included before testing for > > HAVE_HW_TIME_STAMP. > >=20 > > - annotations __devinit and __devexit have been removed. > > (see Linux commit 54b956b903607f8f8878754dd4352da6a54a1da2) > >=20 > > Signed-off-by: Thomas Monjalon > > Tested-by: David Nystr=F6m >=20 > Acked-by: Nicolas Dichtel pushed, thanks for the review =2D-=20 Thomas