From nobody Sun Nov 26 22:48:47 2023 X-Original-To: freebsd-net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SdkRK5Fftz51wgt for ; Sun, 26 Nov 2023 22:49:01 +0000 (UTC) (envelope-from vmaffione@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SdkRK4q3sz4qK9 for ; Sun, 26 Nov 2023 22:49:01 +0000 (UTC) (envelope-from vmaffione@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701038941; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=rPTiuOTMx9d6Eyvz2tuKeNWPWMq8ttwVU2keH4fLBmE=; b=h4nRMyCYaHVppqAQIakC8bZt4WailElXXlvTdfWjp9u8fwxQJlD7eiMq+rjXhK5eFyeYWY mi+D282BhLlXuLCfyluHNawOi1djjiDVyw6Lp6bKL1tWsXxSfHp1mgWUnMlS+JzQdWy076 fnDODDNAj0sgUcOZzVljJyTAgHDlfSU6zDdcvckwvT5RGnDaOpz7DuhJksRzf0cVuOAc/G wvztxFsk2sJrqvRDfnKLs9TH3FibUuIjLrJtRzhi8iyC/9VKL/QV6RPshsE0TygY1ijqa4 cWV8nXMx7zJaek73K+egB9wLQ/8neYaDsfazc5mSkyG0EsM1QB5UeyLd4DjCcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701038941; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=rPTiuOTMx9d6Eyvz2tuKeNWPWMq8ttwVU2keH4fLBmE=; b=gRQz0CxbskEyFGmsUqtRX3mOaob//D/iztSttajm7YVK+BrBOy4zwZZLeM3FY6Nki8vFdS 6qKch3yTxUSRZEVg3eke1+884k60S5rc0H3vTullpd6letS1GrrKpZR3Gji0QLLIF+r9ve 9LIPKV4QQoHZ11GbAMx4prB5YHHOqQNkrBryNHM2A3gmAgZuZS6+iPfl6V3eR8CQck33v7 3J1/KRIMw+JgZlxV4n4a7NyXOgeCmNsz+9jj96QHkoTFIjKfCpkutWTMPxcf0KTktZXuZa jeGDyuchXLu2XDZYw07+Wnn5ZtF9DztFI1q814xeBW9w+g09F3dUFpe9MDFqdQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1701038941; a=rsa-sha256; cv=none; b=aEJq+vqCj/xjAMctVWJOOK/OApyMAyCX+PtM/f9/THXiqap6w1o5eCMOmsCVAiJ4SyE1hk KzhheX6smQuU9yZD+vJTTZ0G+JrxjUKmIXoSvhJTgBhYdXqYWPAYHn7y3zJRt4nFgNajX4 g+s1CPIpsPCCJxyj9BHo44gHMo6wQPj2guhcCv629LGTNPW9TbEnwy428xL7g5DlQDsysP LGZ5PuWUlnLRw2HFedJcGrqIrlJZPjZ9KLpfdMVql9xZgkkukkZ1bYOayYHw8U7l0GmKZz x2CHCVwcMWaQUUk0bEbc9xzFX8LiL8sqdMvfQ9vcSbM+xtKt41MLKo5ueqFumw== Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: vmaffione) by smtp.freebsd.org (Postfix) with ESMTPSA id 4SdkRK3p08z6Mw for ; Sun, 26 Nov 2023 22:49:01 +0000 (UTC) (envelope-from vmaffione@freebsd.org) Received: by mail-pj1-f44.google.com with SMTP id 98e67ed59e1d1-2854757f0f8so2954596a91.1 for ; Sun, 26 Nov 2023 14:49:01 -0800 (PST) X-Gm-Message-State: AOJu0YwwVXaUI/C8RE3WP3NWNQTV0O08vzTrCh/rP2ZF+h4IhvnvHx/z 3ke+rWOPnRICdOGFTUbsZFpvoJs8uduai6vbM/g= X-Google-Smtp-Source: AGHT+IHyS+mVQ15N6bIT7q3CZjezAxj+vtglwRN3wi9oeOZDUNYwyCAqb7aQSoZgHBPU5RDTso3ZwuuTbP9XQk5SMMY= X-Received: by 2002:a17:90b:1e0d:b0:285:b019:1506 with SMTP id pg13-20020a17090b1e0d00b00285b0191506mr3562316pjb.43.1701038940131; Sun, 26 Nov 2023 14:49:00 -0800 (PST) List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Vincenzo Maffione Date: Sun, 26 Nov 2023 23:48:47 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: how to cross-connect 2 interfaces To: Benoit Chesneau Cc: "freebsd-net@FreeBSD.org" Content-Type: multipart/alternative; boundary="000000000000c696cd060b15fd9f" --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 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 > wrote: > >> thanks, I didn't noticed this one. >> >> Beno=C3=AEt Chesneau, Enki Multimedia >> =E2=80=94 >> t. +33608655490 >> >> Sent with Proton Mail secure email. >> >> On Saturday, November 25th, 2023 at 23:30, Jim Thompson >> wrote: >> >> ng_hub(4) >> >> On Nov 25, 2023, at 8:34=E2=80=AFAM, Benoit Chesneau >> 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 >> >> 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
I've never tried with vxlan interfaces... But in= principle it should work (emulated netmap mode enables netmap on any inter= face at reduced performance).
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.

Vincenzo

O= n 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=C3=AEt
On Sunday, November 26th, 2023 at 21:43, Vincenzo Maffione <v= maffione@freebsd.org> wrote:

Or, the netmap(4) bridge example

On Sun, Nov 2= 6, 2023, 12:40 PM Benoit Chesneau <= benoitc@enki-multimedia.eu> wrote:
thanks, I= didn't noticed this one.

Beno=C3=AEt Chesneau, Enki Multimedia
=E2=80=94
t. +336086554= 90

Sent with Proton Mail 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-mult= imedia.eu> wrote:

=EF=BB=BF
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) :
This could be quite handy to create a patch between diffrent mac= hines in the network.

Be= no=C3=AEt


--000000000000c696cd060b15fd9f--