HomeFreeBSD

if_vtnet: Defer updating generated MAC address until attached

Description

if_vtnet: Defer updating generated MAC address until attached

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.

Reviewed by: grehan (mentor)
Differential Revision: https://reviews.freebsd.org/D27910

Details

Provenance
bryanvAuthored on Jan 19 2021, 4:55 AM
Reviewer
grehan
Differential Revision
D27910: if_vtnet: Defer updating generated MAC address until attached
Parents
R10:25dbc30ef5c9: if_vtnet: Remove at attach PROMISC handling
Branches
Unknown
Tags
Unknown