aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/device.c
diff options
context:
space:
mode:
authorMoni Shoua <monis@mellanox.com>2018-02-25 13:39:54 +0200
committerJason Gunthorpe <jgg@mellanox.com>2018-02-28 12:10:32 -0700
commit65389322b28f81cc137b60a41044c2d958a7b950 (patch)
tree4c55f771bc52d8c14a8699f6dd8b0bb9bdd1f04c /drivers/infiniband/core/device.c
parent{net, IB}/mlx5: Raise fatal IB event when sys error occurs (diff)
downloadlinux-dev-65389322b28f81cc137b60a41044c2d958a7b950.tar.xz
linux-dev-65389322b28f81cc137b60a41044c2d958a7b950.zip
IB/mlx: 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. Fixes: 62ede7779904 ("Add OPA extended LID support") Reviewed-by: Majd Dibbiny <majd@mellanox.com> Signed-off-by: Moni Shoua <monis@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/core/device.c')
0 files changed, 0 insertions, 0 deletions