From owner-freebsd-net@freebsd.org Tue Aug 14 18:07:49 2018 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 30CA610803F6 for ; Tue, 14 Aug 2018 18:07:49 +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 BF10D7FA19 for ; Tue, 14 Aug 2018 18:07:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 812F510803F4; Tue, 14 Aug 2018 18:07:48 +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 5F4C210803F2 for ; Tue, 14 Aug 2018 18:07:48 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 000837FA15 for ; Tue, 14 Aug 2018 18:07:47 +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 58D8B1AB2C for ; Tue, 14 Aug 2018 18:07:47 +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 w7EI7lqs047731 for ; Tue, 14 Aug 2018 18:07:47 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w7EI7lqB047719 for net@FreeBSD.org; Tue, 14 Aug 2018 18:07:47 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, 14 Aug 2018 18:07:47 +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: New 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.27 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, 14 Aug 2018 18:07:49 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230465 --- Comment #2 from Charles Goncalves --- If I run pkt-gen with rate option then pkt-gen sends packets. Like this: pkg-gen -f tx -R 150000 If I change value greater than 150k i.e: 160000 I got same error: /pkt-gen -i ixl0 -f tx -R 160000=20 812.653021 main [2593] interface is ixl0 812.653078 main [2727] running on 1 cpus (have 8) 812.653279 extract_ip_range [468] range is 10.0.0.1:1234 to 10.0.0.1:1234 812.653296 extract_ip_range [468] range is 10.1.0.1:1234 to 10.1.0.1:1234 812.826944 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) 812.827043 main [2919] Sending 512 packets every 0.003200000 s 812.827085 start_threads [2274] Wait 2 secs for phy reset 814.836422 start_threads [2276] Ready... 814.836644 sender_body [1464] start, fd 3 main_fd 3 815.838007 main_thread [2364] 0.000 pps (0.000 pkts 0.000 bps in 1001364 us= ec) 0.00 avg_batch 0 min_space 816.134343 sender_body [1538] poll error on 3 ring 0-7 816.886366 main_thread [2364] 1.954 Kpps (2.048 Kpkts 983.040 Kbps in 10483= 59 usec) 341.33 avg_batch 99999 min_space 817.061069 main_thread [2391] ouch, thread 0 exited with error Sent 2048 packets 122880 bytes 6 events 60 bytes each in -1534269816.00 seconds. Speed: -0.000 pps Bandwidth: -0.001 bps (raw -0.001 bps). Average batch: 34= 1.33 pkts And kernel log: Aug 14 15:03:36 rt1 kernel: 816.016016 [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 275 c 275 t -278400513 rh 274 rc 274 rt -2784005= 13 hc 274 ht -278400513 Aug 14 15:03:36 rt1 kernel: 816.074020 [1758] netmap_ring_reinit cal= led for ixl0 TX1 Aug 14 15:03:36 rt1 kernel: 816.090925 [1783] netmap_ring_reinit tot= al 1 errors Aug 14 15:03:36 rt1 kernel: 816.106519 [1787] netmap_ring_reinit ixl0 TX1 reinit, cur 275 -> 274 tail -278400513 -> -278400513 These errors seem to be related to synchronization of HEAD/CUR/TAIL in netm= ap ring --=20 You are receiving this mail because: You are on the CC list for the bug.=