HomeFreeBSD

mlx4ib and mlx5ib: Set slid to zero in Ethernet completion struct

Description

mlx4ib and mlx5ib: Set slid to zero in Ethernet completion struct

IB spec says that a lid should be ignored when link layer is Ethernet,
for example when building or parsing a CM request message (CA17-34).
However, since ib_lid_be16() and ib_lid_cpu16() validates the slid,
not only when link layer is IB, we set the slid to zero to prevent
false warnings in the kernel log.

Linux commit:
65389322b28f81cc137b60a41044c2d958a7b950

Reviewed by: kib
Sponsored by: Mellanox Technologies // NVIDIA Networking

(cherry picked from commit 30416d4e827341be32c3e415f16c73f252a68d85)

Details

Provenance
hselaskyAuthored on Jun 16 2021, 1:01 PM
Parents
rG1554e2673b3b: mlx5en: Configure relaxed PCI read and write ordering for ethernet.
Branches
Unknown
Tags
Unknown