Page MenuHomeFreeBSD

if_vtnet: Defer updating generated MAC address until attached
ClosedPublic

Authored by bryanv on Jan 2 2021, 8:59 PM.

Details

Summary

This improves spec compliance because the driver is not suppose
to notify the device prior to setting the DRIVER_OK status, which
could happen with the VIRTIO_NET_F_CTRL_MAC_ADDR.

The VIRTIO_NET_F_MAC feature should always be negotiated so would
be a rare situation.

Diff Detail

Repository
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.