<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/source/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in devmem_lib.py</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>6cac32fc3f1f8e5c6698b8eb88ae541d3c332584 - selftests: drv-net: refactor devmem command builders into lib module</title>
        <link>http://kernelsources.org:8080/source/history/linux/tools/testing/selftests/drivers/net/hw/devmem_lib.py#6cac32fc3f1f8e5c6698b8eb88ae541d3c332584</link>
        <description>selftests: drv-net: refactor devmem command builders into lib moduleAdding netkit-based devmem tests is a straight-forward copy of devmemtest commands plus some args for the nk cases, so this patch breaks outthese command builders into helpers used by both.Though we tried to avoid libraries to avoid increasing the barrier ofentry/complexity (see selftests/drivers/net/README.md, section &quot;Avoidlibraries and frameworks&quot;), factoring out these functions seemed likethe lesser of two evils in this case of using the same commands, justwith slightly different args per environment.I experimented with just having all of the tests in the same file toavoid having helpers in a library file, but because ksft_run() islimited to a single call per file, and the new tests will requiredifferent environments (NetDrvContEnv/NetDrvEpEnv), it would have beennecessary to have each test set up its own environment instead ofsharing one for the entire ksft_run() run. This came at the cost ofballooning the test time (from under 5s to 30s on my test system), so tostrike a balance these tests were placed in separate files so they couldkeep a shared environment across a single ksft_run() run shared acrossall tests using the same env type (introduced in subsequent patches).The helpers work transparently with both plain and netkit environmentsby inspecting cfg for netkit-specific attributes (netns, nk_queue,etc...).Acked-by: Stanislav Fomichev &lt;sdf@fomichev.me&gt;Signed-off-by: Bobby Eshleman &lt;bobbyeshleman@meta.com&gt;Link: https://patch.msgid.link/20260514-tcp-dm-netkit-v5-6-408c59b91e66@meta.comSigned-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;

            List of files:
            /linux/tools/testing/selftests/drivers/net/hw/devmem_lib.py</description>
        <pubDate>Thu, 14 May 2026 19:22:33 +0200</pubDate>
        <dc:creator>Bobby Eshleman &lt;bobbyeshleman@meta.com&gt;</dc:creator>
    </item>
</channel>
</rss>
