]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx: Set slid to zero in Ethernet completion struct
authorMoni Shoua <monis@mellanox.com>
Sun, 25 Feb 2018 11:39:54 +0000 (13:39 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 28 Feb 2018 19:10:32 +0000 (12:10 -0700)
commit0370f2d1db3c2a8a43cf5d9780669a4fdf06aace
tree4c55f771bc52d8c14a8699f6dd8b0bb9bdd1f04c
parent6be2cbf15bab8efb9f88242878ec22cf57bf0611
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: d434ad39b7d0 ("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>
drivers/infiniband/hw/mlx4/cq.c
drivers/infiniband/hw/mlx5/cq.c