opnsense-src/sys/dev/cxgbe
Doug Moore feeeb1c7a1 libkern: add ilog2 macro
The kernel source contains several definitions of an ilog2 function;
some are slower than necessary, and one of them is incorrect.
Elimininate them all and define an ilog2 macro in libkern to replace
them, in a way that is fast, correct for all argument types, and, in a
GENERIC kernel, includes a check for an invalid zero parameter.

Folks at Microsoft have verified that having a correct ilog2
definition for their MANA driver doesn't break it.

Reviewed by:	alc, markj, mhorne (older version), jhibbits (older version)
Differential Revision:	https://reviews.freebsd.org/D45170
Differential Revision:	https://reviews.freebsd.org/D45235

(cherry picked from commit b0056b31e90029553894d17c441cbb2c06d31412)
2025-02-18 10:44:00 +01:00
..
common cxgbe(4): Consolidate all mk_set_tcb_field_ulp in one place. 2024-07-16 23:39:43 -07:00
crypto cxgbe(4): Rename rx_c_chan to rx_chan. 2024-07-16 23:38:40 -07:00
cudbg sys: Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:17 -06:00
cxgbei cxgbe(4): Changes to ULD list management. 2024-10-21 10:00:26 -07:00
firmware cxgbe(4): Update firmwares to 1.27.5.0 2024-01-10 21:22:31 -08:00
iw_cxgbe cxgbe/iw_cxgbe: Fail early in some callbacks when the RNIC is stopped. 2024-10-21 10:08:56 -07:00
tom cxgbe(4): Allow t4_tom to be unloaded safely. 2024-10-21 10:15:11 -07:00
adapter.h cxgbe(4): Allow t4_tom to be unloaded safely. 2024-10-21 10:15:11 -07:00
if_cc.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
if_ccv.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
if_cxl.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
if_cxlv.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
offload.h cxgbe/t4_tom: Implement uld_stop and uld_restart for ULD_TOM. 2024-10-21 10:03:14 -07:00
osdep.h libkern: add ilog2 macro 2025-02-18 10:44:00 +01:00
t4_clip.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
t4_clip.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
t4_filter.c cxgbe(4): Consolidate all mk_set_tcb_field_ulp in one place. 2024-07-16 23:39:43 -07:00
t4_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
t4_ioctl.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
t4_iov.c cxgbe: handle vlan PF restrictions 2024-07-01 18:06:16 +02:00
t4_l2t.c cxgbe(4): Stop and restart the L2T allocator with the LLD. 2024-10-21 10:02:17 -07:00
t4_l2t.h cxgbe(4): Stop and restart the L2T allocator with the LLD. 2024-10-21 10:02:17 -07:00
t4_main.c cxgbe: Add a 'show t4 memdump' DDB command 2024-10-21 11:49:27 -07:00
t4_mp_ring.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
t4_mp_ring.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
t4_netmap.c cxgbe: Flush transmitted packets more regularly in netmap mode 2024-08-08 15:55:48 +00:00
t4_sched.c cxgbe(4): sc->port is indexed by port_id and not tx_chan. 2024-07-16 23:39:32 -07:00
t4_sge.c cxgbe(4): Stop work request queues in a reliable manner. 2024-10-21 10:06:19 -07:00
t4_smt.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
t4_smt.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
t4_tracer.c net: Remove unneeded NULL check for the allocated ifnet 2024-07-12 20:03:37 +08:00
t4_vf.c cxgbev(4): Pay attention to the VLAN configuration for the VF. 2024-07-01 18:08:17 +02:00