HomeFreeBSD

Make sure default VNET is set when adding a new interface in mlx5core.

Description

Make sure default VNET is set when adding a new interface in mlx5core.

Adding an interface might be done outside the device_attach() routine
and will then cause a panic, due to the VNET not being set.

MFC after: 1 week
Sponsored by: Mellanox Technologies

Details

Provenance
hselaskyAuthored on
Parents
rS330602: sys/cloudabi: Avoid relying on GNU specific extensions
Branches
Unknown
Tags
Unknown