<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/ofed, branch release/14.3.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F14.3.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F14.3.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2024-07-15T12:28:53Z</updated>
<entry>
<title>ibcore: Mark write-only variables</title>
<updated>2024-07-15T12:28:53Z</updated>
<author>
<name>Andrew Turner</name>
<email>andrew@FreeBSD.org</email>
</author>
<published>2024-06-12T13:04:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=77d05874de8eaa05725b414b7217becdb85ed037'/>
<id>urn:sha1:77d05874de8eaa05725b414b7217becdb85ed037</id>
<content type='text'>
Some LinuxKPI lock macros pass need a flags field passed in. This is
written to but never read from so gcc complains.

Fix this by marking the flags variables as unused to quieten the
compiler.

Reviewed by:	brooks (earlier version), kib
Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D45303

(cherry picked from commit 19782e5bef3403a6ed65d46653f2e70f81dced37)
</content>
</entry>
<entry>
<title>net: Remove unneeded NULL check for the allocated ifnet</title>
<updated>2024-07-12T12:03:37Z</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=6b1f530935c5f84ec65dad87b7c20c6b7a72a6d3'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>ibcore: Introduce enum ib_raw_packet_caps from Linux 4.11</title>
<updated>2023-11-04T19:22:18Z</updated>
<author>
<name>Ka Ho Ng</name>
<email>khng@FreeBSD.org</email>
</author>
<published>2023-10-28T20:57:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ae0620c41f9cdd837417b967fff1ce04f4bf0032'/>
<id>urn:sha1:ae0620c41f9cdd837417b967fff1ce04f4bf0032</id>
<content type='text'>
This enum also exists as enum ibv_raw_packet_caps in libibverbs/verbs.h.

[khng: cherry-picked from Linux
ebaaee253ad3a3c573ab7d3d77e849056bdfa9ea]

Sponsored by:	Juniper Networks, Inc.
MFC after:	7 days
Reviewed by:	kib, zlei
Differential Revision:	https://reviews.freebsd.org/D42177

(cherry picked from commit a69b6af2024fdd501b4bbc674092fb2b6d466364)
</content>
</entry>
<entry>
<title>ofed: mask seq_num identifier to occupy only 3 bytes</title>
<updated>2023-08-22T23:09:13Z</updated>
<author>
<name>Bartosz Sobczak</name>
<email>bartosz.sobczak@intel.com</email>
</author>
<published>2023-08-22T23:07:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c7f73a1588dc58db28100fcbc1d72a830b674b34'/>
<id>urn:sha1:c7f73a1588dc58db28100fcbc1d72a830b674b34</id>
<content type='text'>
The seq_num among other things is used to assign rq_psn value, which is
a 24-bit identifier.  When the seq_num is full 4-byte value, we are
usually receiving: '_ib_modify_qp rq_psn overflow, masking to 24 bits'
warning.

This is burdensome for running rdma traffic with large number of
connections, because the number of logs is growing fast.

Signed-off-by: Bartosz Sobczak &lt;bartosz.sobczak@intel.com&gt;
Signed-off-by: Eric Joyner &lt;erj@FreeBSD.org&gt;

Reviewed by:	kib@, erj@
MFC after:	3 days
Sponsored by:	Intel Corporation
Differential Revision:	https://reviews.freebsd.org/D41531
</content>
</entry>
<entry>
<title>sys: Remove $FreeBSD$: one-line .c pattern</title>
<updated>2023-08-16T17:54:36Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=685dc743dc3b5645e34836464128e1c0558b404b'/>
<id>urn:sha1:685dc743dc3b5645e34836464128e1c0558b404b</id>
<content type='text'>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
</content>
</entry>
<entry>
<title>sys: Remove $FreeBSD$: two-line .h pattern</title>
<updated>2023-08-16T17:54:11Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=95ee2897e98f5d444f26ed2334cc7c439f9c16c6'/>
<id>urn:sha1:95ee2897e98f5d444f26ed2334cc7c439f9c16c6</id>
<content type='text'>
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
</content>
</entry>
<entry>
<title>ofed: fix roce gid insertion for vlan interfaces</title>
<updated>2023-08-14T15:53:43Z</updated>
<author>
<name>Bartosz Sobczak</name>
<email>bartosz.sobczak@intel.com</email>
</author>
<published>2023-08-14T15:49:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8e6654a6a5511da87de03a91c527e1d7ad006c21'/>
<id>urn:sha1:8e6654a6a5511da87de03a91c527e1d7ad006c21</id>
<content type='text'>
When attempting to use vlan interface the correct GID
wasn't created due to incorrect ifp validation.

The problem was introduced in
3e142e07675b ('ofed: Mechanically convert to IfAPI)

Signed-off-by: Bartosz Sobczak bartosz.sobczak@intel.com
Signed-off-by: Eric Joyner &lt;erj@FreeBSD.org&gt;

PR:		273043
Sponsored by:	Intel Corporation
Reviewed by:	jhibbits@, erj@
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D41426
</content>
</entry>
<entry>
<title>spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD</title>
<updated>2023-05-12T16:44:03Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-05-10T15:40:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4d846d260e2b9a3d4d0a701462568268cbfe7a5b'/>
<id>urn:sha1:4d846d260e2b9a3d4d0a701462568268cbfe7a5b</id>
<content type='text'>
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with:		pfg
MFC After:		3 days
Sponsored by:		Netflix
</content>
</entry>
<entry>
<title>ofed: Fix a logic inversion from IfAPI conversion</title>
<updated>2023-04-19T15:56:25Z</updated>
<author>
<name>Justin Hibbits</name>
<email>jhibbits@FreeBSD.org</email>
</author>
<published>2023-04-19T15:21:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=12e99b63d2fae07fc54e53d9187a3995a2005ec9'/>
<id>urn:sha1:12e99b63d2fae07fc54e53d9187a3995a2005ec9</id>
<content type='text'>
Reported by:	bartosz.sobczak_intel.com
Fixes:		3e142e07675b ("ofed: Mechanically convert to IfAPI")
Sponsored by:	Juniper Networks, Inc.
</content>
</entry>
<entry>
<title>net: replace IFF_KNOWSEPOCH with IFF_NEEDSEPOCH</title>
<updated>2023-04-17T16:08:35Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2023-04-17T16:08:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a6b55ee6be15a41792839095d19b589e25d0f7f7'/>
<id>urn:sha1:a6b55ee6be15a41792839095d19b589e25d0f7f7</id>
<content type='text'>
Expect that drivers call into the network stack with the net epoch
entered. This has already been the fact since early 2020. The net
interrupts, that are marked with INTR_TYPE_NET, were entering epoch
since 511d1afb6bf. For the taskqueues there is NET_TASK_INIT() and
all drivers that were known back in 2020 we marked with it in
6c3e93cb5a4. However in e87c4940156 we took conservative approach
and preferred to opt-in rather than opt-out for the epoch.

This change not only reverts e87c4940156 but adds a safety belt to
avoid panicing with INVARIANTS if there is a missed driver. With
INVARIANTS we will run in_epoch() check, print a warning and enter
the net epoch.  A driver that prints can be quickly fixed with the
IFF_NEEDSEPOCH flag, but better be augmented to properly enter the
epoch itself.

Note on TCP LRO: it is a backdoor to enter the TCP stack bypassing
some layers of net stack, ignoring either old IFF_KNOWSEPOCH or the
new IFF_NEEDSEPOCH.  But the tcp_lro_flush_all() asserts the presence
of network epoch.  Indeed, all NIC drivers that support LRO already
provide the epoch, either with help of INTR_TYPE_NET or just running
NET_EPOCH_ENTER() in their code.

Reviewed by:		zlei, gallatin, erj
Differential Revision:	https://reviews.freebsd.org/D39510
</content>
</entry>
</feed>
