opnsense-src/sys/dev/mlx5/mlx5_en
Doug Moore f0a0420dfd powerof2: replace loops with fls or ilog2
In several places, a loop tests for powers of two, or iterates through
powers of two.  In those places, replace the loop with an invocation
of fls or ilog2 without changing the meaning of the code.

Reviewed by:	alc, markj, kib, np, erj, avg (previous version)
Differential Revision:	https://reviews.freebsd.org/D45494
2024-06-12 05:00:48 -05:00
..
en.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
en_hw_tls.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
en_hw_tls_rx.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
en_rl.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
mlx5_en_dim.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
mlx5_en_ethtool.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
mlx5_en_flow_table.c mlx5: Use software enum in APIs instead of PRM 2023-11-16 01:08:16 +02:00
mlx5_en_hw_tls.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
mlx5_en_hw_tls_rx.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
mlx5_en_iq.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
mlx5_en_main.c powerof2: replace loops with fls or ilog2 2024-06-12 05:00:48 -05:00
mlx5_en_port_buffer.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
mlx5_en_rl.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
mlx5_en_rx.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
mlx5_en_tx.c mlx4, mlx5: Eliminate redundent NULL check for packet filter 2024-05-28 12:46:04 +08:00
mlx5_en_txrx.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
port_buffer.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00