<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/iscsi, branch releng/12.4</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.4</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.4'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2022-07-27T19:21:13Z</updated>
<entry>
<title>Fix unused variable warning in icl_soft.c</title>
<updated>2022-07-27T19:21:13Z</updated>
<author>
<name>Dimitry Andric</name>
<email>dim@FreeBSD.org</email>
</author>
<published>2022-07-24T20:54:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f14c6e0789b990c5df40f6b09015ba17ec1e3f6d'/>
<id>urn:sha1:f14c6e0789b990c5df40f6b09015ba17ec1e3f6d</id>
<content type='text'>
With clang 15, the following -Werror warning is produced:

    sys/dev/iscsi//icl_soft.c:886:6: error: variable 'coalesced' set but not used [-Werror,-Wunused-but-set-variable]
            int coalesced, error;
                ^

The 'coalesced' variable is eventually used only in an #if 0'd block,
obviously meant for debugging. Ensure that 'coalesced' is only declared
and used when DEBUG_COALESCED is defined, so the debugging can be easily
turned on later, if desired.

MFC after:	3 days

(cherry picked from commit f4f847018048ac7699b55bc1915a393eb65e4c53)
</content>
</entry>
<entry>
<title>isci(4): Remove a double word in an error message</title>
<updated>2022-04-10T05:54:28Z</updated>
<author>
<name>Gordon Bergling</name>
<email>gbe@FreeBSD.org</email>
</author>
<published>2022-04-03T14:07:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e8fcdf9de5d3a75f05a196d267508b0785b253d9'/>
<id>urn:sha1:e8fcdf9de5d3a75f05a196d267508b0785b253d9</id>
<content type='text'>
- s/is is/is/

(cherry picked from commit 756220b5152526a5a89ca16df31d8acf0a7795bb)
</content>
</entry>
<entry>
<title>Unify zlib instances into one.</title>
<updated>2022-04-10T04:16:24Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2019-08-25T17:13:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=254a1740cde85300587fcf4e3ad3b91453fa5d09'/>
<id>urn:sha1:254a1740cde85300587fcf4e3ad3b91453fa5d09</id>
<content type='text'>
This is a cumulative update that consists 14 commits on main by
Yoshihiro Ota and myself to stable/12:

Remove gzip'ed a.out support.

(cherry picked from commit d4565741c6b4b256bd30aea8eb74e8a267cf6b60)

Delete unneeded #include &lt;sys/inflate.h&gt; from sys/mips.

(cherry picked from commit 880c6c1b06d203fd6b628d313b5b2658fb7135cb)

cryptodeflate: Drop z_stream zbuf.state-&gt;dummy from SDT probe.

(cherry picked from commit a49818787d7cff34b9ea9878e37c1c1ba221f081)

Remove kgzip and kgzldr.

(cherry picked from commit 5e86bd6073a2fb107318691aaa27b7e19bd45c24)

Separate kernel crc32() implementation to its own header (gsb_crc32.h) and
rename the source to gsb_crc32.c.

(cherry picked from commit f89d2072795407d7c3afff865b988e021c1451a2)

Allow Kernel to link in both legacy libkern/zlib and new sys/contrib/zlib.

(cherry picked from commit 0ed1d6fb00b8f22c82c3f9054c6dd16eb12469d2)

if_mxge: update zlib version 1.0.4 to 1.2.12.

(cherry picked from commit 1dbf944a91cfccba2c18fa273f69985cd15a5081)

Expose zlib's utility functions in Z_SOLO library when building kernel.
This allows kernel code to reuse zlib's implementation.

(cherry picked from commit a15cb219c6f2b8ed16179c2fce882a2ff327b753)

Update geom_uzip to use new zlib.

(cherry picked from commit 2b0cabbdaeac61bdb07909cb0ec995aba36e06b0)

Update bxe(4) to use new zlib.

(cherry picked from commit 92e9c0608bf161df04d14160084da2d50bcad30e)

Convert DDB_CTF to use newer version of ZLIB.

(cherry picked from commit 22bbc4b24270ec55c267a5b4ca4530991c3da408)

Convert ng_deflate to use new zlib.

(cherry picked from commit 34ff55b662d62adea206cb2b77bb064110f68e6d)

GZIO: Update to use zlib 1.2.12.

(cherry picked from commit 4e8671dd78cc77b31c598e83354fa6722acd4e3f)

Remove zlib 1.0.4 from kernel.

(cherry picked from commit 21aae72489aba9f1711c51672b3003cf8d54965d)

PR:		205822
PR:		229763
</content>
</entry>
<entry>
<title>Make software iSCSI more configurable.</title>
<updated>2021-03-15T03:00:38Z</updated>
<author>
<name>Alexander Motin</name>
<email>mav@FreeBSD.org</email>
</author>
<published>2021-01-28T20:53:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3ef86cd7c3ccef27d42bb7cbdecd41f0fdd81f69'/>
<id>urn:sha1:3ef86cd7c3ccef27d42bb7cbdecd41f0fdd81f69</id>
<content type='text'>
Move software iSCSI tunables/sysctls into kern.icl.soft subtree.
Replace several hardcoded length constants there with variables.

