opnsense-src/sys/dev/mlx5/mlx5_ib
Doug Moore 5a5da24fc8 mlx5: optimize ilog2 calculation
Rather than compute ilog2(roundup_pow_of_two(x)), which invokes ilog2
twice, just use order_base_2 once.  And employ that optimization
twice.

Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D46838
2024-09-28 16:24:44 -05:00
..
mlx5_ib.h mlx5en: add IPSEC_OFFLOAD support 2024-07-30 18:00:04 +03:00
mlx5_ib_ah.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
mlx5_ib_cong.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
mlx5_ib_cq.c mlx5en: add IPSEC_OFFLOAD support 2024-07-30 18:00:04 +03:00
mlx5_ib_devx.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
mlx5_ib_doorbell.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
mlx5_ib_gsi.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
mlx5_ib_mad.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
mlx5_ib_main.c mlx5en: add IPSEC_OFFLOAD support 2024-07-30 18:00:04 +03:00
mlx5_ib_mem.c mlx5: optimize ilog2 calculation 2024-09-28 16:24:44 -05:00
mlx5_ib_mr.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
mlx5_ib_qp.c mlx5ib: Fix RSS Toeplitz setup to be aligned with the HW specification 2023-10-28 16:59:09 -04:00
mlx5_ib_srq.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
mlx5_ib_virt.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00