<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/qlnx, branch releng/14.3</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>log2: move log2 functions from linuxkpi to libkern</title>
<updated>2025-02-10T10:29:23+00:00</updated>
<author>
<name>Doug Moore</name>
<email>dougm@FreeBSD.org</email>
</author>
<published>2024-06-24T07:00:31+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=6f309b9d5654b0ddada8d66c23ce028ba009dbcd'/>
<id>6f309b9d5654b0ddada8d66c23ce028ba009dbcd</id>
<content type='text'>
Linux has a header file that defines an ilog2 function and some simple
functions/macros that use it: roundup_pow_of_two, is_power_of_2,
rounddown_pow_of_two, and order_base_2.  This change moves three of
those simple functions (all but is_power_of_2) from linuxkpi to
libkern.  It also deletes a few implementations of these functions
that have previously been copied into code for various device drivers,
so that they can use the libkern version.  The is_power_of_2 macro was
not moved because powerof2 in param.h provides almost the same service
already (except that they disagree about whether 0 is a power of two).

Since the linux definitions of these functions were copied into
FreeBSD 11 years ago, linux has improved them, and this change
provides those improvements.  In particular, a giant table of log
values for evaluating ilog2 for constant values is no longer
necessary.

Reviewed by:	alc, markj (previous version)
Differential Revision:	https://reviews.freebsd.org/D45536

(cherry picked from commit c8b0c33b03ac072413b27bed2bdae2ae27426f3a)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Linux has a header file that defines an ilog2 function and some simple
functions/macros that use it: roundup_pow_of_two, is_power_of_2,
rounddown_pow_of_two, and order_base_2.  This change moves three of
those simple functions (all but is_power_of_2) from linuxkpi to
libkern.  It also deletes a few implementations of these functions
that have previously been copied into code for various device drivers,
so that they can use the libkern version.  The is_power_of_2 macro was
not moved because powerof2 in param.h provides almost the same service
already (except that they disagree about whether 0 is a power of two).

Since the linux definitions of these functions were copied into
FreeBSD 11 years ago, linux has improved them, and this change
provides those improvements.  In particular, a giant table of log
values for evaluating ilog2 for constant values is no longer
necessary.

Reviewed by:	alc, markj (previous version)
Differential Revision:	https://reviews.freebsd.org/D45536

(cherry picked from commit c8b0c33b03ac072413b27bed2bdae2ae27426f3a)
</pre>
</div>
</content>
</entry>
<entry>
<title>qlnxe: Allow MAC address override</title>
<updated>2024-08-13T19:34:10+00:00</updated>
<author>
<name>Keith Reynolds</name>
<email>keith.reynolds@hpe.com</email>
</author>
<published>2024-08-05T19:10:18+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=a9376f5caf1cdcee074601dbd838a1c5450e283c'/>
<id>a9376f5caf1cdcee074601dbd838a1c5450e283c</id>
<content type='text'>
The qlnxe driver always sets the NIC's rx mac address to the card's
default MAC, ignoring any MAC address set via ifconfig.

PR:		278085

(cherry picked from commit 792226e53023cb09566cb78b2135b052e9b62e0e)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The qlnxe driver always sets the NIC's rx mac address to the card's
default MAC, ignoring any MAC address set via ifconfig.

PR:		278085

(cherry picked from commit 792226e53023cb09566cb78b2135b052e9b62e0e)
</pre>
</div>
</content>
</entry>
<entry>
<title>net: Remove unneeded NULL check for the allocated ifnet</title>
<updated>2024-07-12T12:03:37+00:00</updated>
<author>
<name>Zhenlei Huang</name>
<email>zlei@FreeBSD.org</email>
</author>
<published>2024-06-28T10:16:29+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=6b1f530935c5f84ec65dad87b7c20c6b7a72a6d3'/>
<id>6b1f530935c5f84ec65dad87b7c20c6b7a72a6d3</id>
<content type='text'>
Change 4787572d0580 made if_alloc_domain() never fail, then also do the
wrappers if_alloc(), if_alloc_dev(), and if_gethandle().

No functional change intended.

Reviewed by:	kp, imp, glebius, stevek
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D45740

(cherry picked from commit aa3860851b9f6a6002d135b1cac7736e0995eedc)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change 4787572d0580 made if_alloc_domain() never fail, then also do the
wrappers if_alloc(), if_alloc_dev(), and if_gethandle().

No functional change intended.

Reviewed by:	kp, imp, glebius, stevek
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D45740

(cherry picked from commit aa3860851b9f6a6002d135b1cac7736e0995eedc)
</pre>
</div>
</content>
</entry>
<entry>
<title>qlnx: Use device_set_descf()</title>
<updated>2024-06-09T13:37:53+00:00</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2024-02-04T23:46:51+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=dd8575e19ae02e7e8a10abd8592ac764263e9176'/>
<id>dd8575e19ae02e7e8a10abd8592ac764263e9176</id>
<content type='text'>
No functional change intended.

