From owner-freebsd-net@FreeBSD.ORG Wed May 27 21:47:25 2015 Return-Path: Delivered-To: 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 78CC175C for ; Wed, 27 May 2015 21:47:25 +0000 (UTC) (envelope-from ddesimone@verio.net) Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2on0066.outbound.protection.outlook.com [207.46.100.66]) (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 3D35E135 for ; Wed, 27 May 2015 21:47:24 +0000 (UTC) (envelope-from ddesimone@verio.net) Received: from SN2PR0801MB687.namprd08.prod.outlook.com (25.160.17.152) by SN2PR0801MB686.namprd08.prod.outlook.com (25.160.17.151) with Microsoft SMTP Server (TLS) id 15.1.160.19; Wed, 27 May 2015 21:47:17 +0000 Received: from SN2PR0801MB687.namprd08.prod.outlook.com ([25.160.17.152]) by SN2PR0801MB687.namprd08.prod.outlook.com ([25.160.17.152]) with mapi id 15.01.0160.009; Wed, 27 May 2015 21:47:16 +0000 From: David DeSimone To: "net@freebsd.org" Subject: RE: Netmap problem with e1000e driver Thread-Topic: Netmap problem with e1000e driver Thread-Index: AQHQmJGAGO6tR/YvmkOVuCaLnWADBJ2QAVuAgABamlA= Date: Wed, 27 May 2015 21:47:16 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=ddesimone@verio.net; x-originating-ip: [173.74.95.3] x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN2PR0801MB686; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:SN2PR0801MB686; BCL:0; PCL:0; RULEID:; SRVR:SN2PR0801MB686; x-forefront-prvs: 05891FB07F x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(199003)(51704005)(479174004)(53754006)(189002)(13464003)(377454003)(53474002)(24454002)(50986999)(19580405001)(54356999)(4001540100001)(450100001)(33656002)(81156007)(74316001)(64706001)(106356001)(5001960100002)(86362001)(76176999)(19580395003)(101416001)(77156002)(189998001)(2900100001)(68736005)(5001860100001)(46102003)(110136002)(62966003)(102836002)(66066001)(107886002)(97736004)(92566002)(87936001)(106116001)(76576001)(2656002)(99286002)(105586002)(2950100001)(2501003)(5890100001)(2351001)(5001830100001)(40100003)(122556002)(5002640100001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR0801MB686; H:SN2PR0801MB687.namprd08.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: verio.net does not designate permitted sender hosts) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: verio.net X-MS-Exchange-CrossTenant-originalarrivaltime: 27 May 2015 21:47:16.3073 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 281c3918-264a-4db4-ab20-2dafa1dca324 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR0801MB686 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 May 2015 21:47:25 -0000 Actually, Luigi has specifically requested that all users of netmap (Linux = or BSD) use this list to field all of their questions. -----Original Message----- From: owner-freebsd-net@freebsd.org [mailto:owner-freebsd-net@freebsd.org] = On Behalf Of Jack Vogel Sent: Wednesday, May 27, 2015 11:22 AM To: Oleg Prozorov Cc: net@freebsd.org Subject: Re: Netmap problem with e1000e driver Maybe asking a Linux mailing list about a Linux driver would be more productive :) Jack On Wed, May 27, 2015 at 8:26 AM, Oleg Prozorov wrote: > Hello All, > I am using Netmap technology in my program and have the problem : > when I put eth link down and then have it up netmap goes down with kernel > messages: > > log from dmesg: > > [ 2457.286289] irq 44: nobody cared (try booting with the "irqpoll" optio= n) > [ 2457.286296] CPU: 2 PID: 0 Comm: swapper/2 Tainted: G O > 3.16.0-4-amd64 #1 Debian 3.16.7-ckt9-3~deb8u1 > [ 2457.286298] Hardware name: System manufacturer System Product > Name/P8H61-MX R2.0, BIOS 0803 10/26/2012 > [ 2457.286300] ffff880198b544c4 ffffffff8150ac96 ffff880198b54400 > ffffffff810bd10d > [ 2457.286304] ffff880198b54400 000000000000002c 0000000000000000 > ffffffff810bd631 > [ 2457.286307] 0000000000000000 0000000000000000 000000000000002c > 0000000000000000 > [ 2457.286310] Call Trace: > [ 2457.286312] [] ? dump_stack+0x41/0x51 > [ 2457.286324] [] ? __report_bad_irq+0x2d/0xc0 > [ 2457.286328] [] ? note_interrupt+0x241/0x290 > [ 2457.286332] [] ? handle_irq_event_percpu+0xa1/0x190 > [ 2457.286336] [] ? handle_irq_event+0x38/0x60 > [ 2457.286341] [] ? handle_edge_irq+0x85/0x150 > [ 2457.286347] [] ? handle_irq+0x1d/0x30 > [ 2457.286350] [] ? do_IRQ+0x49/0xe0 > [ 2457.286355] [] ? common_interrupt+0x6d/0x6d > [ 2457.286356] [] ? > __hrtimer_start_range_ns+0x1cd/0x390 > [ 2457.286364] [] ? cpuidle_enter_state+0x52/0xc0 > [ 2457.286368] [] ? cpuidle_enter_state+0x48/0xc0 > [ 2457.286372] [] ? cpu_startup_entry+0x2f8/0x400 > [ 2457.286375] [] ? start_secondary+0x20f/0x2d0 > [ 2457.286377] handlers: > [ 2457.286384] [] e1000_msix_other [e1000e] > [ 2457.286386] Disabling IRQ #44 > > before i have the next steps: > > insmod ./netmap.ko > insmod ./e1000e/e1000e.ko > > log from dmesg: > > [ 1645.548786] e1000e: Intel(R) PRO/1000 Network Driver - 2.3.2-k > [ 1645.548791] e1000e: Copyright(c) 1999 - 2014 Intel Corporation. > [ 1645.549056] e1000e 0000:02:00.0: Interrupt Throttling Rate (ints/sec) > set to dynamic conservative mode > [ 1645.549089] e1000e 0000:02:00.0: irq 42 for MSI/MSI-X > [ 1645.549094] e1000e 0000:02:00.0: irq 43 for MSI/MSI-X > [ 1645.549098] e1000e 0000:02:00.0: irq 44 for MSI/MSI-X > [ 1645.704831] 635.291734 [2720] netmap_attach success for et= h0 > tx 1/256 rx 1/256 queues/slots > [ 1645.705079] e1000e 0000:02:00.0 eth0: registered PHC clock > [ 1645.705083] e1000e 0000:02:00.0 eth0: (PCI Express:2.5GT/s:Width x1) > 68:05:ca:28:36:f5 > [ 1645.705086] e1000e 0000:02:00.0 eth0: Intel(R) PRO/1000 Network > Connection > [ 1645.705100] e1000e 0000:02:00.0 eth0: MAC: 3, PHY: 8, PBA No: E46981-0= 08 > [ 1645.705349] e1000e 0000:03:00.0: Interrupt Throttling Rate (ints/sec) > set to dynamic conservative mode > [ 1645.705381] e1000e 0000:03:00.0: irq 45 for MSI/MSI-X > [ 1645.705386] e1000e 0000:03:00.0: irq 46 for MSI/MSI-X > [ 1645.705390] e1000e 0000:03:00.0: irq 47 for MSI/MSI-X > [ 1645.739490] systemd-udevd[2715]: renamed network interface eth0 to eth= 5 > [ 1645.824716] IPv6: ADDRCONF(NETDEV_UP): eth5: link is not ready > [ 1645.848756] 635.435799 [2720] netmap_attach success for et= h0 > tx 1/256 rx 1/256 queues/slots > [ 1645.848851] e1000e 0000:03:00.0 eth0: registered PHC clock > [ 1645.848856] e1000e 0000:03:00.0 eth0: (PCI Express:2.5GT/s:Width x1) > 68:05:ca:22:19:e7 > [ 1645.848859] e1000e 0000:03:00.0 eth0: Intel(R) PRO/1000 Network > Connection > [ 1645.848875] e1000e 0000:03:00.0 eth0: MAC: 3, PHY: 8, PBA No: E46981-0= 08 > [ 1645.869528] systemd-udevd[2715]: renamed network interface eth0 to eth= 6 > [ 1645.949935] IPv6: ADDRCONF(NETDEV_UP): eth6: link is not ready > [ 1648.795532] e1000e: eth5 NIC Link is Up 1000 Mbps Full Duplex, Flow > Control: Rx/Tx > [ 1648.795856] IPv6: ADDRCONF(NETDEV_CHANGE): eth5: link becomes ready > [ 1648.843497] e1000e: eth6 NIC Link is Up 1000 Mbps Full Duplex, Flow > Control: Rx/Tx > [ 1648.843820] IPv6: ADDRCONF(NETDEV_CHANGE): eth6: link becomes ready > [ 1668.060841] e1000e: eth5 NIC Link is Up 1000 Mbps Full Duplex, Flow > Control: Rx/Tx > [ 1668.212692] e1000e: eth6 NIC Link is Up 1000 Mbps Full Duplex, Flow > Control: Rx/Tx > > > My program used netmap desc: > root@debian:/home/debian/Projects/bin# lsmod | grep netmap > netmap 99228 5 e1000e > > > Then even if it shows that link is up net map stops to work and only > rmmod/insmod and restart of the netmap can bring it back to work. > > Could you please help me with it ? > > Thx a lot, > Oleg. This email message is intended for the use of the person to whom it has bee= n sent, and may contain information that is confidential or legally protect= ed. If you are not the intended recipient or have received this message in = error, you are not authorized to copy, distribute, or otherwise use this me= ssage or its attachments. Please notify the sender immediately by return e-= mail and permanently delete this message and any attachments. Verio Inc. ma= kes no warranty that this email is error or virus free. Thank you.