From owner-freebsd-net@freebsd.org Tue Jan 29 17:23:44 2019 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6640B14C4CB7 for ; Tue, 29 Jan 2019 17:23:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 01B5290BC9 for ; Tue, 29 Jan 2019 17:23:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id B961314C4CB4; Tue, 29 Jan 2019 17:23:43 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 96E1414C4CB3 for ; Tue, 29 Jan 2019 17:23:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 333A190BC2 for ; Tue, 29 Jan 2019 17:23:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 5E0CD14BF4 for ; Tue, 29 Jan 2019 17:23:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x0THNgCe005108 for ; Tue, 29 Jan 2019 17:23:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x0THNgA7005107 for net@FreeBSD.org; Tue, 29 Jan 2019 17:23:42 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 230465] ixl: not working in netmap mode Date: Tue, 29 Jan 2019 17:23:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.2-STABLE X-Bugzilla-Keywords: IntelNetworking X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: halfling@halfling.com.br X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jan 2019 17:23:44 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230465 --- Comment #25 from Charles Goncalves --- (In reply to Vincenzo Maffione from comment #23) Without hw.ixl.max_queues in /boot/loader.conf then # sysctl hw.ixl.max_queues hw.ixl.max_queues: 0 # dmesg | grep "netmap queues" ixl0: netmap queues/slots: TX 8/1024, RX 8/1024 ixl1: netmap queues/slots: TX 8/1024, RX 8/1024 ixl2: netmap queues/slots: TX 8/1024, RX 8/1024 ixl3: netmap queues/slots: TX 8/1024, RX 8/1024 # pkt-gen -i ixl0 -f tx 415.475609 main [2593] interface is ixl0 415.475652 main [2727] running on 1 cpus (have 8) 415.475874 extract_ip_range [468] range is 10.0.0.1:1234 to 10.0.0.1:1234 415.475891 extract_ip_range [468] range is 10.1.0.1:1234 to 10.1.0.1:1234 415.644068 main [2822] mapped 294020KB at 0x801600000 Sending on netmap:ixl0: 8 queues, 1 threads and 1 cpus. 10.0.0.1 -> 10.1.0.1 (00:00:00:00:00:00 -> ff:ff:ff:ff:ff:ff) 415.644158 main [2919] Sending 512 packets every 0.000000000 s 415.644202 start_threads [2274] Wait 2 secs for phy reset 417.645062 start_threads [2276] Ready... 417.645243 sender_body [1464] start, fd 3 main_fd 3 418.485366 sender_body [1538] poll error on 3 ring 0-7 418.708562 main_thread [2364] 7.702 Kpps (8.190 Kpkts 3.931 Mbps in 1063315 usec) 511.88 avg_batch 0 min_space 418.878363 main_thread [2391] ouch, thread 0 exited with error Sent 8190 packets 491400 bytes 16 events 60 bytes each in -1548782417.65 seconds. Speed: -0.000 pps Bandwidth: -0.003 bps (raw -0.004 bps). Average batch: 51= 1.88 pkts # tail -F /var/log/messages Jan 29 15:20:17 rt1 kernel: 417.657494 [1637] nm_txsync_prologue ixl0 TX1: fail 'kring->nr_hwcur >=3D n || kring->rhead >=3D n || kring->rtail >= =3D n || kring->nr_hwtail >=3D n' h 0 c 0 t -1843510785 rh 512 rc 512 rt -1843510785= hc 512 ht -1843510785 Jan 29 15:20:17 rt1 kernel: 417.715239 [1758] netmap_ring_reinit cal= led for ixl0 TX1 Jan 29 15:20:17 rt1 kernel: 417.732143 [1783] netmap_ring_reinit tot= al 1 errors Jan 29 15:20:17 rt1 kernel: 417.747738 [1787] netmap_ring_reinit ixl0 TX1 reinit, cur 0 -> 512 tail -1843510785 -> -1843510785 Jan 29 15:20:17 rt1 kernel: 417.775556 [1637] nm_txsync_prologue ixl0 TX2: fail 'kring->nr_hwcur >=3D n || kring->rhead >=3D n || kring->rtail >= =3D n || kring->nr_hwtail >=3D n' h 0 c 0 t -1841671681 rh 512 rc 512 rt -1841671681= hc 512 ht -1841671681 Jan 29 15:20:17 rt1 kernel: 417.833536 [1758] netmap_ring_reinit cal= led for ixl0 TX2 Jan 29 15:20:17 rt1 kernel: 417.850440 [1783] netmap_ring_reinit tot= al 1 errors Jan 29 15:20:17 rt1 kernel: 417.866031 [1787] netmap_ring_reinit ixl0 TX2 reinit, cur 0 -> 512 tail -1841671681 -> -1841671681 Jan 29 15:20:17 rt1 kernel: 417.893854 [1637] nm_txsync_prologue ixl0 TX3: fail 'kring->nr_hwcur >=3D n || kring->rhead >=3D n || kring->rtail >= =3D n || kring->nr_hwtail >=3D n' h 0 c 0 t -1839832577 rh 512 rc 512 rt -1839832577= hc 512 ht -1839832577 Jan 29 15:20:18 rt1 kernel: 417.951828 [1758] netmap_ring_reinit cal= led for ixl0 TX3 Jan 29 15:20:18 rt1 kernel: 417.968738 [1783] netmap_ring_reinit tot= al 1 errors Jan 29 15:20:18 rt1 kernel: 417.984330 [1787] netmap_ring_reinit ixl0 TX3 reinit, cur 0 -> 512 tail -1839832577 -> -1839832577 Jan 29 15:20:18 rt1 kernel: 418.012148 [1637] nm_txsync_prologue ixl0 TX4: fail 'kring->nr_hwcur >=3D n || kring->rhead >=3D n || kring->rtail >= =3D n || kring->nr_hwtail >=3D n' h 0 c 0 t -1837993473 rh 512 rc 512 rt -1837993473= hc 512 ht -1837993473 Jan 29 15:20:18 rt1 kernel: 418.070125 [1758] netmap_ring_reinit cal= led for ixl0 TX4 Jan 29 15:20:18 rt1 kernel: 418.087037 [1783] netmap_ring_reinit tot= al 1 errors Jan 29 15:20:18 rt1 kernel: 418.102626 [1787] netmap_ring_reinit ixl0 TX4 reinit, cur 0 -> 512 tail -1837993473 -> -1837993473 Jan 29 15:20:18 rt1 kernel: 418.130451 [1637] nm_txsync_prologue ixl0 TX5: fail 'kring->nr_hwcur >=3D n || kring->rhead >=3D n || kring->rtail >= =3D n ||=20 Jan 29 15:20:18 rt1 kernel: kring->nr_hwtail >=3D n' h 0 c 0 t -1836154369 = rh 512 rc 512 rt -1836154369 hc 512 ht -1836154369 Jan 29 15:20:18 rt1 kernel: 418.188425 [1758] netmap_ring_reinit cal= led for ixl0 TX5 Jan 29 15:20:18 rt1 kernel: 418.205330 [1783] netmap_ring_reinit tot= al 1 errors Jan 29 15:20:18 rt1 kernel: 418.220926 [1787] netmap_ring_reinit ixl0 TX5 reinit, cur 0 -> 512 tail -1836154369 -> -1836154369 Jan 29 15:20:18 rt1 kernel: 418.248752 [1637] nm_txsync_prologue ixl0 TX6: fail 'kring->nr_hwcur >=3D n || kring->rhead >=3D n || kring->rtail >= =3D n || kring->nr_hwtail >=3D n' h 0 c 0 t -1834315265 rh 512 rc 512 rt -1834315265= hc 512 ht -1834315265 Jan 29 15:20:18 rt1 kernel: 418.306721 [1758] netmap_ring_reinit cal= led for ixl0 TX6 Jan 29 15:20:18 rt1 kernel: 418.323624 [1783] netmap_ring_reinit tot= al 1 errors Jan 29 15:20:18 rt1 kernel: 418.339222 [1787] netmap_ring_reinit ixl0 TX6 reinit, cur 0 -> 512 tail -1834315265 -> -1834315265 Jan 29 15:20:18 rt1 kernel: 418.367043 [1637] nm_txsync_prologue ixl0 TX7: fail 'kring->nr_hwcur >=3D n || kring->rhead >=3D n || kring->rtail >= =3D n || kring->nr_hwtail >=3D n' h 0 c 0 t -1832476161 rh 512 rc 512 rt -1832476161= hc 512 ht -1832476161 Jan 29 15:20:18 rt1 kernel: 418.425019 [1758] netmap_ring_reinit cal= led for ixl0 TX7 Jan 29 15:20:18 rt1 kernel: 418.441929 [1783] netmap_ring_reinit tot= al 1 errors Jan 29 15:20:18 rt1 kernel: 418.457518 [1787] netmap_ring_reinit ixl0 TX7 reinit, cur 0 -> 512 tail -1832476161 -> -1832476161 --=20 You are receiving this mail because: You are on the CC list for the bug.=