Netmap with bonded interfaces

Vincenzo Maffione v.maffione at gmail.com
Thu Jun 29 15:44:30 UTC 2017


Bypass what?

2017-06-28 22:59 GMT-07:00 Paras Jha <dreadiscool at gmail.com>:

> 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 <v.maffione at gmail.com>
> 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 <dreadiscool at gmail.com>:
>>
>>> 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 at freebsd.org mailing list
>>> https://lists.freebsd.org/mailman/listinfo/freebsd-net
>>> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"
>>>
>>
>>
>>
>> --
>> Vincenzo Maffione
>>
>
>


-- 
Vincenzo Maffione


More information about the freebsd-net mailing list