<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in .gitignore</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>1d0dc857 - selftests: drv-net: add checksum tests</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/testing/selftests/net/lib/.gitignore#1d0dc857</link>
        <description>selftests: drv-net: add checksum testsRun tools/testing/selftest/net/csum.c as part of drv-net.This binary covers multiple scenarios, based on arguments given,for both IPv4 and IPv6:- Accept UDP correct checksum- Detect UDP invalid checksum- Accept TCP correct checksum- Detect TCP invalid checksum- Transmit UDP: basic checksum offload- Transmit UDP: zero checksum conversionThe test direction is reversed between receive and transmit tests, sothat the NIC under test is always the local machine.In total this adds up to 12 testcases, with more to follow. Forconciseness, I replaced individual functions with a function factory.Also detect hardware offload feature availability using Ethtoolnetlink and skip tests when either feature is off. This need may becommon for offload feature tests and eventually deserving of a thinwrapper in lib.py.Missing are the PF_PACKET based send tests (&apos;-P&apos;). These usevirtio_net_hdr to program hardware checksum offload. Which requireslooking up the local MAC address and (harder) the MAC of the next hop.I&apos;ll have to give it some though how to do that robustly and wherethat code would belong.Tested:        make -C tools/testing/selftests/ \                TARGETS=&quot;drivers/net drivers/net/hw&quot; \                install INSTALL_PATH=/tmp/ksft        cd /tmp/ksft	sudo NETIF=ens4 REMOTE_TYPE=ssh \		REMOTE_ARGS=&quot;root@10.40.0.2&quot; \		LOCAL_V4=&quot;10.40.0.1&quot; \		REMOTE_V4=&quot;10.40.0.2&quot; \		./run_kselftest.sh -t drivers/net/hw:csum.pySigned-off-by: Willem de Bruijn &lt;willemb@google.com&gt;Link: https://lore.kernel.org/r/20240507154216.501111-1-willemdebruijn.kernel@gmail.comSigned-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;

            List of files:
            /linux-6.15/tools/testing/selftests/net/lib/.gitignore</description>
        <pubDate>Tue, 07 May 2024 15:40:58 +0000</pubDate>
        <dc:creator>Willem de Bruijn &lt;willemb@google.com&gt;</dc:creator>
    </item>
</channel>
</rss>