While there, stretch the limits to better match Linux' open-iscsi
and our own initiator with new MAXPHYS of 1MB.  Our CTL target is
also optimized for up to 1MB I/Os, so there is also a match now.
For Windows 10 and VMware 6.7 initiators at default settings it
should make no change, since previous limits were sufficient there.

Tests of QD1 1MB writes from FreeBSD over 10GigE link show throughput
increase by 29% on idle connection and 132% with concurrent QD8 reads.

MFC after:	3 days
Sponsored by:	iXsystems, Inc.

(cherry picked from commit b75168ed24ca74f65929e5c57d4fed5f0ab08f2a)
</content>
</entry>
<entry>
<title>Move ic_check_send_space clear to the actual check.</title>
<updated>2021-03-15T02:54:56Z</updated>
<author>
<name>Alexander Motin</name>
<email>mav@FreeBSD.org</email>
</author>
<published>2021-03-03T20:21:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6cd4542786f929ea57604662d7d5537f13261382'/>
<id>urn:sha1:6cd4542786f929ea57604662d7d5537f13261382</id>
<content type='text'>
It closes tiny race when the flag could be set between being cleared
and the space is checked, that would create us some more work.  The
flag setting is protected by both locks, so we can clear it in either
place, but in between both locks are dropped.

MFC after:	1 week

(cherry picked from commit afc3e54eeee635a525c88e4678cc38e3219302c3)
</content>
</entry>
<entry>
<title>Restore condition removed in df3747c6607b.</title>
<updated>2021-03-15T02:54:45Z</updated>
<author>
<name>Alexander Motin</name>
<email>mav@FreeBSD.org</email>
</author>
<published>2021-03-03T16:58:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2cd7a99cebafb932fc91e5a1c20cde1d4000f4c5'/>
<id>urn:sha1:2cd7a99cebafb932fc91e5a1c20cde1d4000f4c5</id>
<content type='text'>
I think it allowed to avoid some TX thread wakeups while the socket
buffer is full.  But add there another options if ic_check_send_space
is set, which means socket just reported that new space appeared, so
it may have sense to pull more data from ic_to_send for better TX
coalescing.

MFC after:	1 week

(cherry picked from commit aff9b9ee894e3e6b6d8c7e4182d6b973804df853)
</content>
</entry>
<entry>
<title>Replace STAILQ_SWAP() with simpler STAILQ_CONCAT().</title>
<updated>2021-03-15T02:54:34Z</updated>
<author>
<name>Alexander Motin</name>
<email>mav@FreeBSD.org</email>
</author>
<published>2021-03-02T23:39:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=cec95c50654097b8cb8e595abda7cae7a01d5884'/>
<id>urn:sha1:cec95c50654097b8cb8e595abda7cae7a01d5884</id>
<content type='text'>
Also remove stray STAILQ_REMOVE_AFTER(), not causing problems only
because STAILQ_SWAP() fixed corrupted stqh_last.

MFC after:	1 week

(cherry picked from commit df3747c6607be12d48db825653e6adfc3041e97f)
</content>
</entry>
<entry>
<title>Fix initiator panic after 6895f89fe54e.</title>
<updated>2021-03-15T02:53:14Z</updated>
<author>
<name>Alexander Motin</name>
<email>mav@FreeBSD.org</email>
</author>
<published>2021-03-02T21:07:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=cb89ac5a1daa7dd8d2306460ecbf5d8dac90b9a2'/>
<id>urn:sha1:cb89ac5a1daa7dd8d2306460ecbf5d8dac90b9a2</id>
<content type='text'>
There are sessions without socket that are not disconnecting yet.

MFC after:	3 weeks

(cherry picked from commit 06e9c710998b83a3be21f7f264187fff5d590bc3)
</content>
</entry>
<entry>
<title>Optimize TX coalescing by keeping pointer to last mbuf.</title>
<updated>2021-03-15T02:52:57Z</updated>
<author>
<name>Alexander Motin</name>
<email>mav@FreeBSD.org</email>
</author>
<published>2021-03-02T04:31:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3034c0dab755d29eb24d0187cfc00501b660a9c1'/>
<id>urn:sha1:3034c0dab755d29eb24d0187cfc00501b660a9c1</id>
<content type='text'>
Before m_cat() each time traversed through all the coalesced chain.

MFC after:	1 week

(cherry picked from commit b85a67f54a40053e75658a17c620b89bafaba67f)
</content>
</entry>
<entry>
<title>Coalesce socket reads in software iSCSI.</title>
<updated>2021-03-15T02:45:25Z</updated>
<author>
<name>Alexander Motin</name>
<email>mav@FreeBSD.org</email>
</author>
<published>2021-02-22T17:23:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6469aab051dee71c88e27aa906c18efa09e77189'/>
<id>urn:sha1:6469aab051dee71c88e27aa906c18efa09e77189</id>
<content type='text'>
Instead of 2-4 socket reads per PDU this can do as low as one read
per megabyte, dramatically reducing TCP overhead and lock contention.

With this on iSCSI target I can write more than 4GB/s through a
single connection.

MFC after:	1 month

(cherry picked from commit 6895f89fe54e0858aea70d2bd2a9651f45d7998e)
</content>
</entry>
</feed>
