opnsense-src/sys/dev/mlx5/mlx5_ib
Hans Petter Selasky 30416d4e82 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

MFC after:	1 week
Reviewed by:	kib
Sponsored by:	Mellanox Technologies // NVIDIA Networking
2021-07-12 14:22:34 +02:00
..
mlx5_ib.h mlx5ib: Implement support for enabling and disabling RoCE ECN. 2021-07-12 14:22:33 +02:00
mlx5_ib_ah.c Optimize ibcore RoCE address handle creation from user-space. 2018-03-05 14:34:52 +00:00
mlx5_ib_cong.c mlx5ib: Implement support for enabling and disabling RoCE ECN. 2021-07-12 14:22:33 +02:00
mlx5_ib_cq.c mlx4ib and mlx5ib: Set slid to zero in Ethernet completion struct 2021-07-12 14:22:34 +02:00
mlx5_ib_doorbell.c Update mlx5ib(4) to match Linux 4.9 and the new ibcore APIs. 2017-11-10 15:02:17 +00:00
mlx5_ib_gsi.c ibcore: Declare ib_post_send() and ib_post_recv() arguments const 2021-07-12 14:22:33 +02:00
mlx5_ib_mad.c Update mlx5ib(4) to match Linux 4.9 and the new ibcore APIs. 2017-11-10 15:02:17 +00:00
mlx5_ib_main.c ibcore: Introduce ib_port_phys_state enum. 2021-07-12 14:22:31 +02:00
mlx5_ib_mem.c mlx5ib: Limit mkey page size to 2GB 2021-07-12 14:22:29 +02:00
mlx5_ib_mr.c ibcore: Declare ib_post_send() and ib_post_recv() arguments const 2021-07-12 14:22:33 +02:00
mlx5_ib_qp.c ibcore: Declare ib_post_send() and ib_post_recv() arguments const 2021-07-12 14:22:33 +02:00
mlx5_ib_srq.c ibcore: Declare ib_post_send() and ib_post_recv() arguments const 2021-07-12 14:22:33 +02:00
mlx5_ib_virt.c Update mlx5ib(4) to match Linux 4.9 and the new ibcore APIs. 2017-11-10 15:02:17 +00:00