netmap-ipfw: kipfw two instances sharing same port

Eduardo Meyer dudu.meyer at gmail.com
Fri Jul 10 20:13:12 UTC 2015


On Fri, Jul 10, 2015 at 5:03 PM, Luigi Rizzo <rizzo at iet.unipi.it> wrote:

>
>
> 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​
>
>
Ok so it's a no-go for what I need, I would need to hack into kipfw to have
a 3-port filtered bridge it looks like. And i don't believe there's
existing code to find out which traffic should go to which port, so it's a
whole new thing to code right?

Thank you.

-- 
===========
Eduardo Meyer
pessoal: dudu.meyer at gmail.com
profissional: ddm.farmaciap at saude.gov.br


More information about the freebsd-net mailing list