Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Feb 2024 08:30:37 +0000
From:      Benoit Chesneau <benoitc@enki-multimedia.eu>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        "freebsd-net@FreeBSD.org" <freebsd-net@freebsd.org>
Subject:   Re: mlx5en  issue with SR-IOV when using in the bridge
Message-ID:  <VHVL58KsFi0lfUvo1Jz8Vfd2TuGQfzAEDOH8Zh-hDLIbqIpJv45Fh0wuKVaIVOtkC36WZq_QRWqTbUy4NszEgg871l07fG08N7BXRSqV1RI=@enki-multimedia.eu>
In-Reply-To: <ZchEDCj66kNE_nKD@kib.kiev.ua>
References:  <7L4ctsvv8st_6uOSAw8Li1SvAPsNYXPWjv3rRepGpwcRdl900YajxFSLe3frQl4hUE28PKU5lf98gRpN7WlZG7u2FWgOf3BImZu4spzI3Sg=@enki-multimedia.eu> <ZchEDCj66kNE_nKD@kib.kiev.ua>

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

indeed the port is plugged to a switch. The port is enabled. So yes that pr=
obably is. Is this a firmware issue or can it be solved in the driver?


Beno=C3=AEt

On Sunday, February 11th, 2024 at 04:50, Konstantin Belousov <kostikbel@gma=
il.com> wrote:

> On Sat, Feb 10, 2024 at 09:23:36AM +0000, Benoit Chesneau wrote:
>=20
> > I have tested the following scenario:
> >=20
> > Setup the mellanox driver with SRIOV:
> >=20
> > ```
> > $ sudo more /etc/iov/mce0.conf
> > PF {
> > device: "mlx5_core0";
> > num_vfs: 8;
> > }
> >=20
> > DEFAULT {
> > passthrough: true;
> > }
> >=20
> > VF-0 {
> > mac-addr: "02:01:02:02:01:00";
> > }
> >=20
> > VF-1 {
> > mac-addr: "02:01:02:02:01:01";
> > }
> >=20
> > VF-2 {
> > passthrough: false;}
> >=20
> > ```
> >=20
> > With one VF in the vm answering to a specific vlan, and one jail on the=
 host using vnet with the PF in a bridge and a epair interface added to thi=
s bridge.
> >=20
> > When I am pinging from the jail to the VF in the vm , the vm receive th=
e ping or arp requests. But the jail doesn't receive the response. In a sam=
e manner , when I ping from the VM to the jail, the host is not found. brid=
ge arp doesn't return the vm mac address.
> >=20
> > All the hosts has the PF interface set in promiscuous mode but this doe=
sn't seem to be enough to allows the bridge to learn other mac ids. When I =
directly add the IP to PF, Ping works from the vm to the PF, the reverse is=
 also true.
> >=20
> > Do I miss a setting? Is this expected with mellanox cards? What shoudl =
I look for?
>=20
>=20
> Do you have the port plugged into a switch and the port enabled?
> I suspect VFs do not have enough hairpin code to do proper loopback
> communications, and I certain that multicast loopback does not work.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?VHVL58KsFi0lfUvo1Jz8Vfd2TuGQfzAEDOH8Zh-hDLIbqIpJv45Fh0wuKVaIVOtkC36WZq_QRWqTbUy4NszEgg871l07fG08N7BXRSqV1RI=>