🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.bugs
Article #626

[Bug 301019] ix(4): with SR-IOV, VFs cannot reach the PF's own MAC address (RAR[0] loses its pool binding)

#626
From: bugzilla-noreply
Date: Sun, 22 Nov 2026 21:32
71 lines
4841 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301019

            Bug ID: 301019
           Summary: ix(4): with SR-IOV, VFs cannot reach the PF's own MAC
                    address (RAR[0] loses its pool binding)
           Product: Base System
           Version: 15.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Keywords: IntelNetworking, patch
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: list1@gjunka.com
                CC: kbowling@freebsd.org

Created attachment 277575
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=277575&action=edit
ixgbe: Bind RAR[0] to the PF pool again after init_hw with SR-IOV

PR 301018 means https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301018

With SR-IOV enabled on an ix(4) port, a VF can reach every host on the
LAN except the PF host itself: unicast frames from the VF to the PF's MAC
address leave the VF (seen with tcpdump on the VF) but never arrive on
the PF; they go out of the port and are lost. Traffic from the wire to
the PF is fine.

Hardware, kernel and setup: as in PR 301018 (X550-T2, 15.2-BETA3, the
same code in main at 6edecf52, 1 VF, PF limited to 4 queues), with PR
301018's patch applied so that ARP to the PF resolves at all.

How to reproduce:
1. Create one VF as in PR 301018; give it to a vnet jail with an address
   in the PF's subnet.
2. From the jail: ping <the PF's address>  -> no reply (ARP resolves with
   PR 301018's patch, the ICMP echo is never seen on the PF). Pings from
   the jail to other hosts on the LAN work.

Cause:
ixgbe_if_init() binds RAR[0] (the PF's MAC) to sc->pool with
ixgbe_set_rar(hw, 0, ..., sc->pool, ...), and then calls ixgbe_init_hw().
On X550 that runs ixgbe_reset_hw_X540() -> init_rx_addrs
(ixgbe_init_rx_addrs_generic()), which rewrites RAR[0] and clears its
pool bits (clear_vmdq(hw, 0, IXGBE_CLEAR_VMDQ_ALL)). Nothing binds RAR[0]
to the PF's pool again. Frames from the wire still reach the PF through
the default pool (VT_CTL.DEF_PL), but the internal switch loops a VF's
unicast back only when the destination address belongs to a pool, so the
VF's frames to the PF's MAC are sent out of the port.

Fix (attached; applies on top of PR 301018's patch): call
ixgbe_set_vmdq(hw, 0, sc->pool) in ixgbe_initialize_iov().

Tested together with PR 301018's patch on 15.2-BETA3: from a vnet jail
on the VF, the PF host's address and the jails on the PF answer ping,
across ARP expiry, and TCP works (package downloads over HTTP from a jail
on the PF, about 100 requests).

Please consider it for stable/15 and, if still possible, releng/15.2.

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID: <bug-301019-227@https.bugs.freebsd.org/bugzilla/>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: bugzilla-noreply@freebsd.org
Newsgroups: muc.lists.freebsd.bugs
Subject: [Bug 301019] ix(4): with SR-IOV, VFs cannot reach the PF's own MAC
 address (RAR[0] loses its pool binding)
Date: Sun, 22 Nov 2026 21:32:29 +0000
Organization: Newsgate at muc.de e.V.
Approved: news-admin@muc.de
Distribution: world
Message-ID: <bug-301019-227@https.bugs.freebsd.org/bugzilla/>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="97383"; mail-complaints-to="news-admin@muc.de"
X-Original-To: bugs@mlmmj.nyi.freebsd.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1795383149;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding;
	bh=wq52BE+eqGrB5CJ5TjtnSHHTv0Zoiu/ItRka4jbA1gg=;
	b=g95x8ZZlC76px6mP1S3WIJT8jEW/SHfZHGNcHAO8NFi79iUzA24BHaHRPgF2wWoQC21pTo
	ARZSS2L4LMQiZksKeBknRZfaniRkGzSmxAoaCAGl0Eow+s7aO5LQwC2JPQWPmwBMtWjGg8
	Mea9fJZE+WfRMKn151jD1vKxna5dqK5xtqz71Vvva6lsYzTOiDDDRAT1QIrHiV6mEghPn3
	mJJMb2aQ32xI3TrNQ8V/hpllS12CLUaLiZYzTb7YQOjhQ4ksqB4YVRBlHTM2Yh/tYzBC4z
	g28sG6ubkSF75OY8xaoISEW4t/jR/4Wx8lnityL/qm7gRckdbuomTiCeDyUjbQ==
X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f
Auto-Submitted: auto-generated
Precedence: list
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes