<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/mlx4, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2026-02-08T12:01:27Z</updated>
<entry>
<title>mlx(4): Fix a typo in a source code comment</title>
<updated>2026-02-08T12:01:27Z</updated>
<author>
<name>Gordon Bergling</name>
<email>gbe@FreeBSD.org</email>
</author>
<published>2026-02-08T12:01:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3e46676638ac089c71e8424961449895c0babcfb'/>
<id>urn:sha1:3e46676638ac089c71e8424961449895c0babcfb</id>
<content type='text'>
- s/segements/segments/

MFC after:	3 days
</content>
</entry>
<entry>
<title>mlx4ib(4): Fix some typos in device messages</title>
<updated>2025-02-05T10:31:12Z</updated>
<author>
<name>Gordon Bergling</name>
<email>gbe@FreeBSD.org</email>
</author>
<published>2025-02-05T10:31:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=84e3ffac12a8dcfeae0a5e0b25afe447ff2d5fa8'/>
<id>urn:sha1:84e3ffac12a8dcfeae0a5e0b25afe447ff2d5fa8</id>
<content type='text'>
- s/availible/available/

MFC after:	5 days
</content>
</entry>
<entry>
<title>mlx4: use is_power_of_2</title>
<updated>2024-09-28T21:23:17Z</updated>
<author>
<name>Doug Moore</name>
<email>dougm@FreeBSD.org</email>
</author>
<published>2024-09-28T21:23:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3873b9a8b3a51731e5db92ab0c5c59797e416015'/>
<id>urn:sha1:3873b9a8b3a51731e5db92ab0c5c59797e416015</id>
<content type='text'>
It's faster to use is_power_of_2 than it is to compute
roundup_power_of_two and then compare.  So do that.

Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D46838
</content>
</entry>
<entry>
<title>roundup_pow_of_two: don't take the log of it</title>
<updated>2024-09-28T17:00:06Z</updated>
<author>
<name>Doug Moore</name>
<email>dougm@FreeBSD.org</email>
</author>
<published>2024-09-28T17:00:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c44fbfdb56862c4c8d2563483b4fff8f9a5a1d43'/>
<id>urn:sha1:c44fbfdb56862c4c8d2563483b4fff8f9a5a1d43</id>
<content type='text'>
Based on the definitions, ilog2(roundup_pow_of_two(x)) ==
order_base_2(x). Replace the former with the latter in a few places to
save a few calculations.

Reviewed by:	bz, kib
Differential Revision:	https://reviews.freebsd.org/D46827
</content>
</entry>
<entry>
<title>net: Remove unneeded NULL check for the allocated ifnet</title>
<updated>2024-06-28T10:16:29Z</updated>
<author>
<name>Zhenlei Huang</name>
<email>zlei@FreeBSD.org</email>
</author>
<published>2024-06-28T10:16:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=aa3860851b9f6a6002d135b1cac7736e0995eedc'/>
<id>urn:sha1:aa3860851b9f6a6002d135b1cac7736e0995eedc</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
</content>
</entry>
<entry>
<title>mlx4, mlx5: Eliminate redundent NULL check for packet filter</title>
<updated>2024-05-28T04:46:04Z</updated>
<author>
<name>Zhenlei Huang</name>
<email>zlei@FreeBSD.org</email>
</author>
<published>2024-05-28T04:46:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2439ae948352766f6b993c5103a4c516376bec28'/>
<id>urn:sha1:2439ae948352766f6b993c5103a4c516376bec28</id>
<content type='text'>
mlx4 and mlx5 are Ethernet devices and ether_ifattach() does an
unconditional bpfattach(). From commit 16d878cc99ef [1] and on, we
should not check ifp-&gt;if_bpf to tell us whether or not we have any bpf
peers that might be interested in receiving packets. And since commit
2b9600b4497b [2], ifp-&gt;if_bpf can not be NULL even after the network
interface has been detached.

No functional change intended.

1. 16d878cc99ef Fix the following bpf(4) race condition which can result in a panic
2. 2b9600b4497b Add dead_bpf_if structure, that should be used as fake bpf_if during ifnet detach

Reviewed by:	kp, kib
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45196
</content>
</entry>
<entry>
<title>linuxkpi: spinlock: Simplify code</title>
<updated>2024-05-16T07:39:36Z</updated>
<author>
<name>Emmanuel Vadot</name>
<email>manu@FreeBSD.org</email>
</author>
<published>2024-05-15T09:00:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ae38a1a1bfdf320089c254e4dbffdf4769d89110'/>
<id>urn:sha1:ae38a1a1bfdf320089c254e4dbffdf4769d89110</id>
<content type='text'>
Just use a typedef for spinlock_t, no need to create a useless
structure.

Reviewed by:		bz, emaste
Sponsored by:		Beckhoff Automation GmbH &amp; Co. KG
Differential Revision:	https://reviews.freebsd.org/D45205
</content>
</entry>
<entry>
<title>mlx4(5): fix driver initialization</title>
<updated>2023-12-23T20:53:02Z</updated>
<author>
<name>Yuji Hagiwara</name>
<email>yuuzi41@hotmail.com</email>
</author>
<published>2023-12-23T20:53:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=553ed8e38bfdd4832deecdec1c0b023824dcff94'/>
<id>urn:sha1:553ed8e38bfdd4832deecdec1c0b023824dcff94</id>
<content type='text'>
After netlinkification, ether_ifattach() requires ifmedia_init() to be
done before it.

PR:	275897
MFC after:	1 week
</content>
</entry>
<entry>
<title>mlx4en(4): add missing newline to debug messages</title>
<updated>2023-06-18T04:14:41Z</updated>
<author>
<name>Kevin Lo</name>
<email>kevlo@FreeBSD.org</email>
</author>
<published>2023-06-18T04:14:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4d5842c020a0d3ef64e34ce8f3a00d8dcb550bfa'/>
<id>urn:sha1:4d5842c020a0d3ef64e34ce8f3a00d8dcb550bfa</id>
<content type='text'>
Add newline to debug messages after dumping uar_page_shift and reserved_uars.

Reviewed by:	hselasky
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D40582
</content>
</entry>
<entry>
<title>Revert "mlx4: Move DEFINE_MUTEX() outside function body."</title>
<updated>2023-05-22T10:53:38Z</updated>
<author>
<name>Hans Petter Selasky</name>
<email>hselasky@FreeBSD.org</email>
</author>
<published>2023-05-22T10:52:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=47c887be4af7553a3fae05009516a904dfa2617e'/>
<id>urn:sha1:47c887be4af7553a3fae05009516a904dfa2617e</id>
<content type='text'>
Requested by:	jrtc27@

This reverts commit 805d759338a2be939fffc8bf3f25cfaab981a9be.
</content>
</entry>
</feed>
