From owner-freebsd-net@FreeBSD.ORG Sat Mar 7 07:20:07 2015 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 011543A8 for ; Sat, 7 Mar 2015 07:20:06 +0000 (UTC) Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0111.outbound.protection.outlook.com [65.55.169.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 890AD846 for ; Sat, 7 Mar 2015 07:20:06 +0000 (UTC) Received: from BY1PR0301MB0902.namprd03.prod.outlook.com (25.160.195.141) by BY1PR0301MB0904.namprd03.prod.outlook.com (25.160.195.143) with Microsoft SMTP Server (TLS) id 15.1.99.14; Sat, 7 Mar 2015 07:19:31 +0000 Received: from BY1PR0301MB0902.namprd03.prod.outlook.com ([25.160.195.141]) by BY1PR0301MB0902.namprd03.prod.outlook.com ([25.160.195.141]) with mapi id 15.01.0099.004; Sat, 7 Mar 2015 07:19:31 +0000 From: Wei Hu To: Luigi Rizzo Subject: RE: Network interrupt and NAPI in FreeBSD? Thread-Topic: Network interrupt and NAPI in FreeBSD? Thread-Index: AdBXxrUZJSIVrvKZR/OD9Js74nJJKgAEkq2AADMFejA= Date: Sat, 7 Mar 2015 07:19:30 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [167.220.232.6] authentication-results: iet.unipi.it; dkim=none (message not signed) header.d=none; x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0301MB0904; x-microsoft-antispam-prvs: x-forefront-antispam-report: BMV:0; SFV:NSPM; SFS:(10019020)(6009001)(51914003)(51704005)(66654002)(19580395003)(19580405001)(46102003)(99286002)(77156002)(62966003)(122556002)(110136001)(50986999)(54356999)(76176999)(86612001)(66066001)(74316001)(86362001)(2656002)(2900100001)(87936001)(33656002)(2950100001)(102836002)(92566002)(76576001); DIR:OUT; SFP:1102; SCL:1; SRVR:BY1PR0301MB0904; H:BY1PR0301MB0902.namprd03.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en; x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(5005006)(5001009); SRVR:BY1PR0301MB0904; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0301MB0904; x-forefront-prvs: 05087F0C24 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: microsoft.onmicrosoft.com X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Mar 2015 07:19:30.3234 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0301MB0904 Cc: "freebsd-net@freebsd.org" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Mar 2015 07:20:07 -0000 TWFueSB0aGFua3MsIEx1aWdpISBXZSBhcmUgbWVhc3VyaW5nIHRoZSBuZXR3b3JrIHBlcmZvcm1h bmNlIGluIFZNKEh5cGVyLVYpLCB1c2luZyBuZXR2c2MgdmlydHVhbCBOSUMgZGV2aWNlIGFuZCBp dHMgb3duIGRyaXZlci4gVGhlIExpbnV4IFZNIGFsc28gdXNlcyB0aGUgc2ltaWxhciB2aXJ0dWFs IGRldmljZS4gVGhlIGRyaXZlciBvbiBib3RoIExpbnV4IGFuZCBGcmVlQ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