The igb driver currently requires a VF interface to have a non-zero MAC
address, but the associated PF is giving the VF an all zeros MAC address
when one is not administratively assigned. The driver should check for
this case and generate a random address, similar to how the linux igbvf
driver does.
Details
- Reviewers
sbruno - Group Reviewers
Intel Networking - Commits
- rS308429: The igb driver currently requires a VF interface to have a non-zero MAC
My test setup is a linux host OS (for the PF) with a freebsd10 guest OS
running in a VM (for the VF). The VM has an application that creates
the igb interface and sets a MAC address for it.
I performed the following two tests.
Host OS has administratively assigned address 02:00:00:00:00:04 for igb
vf 0. Guest OS creates igb interface and attempts to assign address
02:00:00:01:00:04. Host OS rejects the set (VF 0 attempted to override
administratively set MAC address) and retains the original address.
This is expected results.
Host OS has no assigned address for igb vf 0. Guest OS creates igb
interface and attempts to assign address 02:00:00:01:00:04. Host OS
accepts the set and assigns the new address. This is expected results.
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 5761 Build 6065: arc lint + arc unit
Event Timeline
I was hoping for some feedback from the Intel folks about this change. To me, it seems to make sense given that's how the other VF drivers work. If there are no other comments, then yes please commit as is. Thanks.
I was late to commenting on it, but it looked fine to me. It looks like it's similar to the ixgbe code.