From owner-freebsd-net@freebsd.org Thu Jun 29 15:44: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 1D474D9FE85 for ; Thu, 29 Jun 2017 15:44:30 +0000 (UTC) (envelope-from v.maffione@gmail.com) Received: from mail-wr0-x230.google.com (mail-wr0-x230.google.com [IPv6:2a00:1450:400c:c0c::230]) (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 BC0E064550 for ; Thu, 29 Jun 2017 15:44:29 +0000 (UTC) (envelope-from v.maffione@gmail.com) Received: by mail-wr0-x230.google.com with SMTP id k67so191041743wrc.2 for ; Thu, 29 Jun 2017 08:44: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=1iPhzckTMplWzCRUzNmPwpVlS0o7u2Sj1e0RENU9e4E=; b=HceIvM/fvO1JpOSqefi+BynNLt2MYOOxdZ1ZC9iFB5yfLZqNYM06uRXHwNQIhtR+nu x1FkQzElJHXuWu5/HGyqGnOJRxbL5gFo5NZDK8b/HgJ8+YCJZ1fsUORRp64oeQo3J2C3 5H7yVTMhmjCxiQBOVkNFWnpreLtWalDp+b+cPjCr8LJ+QH9vq2cQamZIVvJfe3HRyQEy vBNC1SbgZZSbk8VYgj7ZlOhqD43rqc2w2WUwIxJbvwgY2YoFTGBtUa5qGOzUQDsz1Usa CtXmbbN42nPV5Tj7++i2S/FKzYNXxMfc+O8Lfw4SbHVMs2lkyxsJB8/xjcJQirz+2er6 IR1A== 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=1iPhzckTMplWzCRUzNmPwpVlS0o7u2Sj1e0RENU9e4E=; b=Quw4+8YoPTJhwaSB8pMyNG7limzZyg6Sdcv2jGedeFAw8vYRpv4n1Q038omKmXzzIF uWXiT/t3Z17UibhL0gMZDnzo2cJNrrrXY1MTCVkqor9ML+CO+o47/sYpuBe+15AT4d3l rjeGLLu5TO4ZqWOKUMMLi+DB93wpedJIPtmL1opBOfDhU3UUiITcSoIRtNvlk8PW1NX4 VG0F2iawK2cmpqIQEMPODa3ar5aOZL2Dt++rnI3SNZRAo0athVOdcV5MSPJrYkHYkRt8 0AiqtOlAlRYvInpVgEND75y6RixiuX+84ru9MZvB21SnGnYf0A8MKA5Fi6kSjU5tQ/Fy snSg== X-Gm-Message-State: AKS2vOwx+4begxZR0W/Z6nPQvNJHpMCRmvNp9z3EOG44q3X1+8HtO95z zZ/ZzybEtjkPsiLIB09nydyg2/dz7g== X-Received: by 10.223.171.69 with SMTP id r5mr24666405wrc.57.1498751067917; Thu, 29 Jun 2017 08:44:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.49.132 with HTTP; Thu, 29 Jun 2017 08:44:27 -0700 (PDT) In-Reply-To: References: From: Vincenzo Maffione Date: Thu, 29 Jun 2017 08:44:27 -0700 Message-ID: Subject: Re: Netmap with bonded interfaces To: Paras Jha 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 15:44:30 -0000 Bypass what? 2017-06-28 22:59 GMT-07:00 Paras Jha : > 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 >> > > -- Vincenzo Maffione