From owner-freebsd-net@freebsd.org Thu Jun 29 04:39:11 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 7A7A6D92138 for ; Thu, 29 Jun 2017 04:39:11 +0000 (UTC) (envelope-from v.maffione@gmail.com) Received: from mail-wr0-x22e.google.com (mail-wr0-x22e.google.com [IPv6:2a00:1450:400c:c0c::22e]) (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 0DD89752F0 for ; Thu, 29 Jun 2017 04:39:11 +0000 (UTC) (envelope-from v.maffione@gmail.com) Received: by mail-wr0-x22e.google.com with SMTP id r103so183433950wrb.0 for ; Wed, 28 Jun 2017 21:39:10 -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=5/WXo45hn4YKgTW1oEBAuUo6pIbenmTdiOMgjCHQrDQ=; b=Yt0hP3NPXEyvBaOtzw64Xhm/GVZYaenxhqEx2dceEVAW4tGMoZ5uKLPxIClehtXHfb tMzRREAJOfGPfF5vW5d/KN0ZeIwAVZahPLvrWf6e730lN+VKLlsdK+oDiQRbQG9dzNjd b+ePhBQ+/hfkW3u36jb9wKJ81qvSZ+o8WsZTmndRJeVDUbu+6SkhbC6WTLx/xpY7AoTI A3W38o8/LukVw+onumKxRUDkdzLPKf7wLtvD5sci8VgYInbL4SQ0cp3ycTsIByFjqQKs wFS9ujCk/gP0v0y3I6fVazZ+xK8BzwMb2wo35i+kYH4Jz5LdoVxhUDyQyqV+xfo784a6 rf7A== 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=5/WXo45hn4YKgTW1oEBAuUo6pIbenmTdiOMgjCHQrDQ=; b=ZOfkGbP8njVATYG9sQfiQyPIEJBu2PI9YhBFRYTYGbMaVL2hDyRzXOt+LFaeI5Rm7X oWO0E3xGS15+hQORb56j9wqMQkkJ+/BLl0BfcBC4SSSRVHqaAvpD2/Ijk+xFeH9UPMV1 y/rY+IG7ABZFW34V+3s/uNvKu6+4lPPmu/UASqmSjfvz6uNQJqfpGZe1PFUslsGjlUV/ aIdaX48pjatqtn3ZzCCPbFq1GBrVXsQW5mVl/nkgPzdlDiggxrqEu/m5rwwg0uOU2mp7 DqHhIwifuhVeAoMvskK5OSQ83E3qQzR7cp5n+aFaLOydUyOLGkE93gc/S0LjX9OyTjBy 4FKw== X-Gm-Message-State: AKS2vOzo4o/MELFWn5bX/iXIz+Y9zINz4rw57ksxXZSLauhQOIfwVLhH Tc5CCp7SWynf3w5L0HIqfBfXnkB8WA== X-Received: by 10.223.161.219 with SMTP id v27mr21908432wrv.135.1498711149290; Wed, 28 Jun 2017 21:39:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.139.73 with HTTP; Wed, 28 Jun 2017 21:39:08 -0700 (PDT) In-Reply-To: References: From: Vincenzo Maffione Date: Thu, 29 Jun 2017 06:39:08 +0200 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 04:39:11 -0000 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