opnsense-src/sys/ofed
Hans Petter Selasky eb008a6793 MFC 4e38478c59:
ipoib: Fix incorrectly computed IPOIB_CM_RX_SG value.

The computed IPOIB_CM_RX_SG is too small. It doesn't account for fallback
to mbuf clusters when jumbo frames are not available and it also doesn't
account for the packet header and trailer mbuf.

This causes a memory overwrite situation when IPOIB_CM is configured.

While at it add a kernel assert to ensure the mapping array is not overwritten.

PR:		254474
Sponsored by:	Mellanox Technologies // NVIDIA Networking

(cherry picked from commit 4e38478c59)
2021-04-01 11:19:42 +02:00
..
drivers/infiniband MFC 4e38478c59: 2021-04-01 11:19:42 +02:00
include Update user access region, UAR, APIs in the core in mlx5core. 2021-01-08 13:33:46 +01:00