netmap-ipfw: kipfw two instances sharing same port
Luigi Rizzo
rizzo at iet.unipi.it
Fri Jul 10 20:03:16 UTC 2015
On Fri, Jul 10, 2015 at 9:58 PM, Eduardo Meyer <dudu.meyer at gmail.com> wrote:
> On Fri, Jul 10, 2015 at 4:15 PM, Luigi Rizzo <rizzo at iet.unipi.it> wrote:
>
>>
>>
>> On Fri, Jul 10, 2015 at 9:14 PM, Eduardo Meyer <dudu.meyer at gmail.com>
>> wrote:
>>
>>> On Fri, Jul 10, 2015 at 4:09 PM, Pavel Odintsov <
>>> pavel.odintsov at gmail.com>
>>> wrote:
>>>
>>> > Hello!
>>> >
>>> > You could enable multiple queues for each NIC and run single instance
>>> of
>>> > kipfw on each pair:
>>> > kipfw netmap:ix0-0 netmap:ix1-0
>>> > kipfw netmap:ix0-1 netmap:ix1-1
>>> >
>>> > And so on ;) i have about 12 mpps with this configuration (on Linux
>>> > netmap).
>>> >
>>>
>>> Wow cool hint and cool numbers.
>>>
>>> I will get everything properly bridged on both kipfw instances, right?
>>>
>>> I need to simulate like a 3-port bridge... this would me more like
>>>
>>> kipfw netmap:ix0-0 netmap:ix1-0
>>> kipfw netmap:ix0-1 netmap:ix2-0
>>>
>>> But I need the same traffic coming on the wire on ix0 to be available on
>>> both ix1 and ix2.
>>>
>>
>> it won't replicate traffic on the other two ports,
>> that's a different logic.
>>
>> cheers
>> luigi
>>
>
> yeah it's what I thought,
> different queues, different packets
>
> what about the first approach? should I expect issues?
>
> kipfw netmap:ix0 netmap:ix1
> kipfw netmap:ix0 netmap:ix2
>
it won't do what anything sensible:
processes will compete for packets randomly
passing them to one or the other port.
cheers
luigi
More information about the freebsd-net
mailing list