Article View: linux.kernel.netdev
Article #18377[PATCH net 2/2] selftests: net: test flushing IPv4 nexthop routes in compat mode
From: Yuen Su
Date: Wed, 18 Nov 2026 08:45
Date: Wed, 18 Nov 2026 08:45
32 lines
12237 bytes
12237 bytes
Exercise ip route flush on a route with a nexthop group while the dump includes both the group's ID and the expanded paths. Check that the flush succeeds and that the route is gone. Both checks fail before the IPv4 delete fix and pass after it in a QEMU/KVM guest with unmodified iproute2. Codex assisted with adding the case to the existing compatibility selftest and running it. Signed-off-by: Yuen Su <zypulsecore@gmail.com> --- tools/testing/selftests/net/fib_nexthops.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/testing/selftests/net/fib_nexthops.sh b/tools/testing/selftests/net/fib_nexthops.sh index adbec51..d3c8cf8 100755 --- a/tools/testing/selftests/net/fib_nexthops.sh +++ b/tools/testing/selftests/net/fib_nexthops.sh @@ -2183,6 +2183,13 @@ ipv4_compat_mode() stop_ip_monitor $ipmout 3 log_test $? 0 "IPv4 compat mode on - nexthop change" + run_cmd "$IP route add 192.0.2.1/32 nhid 122" + log_test $? 0 "IPv4 compat mode on - add route for flush" + run_cmd "$IP route flush to exact 192.0.2.1/32" + log_test $? 0 "IPv4 compat mode on - route flush" + check_route "192.0.2.1" "" + log_test $? 0 "IPv4 compat mode on - route removed by flush" + sysctl_nexthop_compat_mode_set 0 "IPv4" # cleanup
Technical Details
Message-ID:
<20261118084510.332821-3-zypulsecore@gmail.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365960-linux-kernel-netdev=dewy.ruReferences:
<20261118084510.332821-1-zypulsecore@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365960-linux-kernel-netdev=dewy.ru
From: zypulsecore@gmail.com (Yuen Su)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net 2/2] selftests: net: test flushing IPv4 nexthop routes in compat mode
Date: Wed, 18 Nov 2026 16:45:10 +0800
Organization: Usenet Network
Message-ID: <20261118084510.332821-3-zypulsecore@gmail.com>
References: <20261118084510.332821-1-zypulsecore@gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="2544900"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:FbpoO2+TCXHlAumE2TxTZSn9n+E= sha256:u1BEBhhVO++8P8iPz74VaV6X5s9KbXBlVKYlTF7/sMU=
sha1:JixF0BPXhT2EnvjZy/zkTmgbO9k= sha256:oeAHyXyYVat+PmRY43pdlHESPN8x2ITOTO6emTJfA84=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id 48C621151E4; Wed, 18 Nov 2026 11:46:37 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=gmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id tQMaJ1228VSr;
Wed, 18 Nov 2026 11:46:34 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-365960-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id 37BFB114F03; Wed, 18 Nov 2026 11:46:25 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by tor.lore.kernel.org (Postfix) with ESMTP id E9C3A6054F; Wed, 18 Nov 2026 08:46:18 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1794991577;
b=w6RgtIFJaqIoGOux6LcKZ3WBC3Kd/coGcRNUNZ4XORNZ9Poplbc5JfjyrSYw/sg/7vJh
j5rR1VsPA1MCSjTPvfmsxZFn/oe9+8BgG+S3CwA5dxgi7TdYTZyY6QzonHH8rES3wX6pz
tCEOUvMWFKQqLooqlnJCGfPABzHQClmHI/D5WWNJNqlIsKzwUitZC7MXihllTAvKrYEw0
PTi3gm7Pw1ohUbzJdqDN7Nq5W6DIKTnK47rTl1Zu5A2rpVoKKZqoB+bkzAu2CJ9YCT1ka
CHGlvwUQKdyy9xqz6xNJhu3uwko0hS5mLgGDeNm1e66LnIlRhRu7vLnT+GCxUdTFzAg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794991577;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:
References:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:MIME-Version:
Content-Transfer-Encoding;
bh=pxkuXdERaykwMOPQlF5CucoOr0fRF5ezQY9VTtl8AFo=;
b=lMHFeP3T1El4NaE410BiugSGjt1htZaF5XZdWbSDpHFSfDGvy5n+/3LOSdBb534Sp1C6
1u507GRlEadnxqPnqOqRhKefDk6QaaPkHRUX5ys+cAltMbLxEpAAZLyheZ6pSP3bd0J6M
i5aVWcTqkFZkY5qAzeScttoupieNcNjfaR3boJgJrZetr2lHRRgNrEqxF+la32zsSukJM
WEDdyZAwQ8wSHt4ijLQN4g23Ix0lHuRoTuU8xLJImsqLNi32tP4RJh5cgBtvqQsugdS6Q
+Z6n/Ueqy28ocgme+4fPV9tc5kFMi7oiJJ+ZmkQMMX7NrFpL6exzJgnxEeATUplokJw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=ZpVGaUt0;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id B6B67606A89A;
Wed, 18 Nov 2026 08:46:17 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=ZpVGaUt0
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.46
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1794991576;
b=kafE1oZlLBKpXCnmgJLQiAFSAaJJhm8TLKw+RCrzQ0R6deRKPrgLBRTuf9n0LWfWdu3K
9r1pbJLdaFBIbFUVagFZt+QXpepAkhWNjj/+8VnQgfFZ4sTBwjpAq638AZwwSFRUuyDur
2s2s0yBDukRVk4M/Q2dc9wYIrHi37iRJlH+O3wOsgCC4Gy2p2UKpGGeD+aDTnQhE5ptIr
jHYolyHCL/hhhlRrFcmlVlPTDadMRahUeY1CnuNvKX/L0SukgFSFKI2ayrFapIOZXudAZ
egLVBDIbiujhltkM3ZE3Q9iwIKQBynOzhdiOGSSo6mcgdK9eAjhep++F+h3lD6Jltqw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794991576;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:
Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version:
Content-Transfer-Encoding;
bh=pxkuXdERaykwMOPQlF5CucoOr0fRF5ezQY9VTtl8AFo=;
b=IZ5bfNG8+jCgkKlDEg+BnthY91cLv0bvBSUsfUEXbsUAAmRczOX6dDNAxqkeqfImfXCf
SvsdXGfOa5KCLFDpGv3yJPrDcw2ozzhMnH+2zwEhmU3kLbU7KGv4H6KO9dh/RgRq9ZkDc
i5n2sLIgJqHixtYtEFBRKZvMBUy6pszWS03lIgOXwxT4pQVcTq/Us7ac7/470OF4Lbuml
t2maaPe+wxyn/4Nyvy7omJe+YcRL8U9Per/EnULVt8AeRCNKPRbQLUi9/c8Qen9FlgJcB
tNOVbOuTl4Fi9TXB+EWKljOYAWOekCWSic8DUhkkyvYhU9DhTAQlDmk420CqygH1OFA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=ZpVGaUt0;
arc=none smtp.remote-ip=74.125.82.46
X-Received: from mail-dl1-f46.google.com (mail-dl1-f46.google.com [74.125.82.46])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8D9F3606A336
for <netdev@vger.kernel.org>; Wed, 18 Nov 2026 08:46:16 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8D9F3606A336
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-dl1-f46.google.com with SMTP id a92af1059eb24-1b3a05f8b5bso968480c88.1
for <netdev@vger.kernel.org>; Wed, 18 Nov 2026 00:46:16 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1794991576; x=1795596376; darn=vger.kernel.org;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=pxkuXdERaykwMOPQlF5CucoOr0fRF5ezQY9VTtl8AFo=;
b=ZpVGaUt0qFX+fY8g64e6lfSZ6qDUG93vsf8J1YDKaJ//YYszq+CA7ztgrzDEG9cOt1
WvUtFbMadc7JV+Vfz7dMqS3VNrppTwPCAfMUqjXCRMf+Xmzn/cA3k1VV6wDRtIFUoHHe
5C8eDEEk4jKPUr5tDtaRFkBWw320hZjP2fePVtOA3YI1cmnu+KUOcpvS33oV+ermFd+W
ZopHhKSa8ddS5XUHTfsLuTMs5bAhUqttDM1zqstvA9RmVI5BHbvs/O8JWrwxbOIcN7CD
JiBGRmgNg7lblyYyO4QFX6Ozuq4O8JFPXGKHT6HM+hy0rII/NvC0J0NskiVWESPU9VgR
BQHg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1794991576; x=1795596376;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from
:to:cc:subject:date:message-id:reply-to:content-type;
bh=pxkuXdERaykwMOPQlF5CucoOr0fRF5ezQY9VTtl8AFo=;
b=ax0mZmbk71vLyF+i1wv8979hYZ1SiuPsIOAEFmbjMLHKVuwmUIDE//d9kyiPL81xCC
MyJPFHyQyJaxQaNTfzhE5pjyRstvw4XAcwebQhOz+NGryqcOYBNldM7NE+avma38HALx
rqzuFhjXIfNeWbt176EOS4lyX4kaD5dSfw55a1M1uOEfbHjOUbABjYnP406T/jfIR+O2
J5vnGDHxGv7y0QX7g4tz0/AJap+kL58rVbyRZzkRca4MBMqYee/hDHw/io7zF4mXq7Rx
3BOScPIJPMU7+4fIPMBUawrmhTLq56zrEHiDaOI8puPDbF0Q2FOhPuG0ag0mk+gfBsHr
xPGw==
X-Gm-Message-State: APuU4Z/ESvHlvirZ55ZFKlhyYviZqFxqumZ3A/F+FJscTBKHv8S/foHp
rRVfngKBLWKQix2xKY8MQW7j3XoqZ5J+Mg9WI22OKSWHDcC4+ANQ9UC2UPwkCuqbWrx7va9q
X-Gm-Gg: AYBFou0n6a1S/F8CHoesfU6khwpRs937U5M1F26+t2C24+Aaum5aUjvOVTE2nOgNE34
rWpCEL8TTxzfaWZVIPHYR470UMn4LjvZatE8f5QkcFlD8p6sCiI5kyZ8fkKl61PJR9kiofpwu9e
4ShOLymf8CkDJPDENFa5MdZztohNq+gBPRZn3eDKHajjX2yHA/dCErpusSNxWi/F+q4XRCUDs8x
NH+s7pJrdTN6gcOlmjO+fP11MJBx/UahudEMkdC9VTajuS4uZCrDmsNPiQXHLToZpw7GUYcW6Ai
B+evsohLKNwnuN7VfuxnPKeHaqDhFf5kslFaTj2HlXVAP5gtBL1qwJ1qiv0OJqHirc/6HKmEbX/
u9neaEiExqhfpNlIQb+y1pml7jvVr0E9YYgL/hOCD/EUHaxdYwiXkOfwCPu9mEL3Jv+sPguqEf+
ndPpm46wC1moW0Po8mVGAUA1lEwyLMkR4g200YCZ8y2uzUXjHJag4RDbI21eXpqF9lB+FKre9Qv
hpkkpEfI/+OnFwlYsyp+KH+EvYbFGvVLGqSkn/gX8y6vuZRn10KQl8iIj8kHokuIHH4zrL7IdCz
2+01zZxprHsGkITdMkf1uX4RtP9d79x9b4xIeZJsDNku5/p6PUQV7sO3
X-Received: by 2002:a05:701b:4649:b0:144:fa57:c617 with SMTP id a92af1059eb24-1b543d32afemr1728596c88.34.1794991575630;
Wed, 18 Nov 2026 00:46:15 -0800 (PST)
X-Received: from zypulse-in-radeon-MS-7E24.lan ([2406:da18:1601:7200:e02b:e41c:8db0:668d])
by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b5447dc5e9sm7220671c88.11.2026.11.18.00.46.11
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Wed, 18 Nov 2026 00:46:15 -0800 (PST)
X-Cc: David Ahern <dsahern@kernel.org>,
Ido Schimmel <idosch@nvidia.com>,
Stephen Hemminger <stephen@networkplumber.org>,
"David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>,
Paolo Abeni <pabeni@redhat.com>,
Simon Horman <horms@kernel.org>,
Shuah Khan <shuah@kernel.org>,
linux-kselftest@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-api@vger.kernel.org
X-Mailer: git-send-email 2.55.0
X-In-Reply-To: <20261118084510.332821-1-zypulsecore@gmail.com>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list