From owner-freebsd-bugs@freebsd.org Wed Aug 8 17:57:29 2018 Return-Path: Delivered-To: freebsd-bugs@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 474061065098 for ; Wed, 8 Aug 2018 17:57:29 +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 C50BB8A4BA for ; Wed, 8 Aug 2018 17:57:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 8890E1065097; Wed, 8 Aug 2018 17:57:28 +0000 (UTC) Delivered-To: bugs@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 668011065096 for ; Wed, 8 Aug 2018 17:57:28 +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 E17B78A4B8 for ; Wed, 8 Aug 2018 17:57:27 +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 31053EAAA for ; Wed, 8 Aug 2018 17:57:27 +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 w78HvRDF089319 for ; Wed, 8 Aug 2018 17:57:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w78HvQFQ089318 for bugs@FreeBSD.org; Wed, 8 Aug 2018 17:57:26 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: bugs@FreeBSD.org Subject: [Bug 230465] ixl: not working in netmap mode Date: Wed, 08 Aug 2018 17:57:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.2-STABLE X-Bugzilla-Keywords: 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: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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-bugs@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Aug 2018 17:57:29 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230465 Bug ID: 230465 Summary: ixl: not working in netmap mode Product: Base System Version: 11.2-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: halfling@halfling.com.br Hello! I have a ixl NIC (chip=3D0x15728086 'Ethernet Controller X710 for 10GbE SFP= +) and I'm trying to work with netmap. When I was compiling kernel with ixl support I have errors with missing reference of: "'ixl_rx_miss', 'ixl_rx_miss_bufs and 'ixl_crcstrip'" so then= I modify ixl_txrx.c and added this references like this: #ifdef DEV_NETMAP=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 #include =20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20 int ixl_rx_miss =3D 0, ixl_rx_miss_bufs =3D 0, ixl_crcstrip =3D 1; #endif /* DEV_NETMAP */=20=20 When I did this my kernel was compiled with sucess and now I see ixl interf= aces in "ifconfig" command. Then now I'm trying netmap on then, but seems not working. In my applicatio= n on top of netmap I see "dmesg" like this: Aug 8 14:46:56 rt1 kernel: 415.918289 [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 2 c 2 t 1387166207 rh 1 rc 1 rt 1387166207 hc 1 = ht 1387166207 Aug 8 14:46:56 rt1 kernel: 415.973692 [1758] netmap_ring_reinit cal= led for ixl0 TX3 Aug 8 14:46:56 rt1 kernel: 415.990602 [1783] netmap_ring_reinit tot= al 1 errors Aug 8 14:46:56 rt1 kernel: 416.006198 [1787] netmap_ring_reinit ixl0 TX3 reinit, cur 2 -> 1 tail 1387166207 -> 1387166207 Aug 8 14:46:56 rt1 kernel: 416.032990 [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 2 c 2 t 1387166207 rh 1 rc 1 rt 1387166207 hc 1 = ht 1387166207 Aug 8 14:46:56 rt1 kernel: 416.088614 [1758] netmap_ring_reinit cal= led for ixl0 TX3 Aug 8 14:46:56 rt1 kernel: 416.105520 [1783] netmap_ring_reinit tot= al 1 errors Aug 8 14:46:56 rt1 kernel: 416.121113 [1787] netmap_ring_reinit ixl0 TX3 reinit, cur 2 -> 1 tail 1387166207 -> 1387166207 Aug 8 14:46:57 rt1 kernel: 417.089185 [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 2 c 2 t 1387166207 rh 1 rc 1 rt 1387166207 hc 1 = ht 1387166207 Aug 8 14:46:57 rt1 kernel: 417.144605 [1758] netmap_ring_reinit cal= led for ixl0 TX3 Aug 8 14:46:57 rt1 kernel: 417.161510 [1783] netmap_ring_reinit tot= al 1 errors Aug 8 14:46:57 rt1 kernel: 417.177110 [1787] netmap_ring_reinit ixl0 TX3 reinit, cur 2 -> 1 tail 1387166207 -> 1387166207 Aug 8 14:46:58 rt1 kernel: 418.138193 [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 2 c 2 t 1387166207 rh 1 rc 1 rt 1387166207 hc 1 = ht 1387166207 Aug 8 14:46:58 rt1 kernel: 418.193599 [1758] netmap_ring_reinit cal= led for ixl0 TX3 Aug 8 14:46:58 rt1 kernel: 418.210507 [1783] netmap_ring_reinit tot= al 1 errors Aug 8 14:46:58 rt1 kernel: 418.226096 [1787] netmap_ring_reinit ixl0 TX3 reinit, cur 2 -> 1 tail 1387166207 -> 1387166207 Using pkt-get from netmap github I'm able to receive packets but not able to transmit then like this: comand: pkt-gen -i ixl0 -f tx 637.872347 main [2593] interface is ixl0 637.872394 main [2727] running on 1 cpus (have 8) 637.872601 extract_ip_range [468] range is 10.0.0.1:1234 to 10.0.0.1:1234 637.872618 extract_ip_range [468] range is 10.1.0.1:1234 to 10.1.0.1:1234 638.046374 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) 638.046466 main [2919] Sending 512 packets every 0.000000000 s 638.046507 start_threads [2274] Wait 2 secs for phy reset 640.145075 start_threads [2276] Ready... 640.145254 sender_body [1464] start, fd 3 main_fd 3 640.863306 sender_body [1538] poll error on 3 ring 0-7 641.198102 main_thread [2364] 7.780 Kpps (8.191 Kpkts 3.932 Mbps in 1052845 usec) 511.94 avg_batch 0 min_space 641.372908 main_thread [2391] ouch, thread 0 exited with error Sent 8191 packets 491460 bytes 16 events 60 bytes each in -1533750640.15 seconds. Speed: -0.000 pps Bandwidth: -0.003 bps (raw -0.004 bps). Average batch: 51= 1.94 pkts Then "dmesg" show: Aug 8 14:51:48 rt1 kernel: 708.870527 [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 -278400513 rh 512 rc 512 rt -278400513 h= c 512 ht -278400513 Aug 8 14:51:48 rt1 kernel: 708.927494 [1758] netmap_ring_reinit cal= led for ixl0 TX1 Aug 8 14:51:49 rt1 kernel: 708.944399 [1783] netmap_ring_reinit tot= al 1 errors Aug 8 14:51:49 rt1 kernel: 708.959993 [1787] netmap_ring_reinit ixl0 TX1 reinit, cur 0 -> 512 tail -278400513 -> -278400513 Aug 8 14:51:49 rt1 kernel: 708.987295 [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 -440139265 rh 512 rc 512 rt -440139265 h= c 512 ht -440139265 Aug 8 14:51:49 rt1 kernel: 709.044489 [1758] netmap_ring_reinit cal= led for ixl0 TX2 Aug 8 14:51:49 rt1 kernel: 709.061399 [1783] netmap_ring_reinit tot= al 1 errors Aug 8 14:51:49 rt1 kernel: 709.076993 [1787] netmap_ring_reinit ixl0 TX2 reinit, cur 0 -> 512 tail -440139265 -> -440139265 Aug 8 14:51:49 rt1 kernel: 709.104291 [1637] nm_txsync_prologue ixl0 TX3: fail 'kring->nr_hwcur >=3D n || kring->rhead >=3D n || kring->rtail >= =3D n ||=20 Aug 8 14:51:49 rt1 kernel: kring->nr_hwtail >=3D n' h 0 c 0 t 1455426047 r= h 512 rc 512 rt 1455426047 hc 512 ht 1455426047 Aug 8 14:51:49 rt1 kernel: 709.161491 [1758] netmap_ring_reinit cal= led for ixl0 TX3 Aug 8 14:51:49 rt1 kernel: 709.178394 [1783] netmap_ring_reinit tot= al 1 errors Aug 8 14:51:49 rt1 kernel: 709.193987 [1787] netmap_ring_reinit ixl0 TX3 reinit, cur 0 -> 512 tail 1455426047 -> 1455426047 Aug 8 14:51:49 rt1 kernel: 709.221304 [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 1457261055 rh 512 rc 512 rt 1457261055 h= c 512 ht 1457261055 Aug 8 14:51:49 rt1 kernel: 709.278488 [1758] netmap_ring_reinit cal= led for ixl0 TX4 Aug 8 14:51:49 rt1 kernel: 709.295391 [1783] netmap_ring_reinit tot= al 1 errors Aug 8 14:51:49 rt1 kernel: 709.310998 [1787] netmap_ring_reinit ixl0 TX4 reinit, cur 0 -> 512 tail 1457261055 -> 1457261055 Aug 8 14:51:49 rt1 kernel: 709.338286 [1637] nm_txsync_prologue ixl0 TX5: fail 'kring->nr_hwcur >=3D n || kring->rhead >=3D n || kring->rtail >= =3D n || kring->nr_hwtail >=3D n' h 0 c 0 t 1744312831 rh 512 rc 512 rt 1744312831 h= c 512 ht 1744312831 Aug 8 14:51:49 rt1 kernel: 709.395485 [1758] netmap_ring_reinit cal= led for ixl0 TX5 Aug 8 14:51:49 rt1 kernel: 709.412388 [1783] netmap_ring_reinit tot= al 1 errors Aug 8 14:51:49 rt1 kernel: 709.427981 [1787] netmap_ring_reinit ixl0 TX5 reinit, cur 0 -> 512 tail 1744312831 -> 1744312831 Aug 8 14:51:49 rt1 kernel: 709.455284 [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 -1586220545 rh 512 rc 512 rt -1586220545= hc 512 ht -1586220545 Aug 8 14:51:49 rt1 kernel: 709.513263 [1758] netmap_ring_reinit cal= led for ixl0 TX6 Aug 8 14:51:49 rt1 kernel: 709.530166 [1783] netmap_ring_reinit tot= al 1 errors Aug 8 14:51:49 rt1 kernel: 709.545759 [1787] netmap_ring_reinit ixl0 TX6 reinit, cur 0 -> 512 tail -1586220545 -> -1586220545 Aug 8 14:51:49 rt1 kernel: 709.573581 [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 -1429192193 rh 512 rc 512 rt -1429192193= hc 512 ht -1429192193 Aug 8 14:51:49 rt1 kernel: 709.631560 [1758] netmap_ring_reinit cal= led for ixl0 TX7 Aug 8 14:51:49 rt1 kernel: 709.648463 [1783] netmap_ring_reinit tot= al 1 errors Aug 8 14:51:49 rt1 kernel: 709.664056 [1787] netmap_ring_reinit ixl0 TX7 reinit, cur 0 -> 512 tail -1429192193 -> -1429192193 Am I missing something? Thanks! --=20 You are receiving this mail because: You are the assignee for the bug.=