From owner-freebsd-net@freebsd.org Fri May 26 07:31:21 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 D1DD6D82AA6 for ; Fri, 26 May 2017 07:31:21 +0000 (UTC) (envelope-from v.maffione@gmail.com) Received: from mail-oi0-x243.google.com (mail-oi0-x243.google.com [IPv6:2607:f8b0:4003:c06::243]) (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 905FB1E89 for ; Fri, 26 May 2017 07:31:21 +0000 (UTC) (envelope-from v.maffione@gmail.com) Received: by mail-oi0-x243.google.com with SMTP id h4so524123oib.0 for ; Fri, 26 May 2017 00:31:21 -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=V+oubFIeTC6aJbDVif11oOvIramYWCZdUfOhhCAdpHQ=; b=IekkORuQyB6dls+ia2fWm5iz8qgGNJX0xSli4xj2f2NnUruQGcYINU4RZLolr/2sPi LdlsiVraglotBcXblTrhNTESq48Mc95e3M8ZrC6jAI4VKSIdlPwGtmKLRAy33XkQ35gJ JvAROV2WhuOwg/ece2He1Qyr74xa3c3a5z31eZWLN7T0a7V0O+IVVvUB/Cm7HxjELYWa nqXQFv3mARlug/QXJNET3vSDVJlM0AS2vYZvWVrUVajYH0yyiUWkVzrremgMXEclY0W2 crugsNdbzs9qsLX8Qn7z6KEAj0ENtSGXHMBAcRBDWnAx7J/tI2MQDXmKr0W0NvVjpFJx Ftng== 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=V+oubFIeTC6aJbDVif11oOvIramYWCZdUfOhhCAdpHQ=; b=BDaIX68JMnblZt6j+vTYYNtKX9UeINAXTIUwG08fhHVN9edWwvdEz+enp1aJB49Y9B pCKMJETRhTpHJY8GMeGnGs4qE7IilyR+xLf3Y2CL5VswwI8HDdDzPRqZ1mdE9d7DjYyV VgTqBcC95pClivwLvt6ZorPdMI4aLwygNiHvE6YsTzOEgBd+/NGXGarPLGeFVqTxts90 zLIGoCwF0x9lu46MAqoWGm4LT0fJwo0aKgUax/KFUc3kOE/GelxI2rB93hzgymVBhXqL JzBj1Q2Nz4A5NevP9d6KOX7olIexZVhV234BH7fmpvQjBLs/usysac43sMZymgpBDqCZ Hziw== X-Gm-Message-State: AODbwcDSIW4DFH9qTserm5CIO/dnwRL7jSDrv57/aksFFb3HeCe08J/O Rf+f4vr4uLfFUDagTAGvSG5Qj3OYCg== X-Received: by 10.157.23.133 with SMTP id j5mr241776otj.37.1495783880889; Fri, 26 May 2017 00:31:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.17.59 with HTTP; Fri, 26 May 2017 00:31:20 -0700 (PDT) In-Reply-To: <5927D77A.60502@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> <5927D560.10003@omnilan.de> <5927D77A.60502@omnilan.de> From: Vincenzo Maffione Date: Fri, 26 May 2017 09:31:20 +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: Fri, 26 May 2017 07:31:21 -0000 Is lagg0 the only interface attached to vale0? Is lagg0 aggregating a VLAN interface? You can try this trivial patch diff --git a/sys/dev/netmap/netmap_generic.c b/sys/dev/netmap/netmap_generic.c index f148b228..46a3c2c6 100644 --- a/sys/dev/netmap/netmap_generic.c +++ b/sys/dev/netmap/netmap_generic.c @@ -950,6 +950,10 @@ generic_rx_handler(struct ifnet *ifp, struct mbuf *m) u_int work_done; u_int r =3D MBUF_RXQ(m); /* receive ring number */ + if (!NM_NA_VALID(ifp)) { + return 0; + } + if (r >=3D na->num_rx_rings) { r =3D r % na->num_rx_rings; } 2017-05-26 9:21 GMT+02:00 Harry Schmalzbauer : > Bez=C3=BCglich Vincenzo Maffione's Nachricht vom 26.05.2017 09:14 (localt= ime): > > Hi, > > Your stack trace report this: > > > > #7 0xffffffff8069dc50 at vlan_input+0x1f0 > > > > which means VLANs are involved, in some way. Is that the correct trace? > > The trace is from the pnaic after doing 'vale-ctl -a vale0:lagg0' (while > lagg0 can have various names, but I'm not using a vlan clone). > > Might be that existing, but to my understanding uninvolved vlan clones > interfere here... > The lagg0 does have vlan clones (lots of) defined. > Unfortunately I can't take them out of the game for testing... > > Does that picture match the trace? > > thanks, > > -harry > > > --=20 Vincenzo Maffione