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
--000000000000c696cd060b15fd9f
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

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 vxla=
n
> interfaces?
>
> Beno=C3=AEt
> 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.e=
u>
> wrote:
>
>> thanks, I didn't noticed this one.
>>
>> Beno=C3=AEt Chesneau, Enki Multimedia
>> =E2=80=94
>> 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=E2=80=AFAM, Benoit Chesneau <benoitc@enki-multi=
media.eu>
>> wrote:
>>
>> =EF=BB=BF
>> Is there a way to cross-connect 2 interfaces without using a bridge .
>> Something similar to the command =CB=8Bl2 xconnect` in vpp (or cisco) :
>> https://docs.fd.io/vpp/16.12/vnet_vnet_l2.html
>> <https://www.google.com/url?q=3Dhttps%3A%2F%2Fdocs.fd.io%2Fvpp%2F16.12%2=
Fvnet_vnet_l2.html&ust=3D1701531263000000&usg=3DAOvVaw3gotHKi-LVQOb_H5p6W-4=
d>
>> This could be quite handy to create a patch between diffrent machines in
>> the network.
>>
>> Beno=C3=AEt
>>
>>
>>
>

--000000000000c696cd060b15fd9f
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div>I&#39;ve never tried with vxlan interfaces... But in=
 principle it should work (emulated netmap mode enables netmap on any inter=
face at reduced performance).</div><div dir=3D"auto">However, in your case =
a good deal of packet processing already happens within the kernel (vxlan e=
ncapsulation) so I would definitely go for a kernel approach such as netgra=
ph.</div><div dir=3D"auto"><br></div><div dir=3D"auto">Vincenzo<br><br><div=
 class=3D"gmail_quote" dir=3D"auto"><div dir=3D"ltr" class=3D"gmail_attr">O=
n Sun, Nov 26, 2023, 10:36 PM Benoit Chesneau &lt;<a href=3D"mailto:benoitc=
@enki-multimedia.eu">benoitc@enki-multimedia.eu</a>&gt; wrote:<br></div><bl=
ockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #=
ccc solid;padding-left:1ex"><div style=3D"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=3D"font-family:Arial,sans-serif;fon=
t-size:14px"><br></div>
<div style=3D"font-family:Arial,sans-serif;font-size:14px">
    <div>
        <div style=3D"font-style:normal;font-weight:normal;letter-spacing:n=
ormal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0=
px;text-decoration:none;font-family:Helvetica;font-size:12px;color:rgb(0,0,=
0)">Beno=C3=AEt</div></div></div><div>
        On Sunday, November 26th, 2023 at 21:43, Vincenzo Maffione &lt;<a h=
ref=3D"mailto:vmaffione@freebsd.org" target=3D"_blank" rel=3D"noreferrer">v=
maffione@freebsd.org</a>&gt; wrote:<br><br>
        <blockquote type=3D"cite">
            <div dir=3D"auto">Or, the netmap(4) bridge example</div><br><di=
v class=3D"gmail_quote"><div class=3D"gmail_attr" dir=3D"ltr">On Sun, Nov 2=
6, 2023, 12:40 PM Benoit Chesneau &lt;<a href=3D"mailto:benoitc@enki-multim=
edia.eu" rel=3D"noreferrer nofollow noopener noreferrer" target=3D"_blank">=
benoitc@enki-multimedia.eu</a>&gt; wrote:<br></div><blockquote style=3D"mar=
gin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex" class=3D"gmail_=
quote"><div style=3D"font-family:Arial,sans-serif;font-size:14px">thanks, I=
 didn&#39;t noticed this one.</div><div style=3D"font-family:Arial,sans-ser=
if;font-size:14px"><br></div>
<div style=3D"font-family:Arial,sans-serif;font-size:14px">
    <div>
        <div style=3D"font-style:normal;font-weight:normal;letter-spacing:n=
ormal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0=
px;text-decoration:none;font-family:Helvetica;font-size:12px;color:rgb(0,0,=
0)">Beno=C3=AEt Chesneau, Enki Multimedia<br></div><div style=3D"font-style=
:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-trans=
form:none;white-space:normal;word-spacing:0px;text-decoration:none;font-fam=
ily:Helvetica;font-size:12px;color:rgb(0,0,0)">=E2=80=94<br></div><div styl=
e=3D"font-style:normal;font-weight:normal;letter-spacing:normal;text-indent=
:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoratio=
n:none;font-family:Helvetica;font-size:12px;color:rgb(0,0,0)">t. +336086554=
90 <br></div>
    </div>
    <div style=3D"font-family:Arial,sans-serif;font-size:14px"><br></div>
    <div>
        Sent with <a rel=3D"noreferrer nofollow noopener noreferrer" href=
=3D"https://proton.me/" target=3D"_blank">Proton Mail</a> secure email.
    </div>
</div>
<div style=3D"font-family:Arial,sans-serif;font-size:14px"><br></div><div>
        On Saturday, November 25th, 2023 at 23:30, Jim Thompson &lt;<a rel=
=3D"noreferrer nofollow noopener noreferrer" href=3D"mailto:jim@netgate.com=
" target=3D"_blank">jim@netgate.com</a>&gt; wrote:<br><br>
        <blockquote type=3D"cite">
            <div dir=3D"ltr"></div><div dir=3D"ltr">ng_hub(4)</div><div dir=
=3D"ltr"><br><blockquote type=3D"cite">On Nov 25, 2023, at 8:34=E2=80=AFAM,=
 Benoit Chesneau &lt;<a rel=3D"noreferrer nofollow noopener noreferrer" hre=
f=3D"mailto:benoitc@enki-multimedia.eu" target=3D"_blank">benoitc@enki-mult=
imedia.eu</a>&gt; wrote:<br><br></blockquote></div><blockquote type=3D"cite=
"><div dir=3D"ltr">=EF=BB=BF <div dir=3D"auto">Is there a way to cross-conn=
ect 2 interfaces without using a bridge . Something similar to the command =
=CB=8Bl2 xconnect` in vpp (or cisco) :</div><div dir=3D"auto"><a rel=3D"nor=
eferrer nofollow noopener noreferrer" href=3D"https://www.google.com/url?q=
=3Dhttps%3A%2F%2Fdocs.fd.io%2Fvpp%2F16.12%2Fvnet_vnet_l2.html&amp;ust=3D170=
1531263000000&amp;usg=3DAOvVaw3gotHKi-LVQOb_H5p6W-4d" dir=3D"auto" target=
=3D"_blank">https://docs.fd.io/vpp/16.12/vnet_vnet_l2.html</a></div><div di=
r=3D"auto">This could be quite handy to create a patch between diffrent mac=
hines in the network.</div><div dir=3D"auto"><br></div><div dir=3D"auto">Be=
no=C3=AEt</div></div></blockquote>
        </blockquote><br>
    </div></blockquote></div>

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

--000000000000c696cd060b15fd9f--



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