From owner-freebsd-net@freebsd.org Thu Feb 16 08:40:53 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B7A51CE169F for ; Thu, 16 Feb 2017 08:40:53 +0000 (UTC) (envelope-from lars@netapp.com) Received: from mx141.netapp.com (mx141.netapp.com [216.240.21.12]) (using TLSv1.2 with cipher RC4-SHA (128/128 bits)) (Client CN "mx141.netapp.com", Issuer "Symantec Class 3 Secure Server CA - G4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7E27C17C8 for ; Thu, 16 Feb 2017 08:40:53 +0000 (UTC) (envelope-from lars@netapp.com) X-IronPort-AV: E=Sophos;i="5.35,168,1484035200"; d="asc'?scan'208";a="183826332" Received: from hioexcmbx03-prd.hq.netapp.com ([10.122.105.36]) by mx141-out.netapp.com with ESMTP; 16 Feb 2017 00:28:15 -0800 Received: from VMWEXCCAS08-PRD.hq.netapp.com (10.122.105.26) by hioexcmbx03-prd.hq.netapp.com (10.122.105.36) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Thu, 16 Feb 2017 00:35:42 -0800 Received: from NAM01-SN1-obe.outbound.protection.outlook.com (10.120.60.153) by VMWEXCCAS08-PRD.hq.netapp.com (10.122.105.26) with Microsoft SMTP Server (TLS) id 15.0.1210.3 via Frontend Transport; Thu, 16 Feb 2017 00:35:43 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netapp.onmicrosoft.com; s=selector1-netapp-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=IDiIUuL8imBa+334IVpqA4qpghk5V0VfWzCC8ykaT+Q=; b=m0Dl3F2NmDz1Bx7mjIgFnHwjTYn4/T40gT/koToxKR7GUTWfSobDYyip5YnCX6Wce2XYJ+bPpc5Xl6wUhaahlLN2mQqmFDHjMGCEn0fFsSJ2yPPJwJBDiVChctII9Q39WlCy8MmDD2fhHYL4PsIARO0mR2jKrF6NQcj9U3PEBTE= Received: from BY1PR0601MB1158.namprd06.prod.outlook.com (10.160.196.21) by BY1PR0601MB1157.namprd06.prod.outlook.com (10.160.196.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Thu, 16 Feb 2017 08:35:41 +0000 Received: from BY1PR0601MB1158.namprd06.prod.outlook.com ([10.160.196.21]) by BY1PR0601MB1158.namprd06.prod.outlook.com ([10.160.196.21]) with mapi id 15.01.0888.030; Thu, 16 Feb 2017 08:35:41 +0000 From: "Eggert, Lars" To: "freebsd-net@FreeBSD.org" CC: Giuseppe Lettieri Subject: netmap error on -CURRENT with em and igb Thread-Topic: netmap error on -CURRENT with em and igb Thread-Index: AQHSiC+nRrmTqYv7V0q/oQBcO7PdYA== Date: Thu, 16 Feb 2017 08:35:41 +0000 Message-ID: <8F640402-8F0B-407D-AB72-743A9AB50CA3@netapp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-mailer: Apple Mail (2.3259) authentication-results: spf=none (sender IP is ) smtp.mailfrom=lars@netapp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [217.70.211.15] x-ms-office365-filtering-correlation-id: b6b5a9d9-cc3c-473e-8dc4-08d45646ca96 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BY1PR0601MB1157; x-microsoft-exchange-diagnostics: 1; BY1PR0601MB1157; 7:mvPNowT9s8wJ5PXmjpIHH0o3MrdTRB87TuwXug2KJszAOzdKsSUhg6nEKpp4fUxm2ETBRFj6fd+JvN84IPOKmLUlCILtl8JNrHB0tzT90ADH7JxazvsYUzxDUP9OmtStMSejnKe3X4PYiMUMTrs7SLJl48G7DmP3GmOSv7DTjhxyCuWvamJAyWuaN0l7Jo3b64fGEIFU1eR0zAPChlRAIlL36Q1fBgb5fuABFPfi2JlxMn+lMIgAwfsKsc035lbPfWiz2adhvUTy5leXuBnpNf/rJRq39cNNpEaB4/ea29BUHHrPPhvxl+djb7THUlPfRPN8Gwr9GIrZBUNSx2vHuA== x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(102415395)(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026)(6041248)(20161123560025)(20161123562025)(20161123555025)(20161123564025)(20161123558025)(6072148); SRVR:BY1PR0601MB1157; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0601MB1157; x-forefront-prvs: 0220D4B98D x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(39450400003)(199003)(189002)(4326007)(2501003)(6512007)(66066001)(99286003)(33656002)(305945005)(57306001)(5660300001)(8936002)(81166006)(2351001)(81156014)(105586002)(389900002)(6506006)(5640700003)(6436002)(25786008)(106356001)(2900100001)(106116001)(6486002)(8676002)(68736007)(83716003)(53936002)(36756003)(38730400002)(50986999)(86362001)(122556002)(92566002)(3280700002)(189998001)(99936001)(50226002)(2906002)(97736004)(101416001)(110136004)(82746002)(3660700001)(3846002)(7736002)(77096006)(102836003)(6116002)(6916009)(104396002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0601MB1157; H:BY1PR0601MB1158.namprd06.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: netapp.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/signed; boundary="Apple-Mail=_896D9E6C-1F62-4BA5-BE05-9D4BF9C48C03"; protocol="application/pgp-signature"; micalg=pgp-sha512 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Feb 2017 08:35:41.0771 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4b0911a0-929b-4715-944b-c03745165b3a X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0601MB1157 X-OriginatorOrg: netapp.com X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2017 08:40:53 -0000 --Apple-Mail=_896D9E6C-1F62-4BA5-BE05-9D4BF9C48C03 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, I can't put em or igb interfaces into netmap mode on a recent -CURRENT = (ix interfaces work on the same machines). Here are the pkt-gen and = dmesg outputs: #=EE=82=B0 sudo sysctl dev.netmap.admode=3D1 #=EE=82=B0 sudo sysctl dev.netmap.verbose=3D1 # sudo ./pkt-gen -i em1 790.411737 main [2274] interface is em1 790.411753 main [2397] running on 1 cpus (have 20) 790.411823 extract_ip_range [369] range is 10.0.0.1:0 to 10.0.0.1:0 790.411828 extract_ip_range [369] range is 10.1.0.1:0 to 10.1.0.1:0 790.625117 nm_open [898] NIOCREGIF failed: Operation not permitted em1 790.625126 main [2479] Unable to open netmap:em1: Operation not = permitted 790.625129 main [2560] aborting dmesg: 790.411868 [1776] netmap_interp_ringid em1: tx [0,2) rx [0,2) id 0 790.419431 [ 551] nm_mem_assign_group iommu_group 0 790.425548 [1148] netmap_config_obj_allocator objsize 1024 clustsize = 4096 objects 4 790.434368 [1148] netmap_config_obj_allocator objsize 36864 clustsize = 36864 objects 1 790.443390 [1148] netmap_config_obj_allocator objsize 2048 clustsize = 4096 objects 2 790.452219 [1270] netmap_finalize_obj_allocator Pre-allocated 25 = clusters (4/100KB) for 'netmap_if' 790.463605 [1270] netmap_finalize_obj_allocator Pre-allocated 200 = clusters (36/7200KB) for 'netmap_ring' 790.534919 [1270] netmap_finalize_obj_allocator Pre-allocated 81920 = clusters (4/327680KB) for 'netmap_buf' 790.546113 [1377] netmap_mem_finalize_all interfaces 100 KB, rings = 7200 KB, buffers 320 MB 790.555873 [1380] netmap_mem_finalize_all Free buffers: 163838 790.605325 [1831] netmap_mem_global_deref active =3D 0 790.612967 [ 949] netmap_close dev 0xfffff8000a4d7c00 fflag = 0x20003 devtype 8192 td 0xfffff8000b899000 # sudo ./pkt-gen -i igb1 094.077695 main [2274] interface is igb1 094.077711 main [2397] running on 1 cpus (have 10) 094.077822 extract_ip_range [369] range is 10.0.0.1:0 to 10.0.0.1:0 094.077827 extract_ip_range [369] range is 10.1.0.1:0 to 10.1.0.1:0 094.280311 nm_open [898] NIOCREGIF failed: Operation not permitted igb1 094.280319 main [2479] Unable to open netmap:igb1: Operation not = permitted 094.280323 main [2560] aborting dmesg: 094.077866 [1776] netmap_interp_ringid igb1: tx [0,8) rx [0,8) id 0 094.085425 [ 551] nm_mem_assign_group iommu_group 0 094.091449 [1148] netmap_config_obj_allocator objsize 1024 clustsize = 4096 objects 4 094.100125 [1148] netmap_config_obj_allocator objsize 36864 clustsize = 36864 objects 1 094.109004 [1148] netmap_config_obj_allocator objsize 2048 clustsize = 4096 objects 2 094.117705 [1270] netmap_finalize_obj_allocator Pre-allocated 25 = clusters (4/100KB) for 'netmap_if' 094.128918 [1270] netmap_finalize_obj_allocator Pre-allocated 200 = clusters (36/7200KB) for 'netmap_ring' 094.199456 [1270] netmap_finalize_obj_allocator Pre-allocated 81920 = clusters (4/327680KB) for 'netmap_buf' 094.210482 [1377] netmap_mem_finalize_all interfaces 100 KB, rings = 7200 KB, buffers 320 MB 094.220078 [1380] netmap_mem_finalize_all Free buffers: 163838 094.260201 [1831] netmap_mem_global_deref active =3D 0 094.268364 [ 949] netmap_close dev 0xfffff8000a453000 fflag = 0x20003 devtype 8192 td 0xfffff80014d45000 Lars --Apple-Mail=_896D9E6C-1F62-4BA5-BE05-9D4BF9C48C03 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="signature.asc" Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJYpWRcAAoJEFS1wwm/cMFXUjMP/0q/MlQjFQrZ4AyqFbpwULqQ 9HTvRtcGfSal/Mo3xu0KS/thQF6uNeRYbiuyrcyS1nUK4vq8AHaEvfbQQMeONZJf 4+1QWdPRvJ4m+R8C0krU2cbCpLLhcZARCmWBPiFbvSjOsQxGJOiUN9e7PiDfSDJT jrfblJ7gLTQWt+EfgPNF9btPAGvHd81obaIsOt1X7ofLv+366cv6rlSEzD0wm6vZ 6FRrBoM2B44q33i0LHHLNSX2q61d8Rl5iu4LFahpIHkp1B/ZV28I5GILPi8a6Ntu 3F0C5DP5FiVhcT7YMZzBZ1vqQqrArNJdv0l1zWyP/7AvfA9bNiY86Ur4GxvLsp9s PnH4A3G1xh87xrKl2gnIPyKWGj8WBzj+2cGVC4F8eAUtFKjtA0UVRzDbE23I52SK ZOI3+4LQsHRTrUsKVZU2ViDFa1UTwS+WoXUH1wcIkHvY5TVw7z+a1khERpda74Kj 0mhQifVUags9TAcfIMkBhzeknmujVej0Cw08p6RJaeSiTsCkS4NX9XLYMSswmo4o YKYi3a2YgTZUuHo7CfPYJ/9xPX8h/+VHGqj8jnw6MtdcRbcDkDielZUMTlu+hvTa AKh9jAW9xftwBvfxalBlFwfa0gD7M0d/Sf3G6fgEYR8PIPVCqY4vmhVjUaoowc++ IkLcZGgEuwApftwG/QkX =pDC1 -----END PGP SIGNATURE----- --Apple-Mail=_896D9E6C-1F62-4BA5-BE05-9D4BF9C48C03--