From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <Tero.Aho@coriant.com>
Received: from emea01-db3-obe.outbound.protection.outlook.com
 (mail-db3on0100.outbound.protection.outlook.com [157.55.234.100])
 by dpdk.org (Postfix) with ESMTP id 1319D959
 for <dev@dpdk.org>; Fri, 27 Feb 2015 14:42:58 +0100 (CET)
Received: from VI1PR04CA0025.eurprd04.prod.outlook.com (25.163.3.35) by
 VI1PR04MB1102.eurprd04.prod.outlook.com (25.161.109.24) with Microsoft SMTP
 Server (TLS) id 15.1.99.14; Fri, 27 Feb 2015 13:42:57 +0000
Received: from AM1FFO11FD032.protection.gbl (2a01:111:f400:7e00::120) by
 VI1PR04CA0025.outlook.office365.com (2a01:111:e400:58e9::35) with Microsoft
 SMTP Server (TLS) id 15.1.99.14 via Frontend Transport; Fri, 27 Feb 2015
 13:42:56 +0000
Received: from usnvwwmspedge02.tellabs-west.tellabsinc.net (204.154.129.150)
 by AM1FFO11FD032.mail.protection.outlook.com (10.174.64.221) with Microsoft
 SMTP Server (TLS) id 15.1.99.6 via Frontend Transport; Fri, 27 Feb 2015
 13:42:56 +0000
Received: from usnvwwmspht02.tellabs-west.tellabsinc.net (172.23.211.70) by
 usnvwwmspedge02.tellabs-west.tellabsinc.net (204.154.131.191) with Microsoft
 SMTP Server (TLS) id 8.3.377.0; Fri, 27 Feb 2015 07:42:27 -0600
Received: from T430.tellabs-east.tellabsinc.net (172.23.229.50) by
 usnvwwmspht02.tellabs-west.tellabsinc.net (172.23.211.70) with Microsoft SMTP
 Server id 8.3.298.1; Fri, 27 Feb 2015 07:42:53 -0600
From: Tero Aho <tero.aho@coriant.com>
To: <dev@dpdk.org>
Date: Fri, 27 Feb 2015 15:42:37 +0200
Message-ID: <1425044560-23397-1-git-send-email-tero.aho@coriant.com>
X-Mailer: git-send-email 1.9.1
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
X-EOPAttributedMessage: 0
Received-SPF: Pass (protection.outlook.com: domain of coriant.com designates
 204.154.129.150 as permitted sender) receiver=protection.outlook.com;
 client-ip=204.154.129.150; helo=usnvwwmspedge02.tellabs-west.tellabsinc.net;
Authentication-Results: spf=pass (sender IP is 204.154.129.150)
 smtp.mailfrom=Tero.Aho@coriant.com; dpdk.org; dkim=none (message not signed)
 header.d=none;
X-Forefront-Antispam-Report: CIP:204.154.129.150; CTRY:US; IPV:NLI; EFV:NLI;
 SFV:NSPM;
 SFS:(10009020)(6009001)(438002)(189002)(199003)(2351001)(229853001)(50466002)(46102003)(62966003)(450100001)(77156002)(77096005)(36756003)(106466001)(16796002)(107886001)(48376002)(50986999)(6806004)(86362001)(50226001)(47776003)(92566002)(87936001)(33646002)(110136001);
 DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB1102;
 H:usnvwwmspedge02.tellabs-west.tellabsinc.net; FPR:; SPF:Pass; MLV:sfv; MX:1;
 A:1; LANG:en; 
X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:VI1PR04MB1102;
X-Microsoft-Antispam-PRVS: <VI1PR04MB11026DD7B6E08F1F1632BCB3C2150@VI1PR04MB1102.eurprd04.prod.outlook.com>
X-Exchange-Antispam-Report-Test: UriScan:;
X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006);
 SRVR:VI1PR04MB1102; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB1102; 
X-Forefront-PRVS: 05009853EF
X-OriginatorOrg: coriant.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2015 13:42:56.2185 (UTC)
X-MS-Exchange-CrossTenant-Id: 76595477-907e-4695-988b-a6b39087332d
X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=76595477-907e-4695-988b-a6b39087332d; Ip=[204.154.129.150]
X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB1102
Subject: [dpdk-dev] [PATCH 0/3] pcap pmd improvements
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches and discussions about DPDK <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Fri, 27 Feb 2015 13:42:58 -0000

We have found it convenient to use pcap interfaces in early development
when speed does not matter. However, pcap interfaces use fixed values
for some properties like link status which makes it hard to simulate
certain conditions.

Here's series of small improvements we have originally used on top
of v1.7.0 (now rebased to current master).

Tero Aho (3):
  pcap: utilize underlying real interface properties
  pcap: add support for jumbo frames
  pcap: add byte and error counters into statistics

 lib/librte_pmd_pcap/rte_eth_pcap.c | 176 +++++++++++++++++++++++++++++++--=
----
 1 file changed, 151 insertions(+), 25 deletions(-)

--
1.9.1


=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader
of this message is not the intended recipient, or an employee
or agent responsible for delivering this message to the
intended recipient, you are hereby notified that any reproduction,
dissemination or distribution of this communication is strictly
prohibited. If you have received this communication in error,
please notify us immediately by replying to the message and
deleting it from your computer. Thank you. Coriant-Tellabs
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D