MFC after:	1 week

(cherry picked from commit 801b12ba89af6377e30c15b9b68443f0d60d50bf)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
No functional change intended.

MFC after:	1 week

(cherry picked from commit 801b12ba89af6377e30c15b9b68443f0d60d50bf)
</pre>
</div>
</content>
</entry>
<entry>
<title>qlnxe: Fix multiple locking issues</title>
<updated>2024-06-07T05:49:04+00:00</updated>
<author>
<name>Keith Reynolds</name>
<email>keith.reynolds@hpe.com</email>
</author>
<published>2024-05-28T06:41:05+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=101f1a88de95093c8061db391ba0d205a575f874'/>
<id>101f1a88de95093c8061db391ba0d205a575f874</id>
<content type='text'>
Multiple issues are reported with WITNESS and code inspection of the
locking and lock initialization.

PR:		278084

(cherry picked from commit 1c45a62a2f667b45ec10a92ad58ff5a34e68b569)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Multiple issues are reported with WITNESS and code inspection of the
locking and lock initialization.

PR:		278084

(cherry picked from commit 1c45a62a2f667b45ec10a92ad58ff5a34e68b569)
</pre>
</div>
</content>
</entry>
<entry>
<title>qlnxe: Fix promiscuous and allmulti settings</title>
<updated>2024-06-07T05:48:48+00:00</updated>
<author>
<name>Keith Reynolds</name>
<email>keith.reynolds@hpe.com</email>
</author>
<published>2024-05-28T05:57:44+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e4f48fc20b56df8a03ab63fb867f49bfcc0e7eae'/>
<id>e4f48fc20b56df8a03ab63fb867f49bfcc0e7eae</id>
<content type='text'>
PR:		278087

(cherry picked from commit e3ec564ecb9c2daa96a8db36052e50ea554fe598)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PR:		278087

(cherry picked from commit e3ec564ecb9c2daa96a8db36052e50ea554fe598)
</pre>
</div>
</content>
</entry>
<entry>
<title>qlnx: qlnxe: Fix kernel address leakage</title>
<updated>2024-06-07T05:48:21+00:00</updated>
<author>
<name>Fuqian Huang</name>
<email>huangfq.daxian@gmail.com</email>
</author>
<published>2024-05-28T05:45:52+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e84a661d5418790ac89113aa21d87901c627529f'/>
<id>e84a661d5418790ac89113aa21d87901c627529f</id>
<content type='text'>
In function qlnx_rdma_deregister_if,
the address of object rdma_if will be printed out.
rdma_if is the address of a global variable qlnxr_drv,
which is passed from dev/qlnx/qlnxr/qlnxr_os.c
A kernel address leakage happens.
Fix this by removing the printf statement.

PR:		238646

(cherry picked from commit 9370f49ad1c4625cd73c4d84d3e42ed3e20fabbf)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In function qlnx_rdma_deregister_if,
the address of object rdma_if will be printed out.
rdma_if is the address of a global variable qlnxr_drv,
which is passed from dev/qlnx/qlnxr/qlnxr_os.c
A kernel address leakage happens.
Fix this by removing the printf statement.

PR:		238646

(cherry picked from commit 9370f49ad1c4625cd73c4d84d3e42ed3e20fabbf)
</pre>
</div>
</content>
</entry>
<entry>
<title>qlnx: Fix a couple of type mismatches in function declarations</title>
<updated>2024-01-03T17:43:48+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2023-11-15T02:37:06+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=bf63f0e7e3ffc07bc9de3601cc1d396417051821'/>
<id>bf63f0e7e3ffc07bc9de3601cc1d396417051821</id>
<content type='text'>
Reported by:	GCC 13 via -Wenum-int-mismatch
Reviewed by:	imp, emaste
Differential Revision:	https://reviews.freebsd.org/D42586

(cherry picked from commit be909a79a8e2506b49ed81f9bd8115512dd613a4)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reported by:	GCC 13 via -Wenum-int-mismatch
Reviewed by:	imp, emaste
Differential Revision:	https://reviews.freebsd.org/D42586

(cherry picked from commit be909a79a8e2506b49ed81f9bd8115512dd613a4)
</pre>
</div>
</content>
</entry>
<entry>
<title>sys: Remove $FreeBSD$: one-line .c pattern</title>
<updated>2023-08-16T17:54:36+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:36+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=685dc743dc3b5645e34836464128e1c0558b404b'/>
<id>685dc743dc3b5645e34836464128e1c0558b404b</id>
<content type='text'>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
</pre>
</div>
</content>
</entry>
<entry>
<title>sys: Remove $FreeBSD$: one-line .h pattern</title>
<updated>2023-08-16T17:54:18+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:18+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=2ff63af9b88c7413b7d71715b5532625752a248e'/>
<id>2ff63af9b88c7413b7d71715b5532625752a248e</id>
<content type='text'>
Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/
</pre>
</div>
</content>
</entry>
</feed>
