From owner-freebsd-net@freebsd.org Thu May 25 20:57:12 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 8C6A2D824D7 for ; Thu, 25 May 2017 20:57:12 +0000 (UTC) (envelope-from v.maffione@gmail.com) Received: from mail-oi0-x232.google.com (mail-oi0-x232.google.com [IPv6:2607:f8b0:4003:c06::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BD0F1CC1 for ; Thu, 25 May 2017 20:57:12 +0000 (UTC) (envelope-from v.maffione@gmail.com) Received: by mail-oi0-x232.google.com with SMTP id b204so295406336oii.1 for ; Thu, 25 May 2017 13:57:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=y/6MH5ggdekZ+um/3vA9KQAoAAYrDk+U+Y3saV85EjM=; b=MX2HMKlWX2VKiYGSO1W7d9jcwwpFxHaouSU3e9c5ACxS45Gh1Hrfm0pjWVoD1LWwCu sUaGLmoDr0ycwpDbcIk9fpevLCmdmAWTbjv+OBlrI3Vaok+u0Er7FDTmvir+IBO1XAko zm8sZWL9MlddcAbqQ/JVy2y4SP5MZ+hctwpdAieR9wT9wIQcrDXfjAceaFjg/xj8Px3o zU7J4d9FvQzC00/tYPD/WWK6AlCTTrVMhZ8/eG0I7ISmYFHMXuuxlaaeUba5YleVsgYg 1bHp6lOAmdzirCTbRvmfl3I0Z5pAsbsIv4yhr919a3Wndu7mj0c/Cv7raLmDG3BJgcnf RaXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=y/6MH5ggdekZ+um/3vA9KQAoAAYrDk+U+Y3saV85EjM=; b=SBHAvPDE709vGsRoVwviqs3Eq3z2Rc3WxW31t5AzqGTudTshwxCFbHbxkE1+IDoEeA SbWtYDz0R8HRKfZqAEAiqOBZWacuKzFw4qQwNbL0bDN2SUo37Q2jDGzUGMQnwHooyuzO 8GBKwFlrqgaCNTwxnAdKIlJXglnsPwhngqIj5XZOqnbr95Q0kbiMEdkb/bocXbiJ2STP lPefB63x/SrAPA/5j/1FY58TFo5eQIUL9pitq9z1qvkLsme0uE2ISD4DvgKlgHKi4d7R VAOoVV8keXcQXCCQlD1CWRQe7xQwrXBvsHa40lW3g5cf97QiBZtwDSQaxAD46vRWZN5G i9jg== X-Gm-Message-State: AODbwcC8YEkepJJwY0RkarMsu0IPfLXnYDP/Eeflql79scxxyJ5lQQHx 9fJXIgxTLyLdt9QVkteobor5lGmSdA== X-Received: by 10.157.23.133 with SMTP id j5mr7644846otj.37.1495745831524; Thu, 25 May 2017 13:57:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.17.59 with HTTP; Thu, 25 May 2017 13:57:10 -0700 (PDT) Received: by 10.157.17.59 with HTTP; Thu, 25 May 2017 13:57:10 -0700 (PDT) In-Reply-To: <592742A8.4010207@omnilan.de> References: <58CBCD7A.8060301@omnilan.de> <58CC23F5.7060507@omnilan.de> <58CFA394.8070901@omnilan.de> <5926EE96.1010000@omnilan.de> <5926F9F9.4040706@omnilan.de> <592701D6.7030301@omnilan.de> <592742A8.4010207@omnilan.de> From: Vincenzo Maffione Date: Thu, 25 May 2017 22:57:10 +0200 Message-ID: Subject: Re: [panic] netmap(4) and if_lagg(4) To: Harry Schmalzbauer Cc: FreeBSD Net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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, 25 May 2017 20:57:12 -0000 No, the thing is that I misinterpreted your stack trace. The patch is ok for a different bug. It seems that the problem are vlans more than lagg. Which interface did you put in netmap mode, em or em.345? Il 25 mag 2017 10:46 PM, "Harry Schmalzbauer" ha scritto: Bez=C3=BCglich Harry Schmalzbauer's Nachricht vom 25.05.2017 18:09 (localt= ime): > Bez=C3=BCglich Vincenzo Maffione's Nachricht vom 25.05.2017 17:56 (localt= ime): >> I see the bug is in FreeBSD 11. I attached the simple patch to fix it. >> Can someone commit the patch to 11/stable? >> >> Harry: You should be able to workaround the bug by setting >> >> # sysctl dev.netmap.generic_rings=3D1 > I'll recompile with your patch, thanks a lot! Hi, unfortunately I can't confirm it to be fixed. The kgdb output is exactly the same: (kgdb) list *0xffffffff80426714 0xffffffff80426714 is in generic_rx_handler (/usr/local/share/deploy-tools/RELENG_11/src/sys/dev/netmap/ netmap_generic.c:628). 623 struct netmap_adapter *na =3D NA(ifp); 624 struct netmap_generic_adapter *gna =3D (struct netmap_generic_adapter *)na; 625 u_int work_done; 626 u_int rr =3D MBUF_RXQ(m); // receive ring number 627 628 if (rr >=3D na->num_rx_rings) { 629 rr =3D rr % na->num_rx_rings; // XXX expensive... 630 } 631 632 /* limit the size of the queue */ Current language: auto; currently minimal Will double-check tomorrow that the binary really includes your patch. Ofcourse I checked briefly and revision and buildtime check affirms it. best, -harry