HomeFreeBSD

mlx4: Make sure default VNET is set when adding a new interface.

Description

mlx4: Make sure default VNET is set when adding a new interface.

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

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies

Details

Provenance
slavashAuthored on
Parents
rS341550: mlx4en: Remove duplicate statistics variable assignment.
Branches
Unknown
Tags
Unknown