]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r358220:
authorHans Petter Selasky <hselasky@FreeBSD.org>
Mon, 24 Feb 2020 10:41:36 +0000 (10:41 +0000)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Mon, 24 Feb 2020 10:41:36 +0000 (10:41 +0000)
commitf45c69878aa1967209c643caecb0f33745f29311
tree8192115e34130021b6e2ec5f28c79d5712527a30
parent8eee4817d12809f8733b53c65c83ec0e966a3652
MFC r358220:
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.

Sponsored by: Mellanox Technologies
sys/dev/mlx5/mlx5_ib/mlx5_ib.h
sys/dev/mlx5/mlx5_ib/mlx5_ib_cong.c