From owner-freebsd-net@freebsd.org Thu Jun 29 05:59:30 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 0CD09D939D9 for ; Thu, 29 Jun 2017 05:59:30 +0000 (UTC) (envelope-from dreadiscool@gmail.com) Received: from mail-wr0-x22d.google.com (mail-wr0-x22d.google.com [IPv6:2a00:1450:400c:c0c::22d]) (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 83E787705D for ; Thu, 29 Jun 2017 05:59:29 +0000 (UTC) (envelope-from dreadiscool@gmail.com) Received: by mail-wr0-x22d.google.com with SMTP id r103so184005608wrb.0 for ; Wed, 28 Jun 2017 22:59:29 -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=488xKzA9z0tFTPuTKN2sBj+T31V5CBlwMDgZn1v+UuE=; b=mErSbm25RpegmDa/+dEdpqQ9Pzm77vvOASIaEtnwd2Q1c1pSnQlyk0yh3ft/WwvxQ9 D34a438iNJlXbKAfh1Lp96kzs3LoRbUaO+X25w1Za6vgFtWvhqVCKtAXCZCOG6/6E07/ doimrOffYQo5vBWJmFWfpdk66dTKIN2DCocj3l7FIy/AksHUbsWg8Bdkf03Jf0P79B5t GbyDuCde3KkRTVYvwD+no3RjQqfdRD6BlesuNCu4Vzv6SzxR98AC6eUTETfN6mHwmBFI 0qtJ0stX+QX6GIWDyX30SwN6P/DiEqHsE7xK8vIIDIaCqFfwTY+V9JQJdKaiYgVKAWMs 5MbA== 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=488xKzA9z0tFTPuTKN2sBj+T31V5CBlwMDgZn1v+UuE=; b=Yrwro0XTEwQ9UX5CJ6BFjnBQdJnFKif6g/XMoIoKQlB2Oz84d8NSQZM2lGOX/m3Ywj Rd3nO3i/yBIH01KQlRYJtN1jiE08Tmv556qCbYN7yyBfbFbx0JAbz9vObXX1JSjSdLo1 0EgmeUJFHrFkSoEJr8KQNez1OUNw7bK+vGHz4JSCXs9KdD7/rk4IPehUAFA3FsKrJKCQ 26MJfGFMtLW0Ljk1smQOivogPXfjTrEWvcqzzi1BLMyagDllUGqJo1Tp5AUnXUXLuF3x goeZ1FW2jW83FIzm4CD5gETlhxoQzvKWUXhuk9tzMPcUJ6hVHtOsj0NDbamwBvpFt28V 2m1A== X-Gm-Message-State: AKS2vOwWziqnYwIT4PoLv9nENq5qhW0GYyje4C/sJPHSHjwBnwPmkA+H xjngBjvwZ+MoutOvx68wLkrrH2/WOQ== X-Received: by 10.223.171.69 with SMTP id r5mr23008944wrc.57.1498715966758; Wed, 28 Jun 2017 22:59:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.150.86 with HTTP; Wed, 28 Jun 2017 22:59:26 -0700 (PDT) In-Reply-To: References: From: Paras Jha Date: Thu, 29 Jun 2017 01:59:26 -0400 Message-ID: Subject: Re: Netmap with bonded interfaces To: Vincenzo Maffione Cc: FreeBSD Net Content-Type: text/plain; charset="UTF-8" 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, 29 Jun 2017 05:59:30 -0000 It's possible to bypass this by unloading and reloading the patched network driver On Thu, Jun 29, 2017 at 12:39 AM, Vincenzo Maffione wrote: > Hi, > It is an expected behaviour that you cannot open eth4 and eth5 if they > are bond, as the device are being used by the lagg pseudo-driver. > Since this driver does not have netmap support for the moment being, there > is no way you can get the native mode performance if you use lagg. > > If you just need some failover in your application, you could just > implement a simple failover mechanism in your application (e.g. the > application opens both netmap:eth4 and netmap:eth5, and decides which one > to use for transmission depending on which one is up...). > > Cheers, > Vincenzo > > 2017-06-29 4:16 GMT+02:00 Paras Jha : > >> Hi all, >> >> I have a bonded interface bond0 which enslaves eth4 and eth5. When trying >> to open the devices eth4 or eth5 via netmap, I get a "device in use" >> error. >> Opening the bond0 interface directly in netmap works, however it is in >> emulated mode (as expected of a pseudointerface) >> >> What is the idiomatic way to proceed in such a situation, without >> compromising on speed? >> >> Thanks >> _______________________________________________ >> freebsd-net@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-net >> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >> > > > > -- > Vincenzo Maffione >