From owner-freebsd-net@freebsd.org Thu May 25 16:21:16 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 1AD6FD81AD9 for ; Thu, 25 May 2017 16:21:16 +0000 (UTC) (envelope-from v.maffione@gmail.com) Received: from mail-oi0-x231.google.com (mail-oi0-x231.google.com [IPv6:2607:f8b0:4003:c06::231]) (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 D028E15C7 for ; Thu, 25 May 2017 16:21:15 +0000 (UTC) (envelope-from v.maffione@gmail.com) Received: by mail-oi0-x231.google.com with SMTP id h4so286093086oib.3 for ; Thu, 25 May 2017 09:21:15 -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=MCz24ddvCTw/nUwPaLV9gCtKbHKOQ768xs6yd/2CNqI=; b=EcjENoDEKBwtVEoEFHk3dkq7Ut34r1jrcygaxcUBNUODuj1pN6F+b0YuznPm83c5qX nee/Dzl0aeapY1d78aHqXp/9KUgbPU/Ix6ivjlqvWvmy5WKoGzIN772y7Z3ZjKLbISv4 k2GCuKDSZ+LUnT9j9wh3teNMIUG4jATtUH1zNNqdjpVGaY5+6aixi8YXK43HJjduWgr+ 9I1iIs08GEAgPFW+59lw28MMJqIY2xU682FbogqT2lT76ejGgqs23OeKnwobtPv+NBRW PY8IUw32YblhT13x4HGzXkdSA/G+2Uu4YiDOYAcqwgqgzKUUyH9QKfMtV/DlJyY72Buw 8W0Q== 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=MCz24ddvCTw/nUwPaLV9gCtKbHKOQ768xs6yd/2CNqI=; b=kvLCnB7ldTcLZWQVyZz/TURM/HdBGO+02AhBEC4VD7t3yOxc532lNileyTg5wkE5wU s9TmXaIpTbM/+bBYKijaum5EU1LcgqMeGSWsIDhK9C5//YV6m/JHLYWCldfTleBGBMBW GQdbdBqY6ngHVjuYUMVVisKKp+EfUdiUdeVkUAfq+KTDwB65gg4oLdPyT+53rntfyS36 FNlUmxn1LvHDqmO3IpHCX041R8lyXj2quLHLeYNVDSRHfvAeJZbfqCFFC+FFabdtPhxA 2WbcV8nkdWb3Tyq9itlMfLCnRTqLIfVs0KJoIx83S+LMmJtM+xXWmgSLyBd4bnUKK8SU xWrA== X-Gm-Message-State: AODbwcCX6ZBCrWz6Nmh15rVaLKV7mxAD+PP6+2YiaL3XIBCqJcmEg/Ei urr/T7WMcI8li2W1ua9YVhm2+eeB8QTg X-Received: by 10.157.56.88 with SMTP id r24mr8334710otd.57.1495729274928; Thu, 25 May 2017 09:21:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.17.59 with HTTP; Thu, 25 May 2017 09:21:14 -0700 (PDT) In-Reply-To: <592701D6.7030301@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> From: Vincenzo Maffione Date: Thu, 25 May 2017 18:21:14 +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 16:21:16 -0000 2017-05-25 18:09 GMT+02:00 Harry Schmalzbauer : > 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! > > > And yes, if_lagg(4) doesn't have native netmap support, like all the > > meta-drivers (e.g. vlan, tunnels, etc.). > > Point is that you should implement link aggregation in your application > (in > > user-space). > > Thanks for confirmation. > My problem is that I can't pass frames to guests without vlan filtering > first :-( > Then you need an ad-hoc userspace netmap application that does this job, reading the tagged frames from the NIC, strip the tag and dispatch to the proper VM. > > Focus is not on inter-VM-connection, but most efficient port usage _and_ > vm-interconnection. The more I learn the less I know what to do ;-) > If I only had VF-capable hardware (actually VF-"supported" hardware, > 82576 was SR-IOV enabled, but at the advent of 10GbE, SR-IOV support for > older chips was removed - where initially implemented - and of course > not implemented anywhere else). > > -harry > > --=20 Vincenzo Maffione