From nobody Mon Feb 12 13:34:42 2024 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 4TYQS92Ympz59q1C for ; Mon, 12 Feb 2024 13:35:05 +0000 (UTC) (envelope-from benoitc@enki-multimedia.eu) Received: from mail-4317.proton.ch (mail-4317.proton.ch [185.70.43.17]) (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 "protonmail.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYQS90HClz4mVs for ; Mon, 12 Feb 2024 13:35:04 +0000 (UTC) (envelope-from benoitc@enki-multimedia.eu) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enki-multimedia.eu; s=protonmail2; t=1707744902; x=1708004102; bh=9eU6B1TqYECv99GcEy95MAFcaWRNR/hPx/usbRY3A/0=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=JeMnpCIIj031BIS6lLv5K8zyXZsfikjgJANelnomtUGDzqQoEup5W2PVGlOvfK6l7 KY8AYjimw0L6Foecvr8qEszKvVOn2cgiayj3js9z3MOEQExeCxdXOCF+9F7UYMSqRb 8OXTa88XZxtAI353V31K9Kb06JIVmcnUVeRvj7eBtG0HUI18t1ZH8J79qFJEmW8P0r hHtdEHkUKdYWwy9HvmnaWWJ0IVXkI2xkqmX2bAsfbvDnWW3xXY5zUhge86PZufDyLK DQqM0sNc2Pn0/N5E/qU55hLgdDoH7v/e1GRnYSwQvHtI0PopiIOeNlT//W+5VzunDD 3s9pwfDqb7T5A== Date: Mon, 12 Feb 2024 13:34:42 +0000 To: Konstantin Belousov From: Benoit Chesneau Cc: "freebsd-net@FreeBSD.org" Subject: Re: mlx5en issue with SR-IOV when using in the bridge Message-ID: In-Reply-To: References: <7L4ctsvv8st_6uOSAw8Li1SvAPsNYXPWjv3rRepGpwcRdl900YajxFSLe3frQl4hUE28PKU5lf98gRpN7WlZG7u2FWgOf3BImZu4spzI3Sg=@enki-multimedia.eu> Feedback-ID: 9066678:user:proton 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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:62371, ipnet:185.70.43.0/24, country:CH] X-Rspamd-Queue-Id: 4TYQS90HClz4mVs X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated OK . I guesss it's about porting some parts from the linux driver, but the = code is slightly different today.. Is there any card that support correctly SR-IOV ? chelsio (but i don't know= where to source them) ? Intel ? Beno=C3=AEt On Monday, February 12th, 2024 at 10:54, Konstantin Belousov wrote: > On Mon, Feb 12, 2024 at 08:30:37AM +0000, Benoit Chesneau wrote: > > > Hi Konstantin, > > > > indeed the port is plugged to a switch. The port is enabled. So yes tha= t probably is. Is this a firmware issue or can it be solved in the driver? > > It is driver issue, and requires some (significant) driver updates. > > > Beno=C3=AEt > > > > On Sunday, February 11th, 2024 at 04:50, Konstantin Belousov kostikbel@= gmail.com wrote: > > > > > On Sat, Feb 10, 2024 at 09:23:36AM +0000, Benoit Chesneau wrote: > > > > > > > I have tested the following scenario: > > > > > > > > Setup the mellanox driver with SRIOV: > > > > > > > > ``` > > > > $ sudo more /etc/iov/mce0.conf > > > > PF { > > > > device: "mlx5_core0"; > > > > num_vfs: 8; > > > > } > > > > > > > > DEFAULT { > > > > passthrough: true; > > > > } > > > > > > > > VF-0 { > > > > mac-addr: "02:01:02:02:01:00"; > > > > } > > > > > > > > VF-1 { > > > > mac-addr: "02:01:02:02:01:01"; > > > > } > > > > > > > > VF-2 { > > > > passthrough: false;} > > > > > > > > ``` > > > > > > > > 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= this bridge. > > > > > > > > When I am pinging from the jail to the VF in the vm , the vm receiv= e the ping or arp requests. But the jail doesn't receive the response. In a= same manner , when I ping from the VM to the jail, the host is not found. = bridge arp doesn't return the vm mac address. > > > > > > > > All the hosts has the PF interface set in promiscuous mode but this= doesn't seem to be enough to allows the bridge to learn other mac ids. Whe= n I directly add the IP to PF, Ping works from the vm to the PF, the revers= e is also true. > > > > > > > > Do I miss a setting? Is this expected with mellanox cards? What sho= udl I look for? > > > > > > 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.