Bug 253535 - em - VF interface invalid MAC address
Summary: em - VF interface invalid MAC address
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-net (Nobody)
Keywords: IntelNetworking
Depends on:
Reported: 2021-02-15 13:22 UTC by Balaev PA
Modified: 2021-02-15 13:57 UTC (History)
1 user (show)

See Also:

em VF MAC address patch (1.10 KB, patch)
2021-02-15 13:22 UTC, Balaev PA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Balaev PA 2021-02-15 13:22:19 UTC
Created attachment 222466 [details]
em VF MAC address patch

I have a host with I350 Ethernet Controller Virtual Function [8086:1520], when I try to passthrough it into FreeBSD (running on QEMU '-device vfio-pci,host=04:10.1') I get an error:
igb0: Invalid MAC address
igb0: IFDI_ATTACH_PRE failed 5
device_attach: igb0 attach returned 5

After applying patch (attached) everthing works fine:
igb0: Generate a random address
igb0: Using 1024 TX descriptors and 1024 RX descriptors
igb0: Using 1 RX queues 1 TX queues
igb0: Using MSI-X interrupts with 2 vectors
igb0: Ethernet address: 7e:da:23:50:00:1d
igb0: link state changed to UP
igb0: netmap queues/slots: TX 1/1024, RX 1/1024

This problem was fixed in igb driver: https://reviews.freebsd.org/rS308429. But after merging igb into em driver, it was lost.