Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Nov 2023 23:48:47 +0100
From:      Vincenzo Maffione <vmaffione@freebsd.org>
To:        Benoit Chesneau <benoitc@enki-multimedia.eu>
Cc:        "freebsd-net@FreeBSD.org" <freebsd-net@freebsd.org>
Subject:   Re: how to cross-connect 2 interfaces
Message-ID:  <CA%2B_eA9hcKHNi%2Bsg56vaA=hW5SK%2BfuDNRETf=ZaVtcQYSoJxNJg@mail.gmail.com>
In-Reply-To: <N1rH7s4QTvo2LOvnjsVE7xwv2tGxUgyCK3727yVKdFQrGCKn4D-ZpF2eHqGJYVxQfG6E5mv3zEgdlTWIlhAY71id_tG763vNME1-rIgj6PM=@enki-multimedia.eu>
References:  <dzyrey2PbKgO4MIYWufu_gLvfHdHPjheBkY44c_uqmcWzw8bRuncCsFpYMhBEF_wRh0ybgStoD19E13OMLBml2AY9dJ5J0a1yYRBka-dDKw=@enki-multimedia.eu> <F23A1465-9126-46EA-88B1-9D953223CAB6@netgate.com> <wQNVeghU7CYikP3o8ybvMYvCejYImX5JdyokER7JQe_Iu27TjyshUXlWrZtViylujg-qjv3sd-dp326_BIP-HV-iAFdwveuUFMyH1Y7_N9o=@enki-multimedia.eu> <CA%2B_eA9hA=nxeX3ZCFS5DQoDpR5V=qXTdA2u17x%2BtuNNROJipqQ@mail.gmail.com> <N1rH7s4QTvo2LOvnjsVE7xwv2tGxUgyCK3727yVKdFQrGCKn4D-ZpF2eHqGJYVxQfG6E5mv3zEgdlTWIlhAY71id_tG763vNME1-rIgj6PM=@enki-multimedia.eu>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
I've never tried with vxlan interfaces... But in principle it should work
(emulated netmap mode enables netmap on any interface at reduced
performance).
However, in your case a good deal of packet processing already happens
within the kernel (vxlan encapsulation) so I would definitely go for a
kernel approach such as netgraph.

Vincenzo

On Sun, Nov 26, 2023, 10:36 PM Benoit Chesneau <benoitc@enki-multimedia.eu>
wrote:

