🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: muc.lists.freebsd.bugs
4 messages
4 total messages Started by bugzilla-noreply Sun, 22 Nov 2026 21:32
[Bug 301019] ix(4): with SR-IOV, VFs cannot reach the PF's own MAC address (RAR[0] loses its pool binding)
#626
Author: 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
[Bug 301019] ix(4): with SR-IOV, VFs cannot reach the PF's own MAC address (RAR[0] loses its pool binding)
#628
Author: bugzilla-noreply
Date: Sun, 22 Nov 2026 21:33
22 lines
2717 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301019

Grzegorz Junka <list1@gjunka.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |301018


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301018
[Bug 301018] ix(4): with SR-IOV VFs, the PF receives no broadcasts (no ARP),
host becomes unreachable
-- 
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
[Bug 301019] ix(4): with SR-IOV, VFs cannot reach the PF's own MAC address (RAR[0] loses its pool binding)
#631
Author: bugzilla-noreply
Date: Sun, 22 Nov 2026 21:37
19 lines
2702 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301019

Grzegorz Junka <list1@gjunka.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://bugs.freebsd.org/bu
                   |                            |gzilla/show_bug.cgi?id=3010
                   |                            |20

-- 
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
[Bug 301019] ix(4): with SR-IOV, VFs cannot reach the PF's own MAC address (RAR[0] loses its pool binding)
#640
Author: bugzilla-noreply
Date: Mon, 23 Nov 2026 00:47
17 lines
2592 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301019

Mark Linimon <linimon@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|bugs@FreeBSD.org            |net@FreeBSD.org
           Keywords|patch                       |

-- 
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads