HomeFreeBSD

Fix broken MLX5_IB_INDEX() macro in mlx5ib(4).

Description

Fix broken MLX5_IB_INDEX() macro in mlx5ib(4).

The index should be computed as distance from arg[0] and not
the beginning of struct mlx5_ib_congestion .

While at it fix a use of zero length array to avoid depending
on undefined compiler behaviour.

MFC after: 1 week
Sponsored by: Mellanox Technologies

Details

Provenance
hselaskyAuthored on
Parents
rS358219: Make sure the ACPI lid state is updated during boot and after resume.
Branches
Unknown
Tags
Unknown