> Thanks! I guess though it will only work for HW interfaces, not with vxlan
> interfaces?
>
> Benoît
> On Sunday, November 26th, 2023 at 21:43, Vincenzo Maffione <
> vmaffione@freebsd.org> wrote:
>
> Or, the netmap(4) bridge example
>
> On Sun, Nov 26, 2023, 12:40 PM Benoit Chesneau <benoitc@enki-multimedia.eu>
> wrote:
>
>> thanks, I didn't noticed this one.
>>
>> Benoît Chesneau, Enki Multimedia
>> —
>> t. +33608655490
>>
>> Sent with Proton Mail <https://proton.me/>; secure email.
>>
>> On Saturday, November 25th, 2023 at 23:30, Jim Thompson <jim@netgate.com>
>> wrote:
>>
>> ng_hub(4)
>>
>> On Nov 25, 2023, at 8:34 AM, Benoit Chesneau <benoitc@enki-multimedia.eu>
>> wrote:
>>
>> 
>> Is there a way to cross-connect 2 interfaces without using a bridge .
>> Something similar to the command ˋl2 xconnect` in vpp (or cisco) :
>> https://docs.fd.io/vpp/16.12/vnet_vnet_l2.html
>> <https://www.google.com/url?q=https%3A%2F%2Fdocs.fd.io%2Fvpp%2F16.12%2Fvnet_vnet_l2.html&ust=1701531263000000&usg=AOvVaw3gotHKi-LVQOb_H5p6W-4d>;
>> This could be quite handy to create a patch between diffrent machines in
>> the network.
>>
>> Benoît
>>
>>
>>
>

[-- Attachment #2 --]
<div dir="auto"><div>I&#39;ve never tried with vxlan interfaces... But in principle it should work (emulated netmap mode enables netmap on any interface at reduced performance).</div><div dir="auto">However, in your case a good deal of packet processing already happens within the kernel (vxlan encapsulation) so I would definitely go for a kernel approach such as netgraph.</div><div dir="auto"><br></div><div dir="auto">Vincenzo<br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Sun, Nov 26, 2023, 10:36 PM Benoit Chesneau &lt;<a href="mailto:benoitc@enki-multimedia.eu">benoitc@enki-multimedia.eu</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-family:Arial,sans-serif;font-size:14px">Thanks! I guess though it will only work for HW interfaces, not with vxlan interfaces?</div><div style="font-family:Arial,sans-serif;font-size:14px"><br></div>
<div style="font-family:Arial,sans-serif;font-size:14px">
    <div>
        <div style="font-style:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Helvetica;font-size:12px;color:rgb(0,0,0)">Benoît</div></div></div><div>
        On Sunday, November 26th, 2023 at 21:43, Vincenzo Maffione &lt;<a href="mailto:vmaffione@freebsd.org" target="_blank" rel="noreferrer">vmaffione@freebsd.org</a>&gt; wrote:<br><br>
        <blockquote type="cite">
            <div dir="auto">Or, the netmap(4) bridge example</div><br><div class="gmail_quote"><div class="gmail_attr" dir="ltr">On Sun, Nov 26, 2023, 12:40 PM Benoit Chesneau &lt;<a href="mailto:benoitc@enki-multimedia.eu" rel="noreferrer nofollow noopener noreferrer" target="_blank">benoitc@enki-multimedia.eu</a>&gt; wrote:<br></div><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex" class="gmail_quote"><div style="font-family:Arial,sans-serif;font-size:14px">thanks, I didn&#39;t noticed this one.</div><div style="font-family:Arial,sans-serif;font-size:14px"><br></div>
<div style="font-family:Arial,sans-serif;font-size:14px">
    <div>
        <div style="font-style:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Helvetica;font-size:12px;color:rgb(0,0,0)">Benoît Chesneau, Enki Multimedia<br></div><div style="font-style:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Helvetica;font-size:12px;color:rgb(0,0,0)">—<br></div><div style="font-style:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Helvetica;font-size:12px;color:rgb(0,0,0)">t. +33608655490 <br></div>
    </div>
    <div style="font-family:Arial,sans-serif;font-size:14px"><br></div>
    <div>
        Sent with <a rel="noreferrer nofollow noopener noreferrer" href="https://proton.me/" target="_blank">Proton Mail</a> secure email.
    </div>
</div>
<div style="font-family:Arial,sans-serif;font-size:14px"><br></div><div>
        On Saturday, November 25th, 2023 at 23:30, Jim Thompson &lt;<a rel="noreferrer nofollow noopener noreferrer" href="mailto:jim@netgate.com" target="_blank">jim@netgate.com</a>&gt; wrote:<br><br>
        <blockquote type="cite">
            <div dir="ltr"></div><div dir="ltr">ng_hub(4)</div><div dir="ltr"><br><blockquote type="cite">On Nov 25, 2023, at 8:34 AM, Benoit Chesneau &lt;<a rel="noreferrer nofollow noopener noreferrer" href="mailto:benoitc@enki-multimedia.eu" target="_blank">benoitc@enki-multimedia.eu</a>&gt; wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"> <div dir="auto">Is there a way to cross-connect 2 interfaces without using a bridge . Something similar to the command ˋl2 xconnect` in vpp (or cisco) :</div><div dir="auto"><a rel="noreferrer nofollow noopener noreferrer" href="https://www.google.com/url?q=https%3A%2F%2Fdocs.fd.io%2Fvpp%2F16.12%2Fvnet_vnet_l2.html&amp;ust=1701531263000000&amp;usg=AOvVaw3gotHKi-LVQOb_H5p6W-4d" dir="auto" target="_blank">https://docs.fd.io/vpp/16.12/vnet_vnet_l2.html</a></div><div dir="auto">This could be quite handy to create a patch between diffrent machines in the network.</div><div dir="auto"><br></div><div dir="auto">Benoît</div></div></blockquote>
        </blockquote><br>
    </div></blockquote></div>

        </blockquote><br>
    </div></blockquote></div></div></div>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B_eA9hcKHNi%2Bsg56vaA=hW5SK%2BfuDNRETf=ZaVtcQYSoJxNJg>