From nobody Mon Feb 9 15:10:28 2026 Received: from relay.virtuozzo.com (relay.virtuozzo.com [130.117.225.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 876FC3D3480; Tue, 20 Jan 2026 23:02:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=130.117.225.111 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768950155; cv=none; b=e55iOdpjKlmTdJ6zURzu7ELWEA1vB59msgRxJvwvmHseYT/dLTqO2/TFma1ZpfjQ3AZYPYuuk8tuQHX1H5Iso5eVbclMBIlQpB4Y8lvjPVLi5/IB/Rqy2iUNcOJo0m094AQ0GrLI3MKWkcdFbrnJ7NC/56ZThLqO/TURQ6oGl/0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768950155; c=relaxed/simple; bh=Qzq0EhbZ78DUlnVCDJEwC9dQdZKwxeWeAe1rR0FxzUs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=AfLfPwl5WQcfnx31lpT3AsTyRC0eYUft+e2Y32WIG2vmo1anXHWeXnGiUWmzKDckjgu1OOgCXfSfK8npIXQUjKU0UpWR8C7a9ycXWOomArJirjlLLki/sT69UZ0Q1UhOI30VWUe+lMRWcGn2ga8Ab9euvAjihpTNdbtdvVvM8hA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=virtuozzo.com; spf=pass smtp.mailfrom=virtuozzo.com; dkim=pass (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b=UOx8uHN9; arc=none smtp.client-ip=130.117.225.111 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=virtuozzo.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=virtuozzo.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="UOx8uHN9" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=MIME-Version:Message-ID:Date:Subject:From: Content-Type; bh=8tpR1oMDG6Gq6WVuLMc5q4DQ69hK0HrbFlTunTJ68EI=; b=UOx8uHN9Xx8J Lf48hUsTa5yTAWkmXNYnIU+PJi77TxsKFcdIa/maOLUtk/EZek9PLiAdI+BpBFdp9dMJb1Y8mMh+o KubWGYpYDsuoqADjzO8XB2cNXEhNl6BIdryNv+XwmJmu3J5/TwmE6JM4y3JsPZ8PTHSwgxrlSOyIN 99fiCpod3tP42GqCXC26oGKwjqGhGlUycJLOJCpBehDt7JEr9AYVOAyarcNw3qS7aKJE+psOhGwS9 I3L4UNkil/pGaBcfv7VNkhFDc5PZEsxs08muWgSXWLRy8BUcHd5MNUjKHZaBCpQg8ZUR+hNq4kKgO x/kosndmGKqR+o//+O0dug==; Received: from [130.117.225.5] (helo=dev004.aci.vzint.dev) by relay.virtuozzo.com with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1viKjV-00Fh5g-0p; Wed, 21 Jan 2026 00:02:17 +0100 Received: from dev004.aci.vzint.dev (localhost [127.0.0.1]) by dev004.aci.vzint.dev (8.16.1/8.16.1) with ESMTPS id 60KN2Qb8328364 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 20 Jan 2026 23:02:26 GMT Received: (from root@localhost) by dev004.aci.vzint.dev (8.16.1/8.16.1/Submit) id 60KN2QSh328363; Tue, 20 Jan 2026 23:02:26 GMT From: Aleksei Oladko To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Shuah Khan , Petr Machata , Nikolay Aleksandrov Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Aleksei Oladko Subject: [PATCH 1/6] selftests: forwarding: lib: skip test if team driver is not supported Date: Tue, 20 Jan 2026 23:02:03 +0000 Message-ID: <20260120230208.328337-2-aleksey.oladko@virtuozzo.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260120230208.328337-1-aleksey.oladko@virtuozzo.com> References: <20260120230208.328337-1-aleksey.oladko@virtuozzo.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Some kselftests rely on teamd to create LAG devices. If the kernel is built without CONFIG_NET_TEAM, the teamd command fails with: Failed: Operation not supported Currently, the exit code of teamd is not properly checked, causing the test to proceed and eventually fail instead of being skipped. Add a check for the teamd exit code, mark the test as skipped to avoid self-positive failures. Signed-off-by: Aleksei Oladko --- tools/testing/selftests/net/forwarding/lib.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/forwarding/lib.sh b/tools/testing/= selftests/net/forwarding/lib.sh index a9034f0bb58b..0a474b02371d 100644 --- a/tools/testing/selftests/net/forwarding/lib.sh +++ b/tools/testing/selftests/net/forwarding/lib.sh @@ -771,9 +771,21 @@ team_create() { local if_name=3D$1; shift local mode=3D$1; shift + local output + local status =20 require_command $TEAMD - $TEAMD -t $if_name -d -c '{"runner": {"name": "'$mode'"}}' + output=3D$($TEAMD -t $if_name -d -c '{"runner": {"name": "'$mode'"}}' 2>&= 1) + status=3D$? + + if [ $status -ne 0 ]; then + if echo "$output" | grep -q "Operation not supported"; then + exit $ksft_skip + else + exit 1 + fi + fi + for slave in "$@"; do ip link set dev $slave down ip link set dev $slave master $if_name --=20 2.43.0 From nobody Mon Feb 9 15:10:28 2026 Received: from relay.virtuozzo.com (relay.virtuozzo.com [130.117.225.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B244F33B6EA; Tue, 20 Jan 2026 23:02:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=130.117.225.111 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768950156; cv=none; b=aBSOHbZpkxLEwl9mlk766sdKON8p6ZcKuhZNbKP2Y2iwfmh8XWNECVrRwK18D0ctLF+d3PeW+t1EOaGw57Aj4ff3lXNmC9V/lTTkvzSNx5dRcYRq+9uptEjLGXqcNsl/ZAGH8pygkL7JZquOnxYirEB8kShFaCi9H2OT61Sy4W4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768950156; c=relaxed/simple; bh=J2PrXGpy1pLQl9kSJ2m2J1uMGpMK2jZj4gqH6swdvg8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LR7LmrSFdpvX7jKGvB6UwJr4rdtLyik9jXH0Tc5vYDuyk75w7BC7iAMYxoU7c9bdy7jZg+g3VO6O7JfWT9+scwxQOn7YWRj9a9pTzZdHisMFdPWp4PlbN6B5eHynZaBsP7iM7quxPSCbaG9J2ucsxlXuihMlg5loIS9PA+fcfUw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=virtuozzo.com; spf=pass smtp.mailfrom=virtuozzo.com; dkim=pass (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b=UTYwl138; arc=none smtp.client-ip=130.117.225.111 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=virtuozzo.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=virtuozzo.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="UTYwl138" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=MIME-Version:Message-ID:Date:Subject:From: Content-Type; bh=gsaFz6I/pLkw/aWwH2yyMqIImP27kXuxuklnw7KpnUU=; b=UTYwl138lx55 c4TsfPjgeFivGcDduxFPohI9wnwEzgZJGtWixWNbPW3+7p7iT31l+yUc0kQt0IY6+ZRW1LKlyuo+E L6vMQHngvo0KAFZhEv/1ijnBvL0UlxY5SSfU/4QeFAkRlNUedLSrGPgDzS55LlzbK1U4nBEdJ+acv jsG6h8Qnum6wGb1JAi+TTMqO+dMu9zXmX+CXYyEqKhHHMgUNyN2ryiRcz1KPAD0A4rfMCg4ZWg7gR Wq7NaS0eRu7UBYbrjgFckB+i3kqBVgAdRwxps9m3UyKTjoQJqlqu0ReNuDpTeEWzZqqj0ufzRPj5O YwAclkjXjftklnNjqKT8kA==; Received: from [130.117.225.5] (helo=dev004.aci.vzint.dev) by relay.virtuozzo.com with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1viKjW-00Fh60-3B; Wed, 21 Jan 2026 00:02:19 +0100 Received: from dev004.aci.vzint.dev (localhost [127.0.0.1]) by dev004.aci.vzint.dev (8.16.1/8.16.1) with ESMTPS id 60KN2S9B328368 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 20 Jan 2026 23:02:28 GMT Received: (from root@localhost) by dev004.aci.vzint.dev (8.16.1/8.16.1/Submit) id 60KN2R1o328367; Tue, 20 Jan 2026 23:02:27 GMT From: Aleksei Oladko To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Shuah Khan , Petr Machata , Nikolay Aleksandrov Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Aleksei Oladko Subject: [PATCH 2/6] selftests: forwarding: sch_ets: skip test if cls_basic module is missing Date: Tue, 20 Jan 2026 23:02:04 +0000 Message-ID: <20260120230208.328337-3-aleksey.oladko@virtuozzo.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260120230208.328337-1-aleksey.oladko@virtuozzo.com> References: <20260120230208.328337-1-aleksey.oladko@virtuozzo.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The sch_ets.sh test requires the cls_basic kernel module to function properly. If the kernel is compiled without CONFIG_NET_CLS_BASIC, the test fails instead of being gracefully skipped. Add a check to attempt loading the cls_basic module. If modprobe fails, the test will be skipped. Signed-off-by: Aleksei Oladko --- tools/testing/selftests/net/forwarding/sch_ets_core.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/net/forwarding/sch_ets_core.sh b/tools= /testing/selftests/net/forwarding/sch_ets_core.sh index 0453210271dc..ff3ac3e43c33 100644 --- a/tools/testing/selftests/net/forwarding/sch_ets_core.sh +++ b/tools/testing/selftests/net/forwarding/sch_ets_core.sh @@ -98,6 +98,7 @@ classifier_mode() { echo "Running in classifier mode" ets_delete_qdisc + modprobe cls_basic || exit $ksft_skip ETS_CHANGE_QDISC=3Dets_change_qdisc_classifier } =20 --=20 2.43.0 From nobody Mon Feb 9 15:10:28 2026 Received: from relay.virtuozzo.com (relay.virtuozzo.com [130.117.225.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 296543EFD35; Tue, 20 Jan 2026 23:02:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=130.117.225.111 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768950158; cv=none; b=NQzlWqYxoQtNydQVw3q1HfqNg9eunOUI78JVbFrolaEbDBhhdOFW8ksibKdl02bpsfGB/yleAG3apZlLUhITPkITyXjrCNFzAjI6pBJEnxJ9FnShYI7NxzdF2mwoUBChPlvlos/Y4NOhPoYg2/12QymoWGmdJnK4kS8dnFJ+MkY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768950158; c=relaxed/simple; bh=1cE5Q+qCzFeRecZEJg0DPLGLMO7Igf/N3wb2+0LRfqc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GoTb5JjXNIADKbkYv8sZ4rWeHDRC+2mRTAWcQV7zi1LefJL+LVeMqRAPbX2I9Llfxb9pNVTQBz1IIaT5qDJJHcWiP7fAJOvx6aSc0Kg/1AFhnTku+gJb8pe611VwLiLAr/xHjUcs7+y2PLVn3sCy7VEOVUm6PyJiUejls9U+nfU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=virtuozzo.com; spf=pass smtp.mailfrom=virtuozzo.com; dkim=pass (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b=m6kQw8MU; arc=none smtp.client-ip=130.117.225.111 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=virtuozzo.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=virtuozzo.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="m6kQw8MU" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=MIME-Version:Message-ID:Date:Subject:From: Content-Type; bh=eHCuxOToLaaRCzh21nUsxbUTmt/pR8HS2KcqmI4jslg=; b=m6kQw8MUkMEJ yjL3UIow41740tUhfjPW80QKFrzwR+8M12XJjGg9vwRz8Qh+4/2a/ZD0As4jlFUBmCRu2Q64Fv2N8 ZteFgznAPnTKI7Gwsp6YoFH61RGF4X2/vm4Kms6yrE+kSOy6r7vU6UJPRMVdNO4AKIpN9okPBXCui Gu2WAF7k0zn9otbUSEYb3qOddRU7R62BYOqq29Ehyge5oo7a2vAkHWYP+RIZsbBmYTFpyemRfl4hD E9v6qzh6LJq9I0erBJoirRnQyLWitltoOvVMEWInmpUYOTQ2bIsCsV5XAUs02hcUwfqMZ7eRGkNV3 yEvyiiOX91LPz3PsKI1Saw==; Received: from [130.117.225.5] (helo=dev004.aci.vzint.dev) by relay.virtuozzo.com with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1viKjY-00Fh69-1e; Wed, 21 Jan 2026 00:02:20 +0100 Received: from dev004.aci.vzint.dev (localhost [127.0.0.1]) by dev004.aci.vzint.dev (8.16.1/8.16.1) with ESMTPS id 60KN2TTT328372 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 20 Jan 2026 23:02:29 GMT Received: (from root@localhost) by dev004.aci.vzint.dev (8.16.1/8.16.1/Submit) id 60KN2T7T328371; Tue, 20 Jan 2026 23:02:29 GMT From: Aleksei Oladko To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Shuah Khan , Petr Machata , Nikolay Aleksandrov Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Aleksei Oladko Subject: [PATCH 3/6] selftests: forwarding: lib: add run_cmd_grep helper for feature probing Date: Tue, 20 Jan 2026 23:02:05 +0000 Message-ID: <20260120230208.328337-4-aleksey.oladko@virtuozzo.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260120230208.328337-1-aleksey.oladko@virtuozzo.com> References: <20260120230208.328337-1-aleksey.oladko@virtuozzo.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" In some forwarding tests, it is necessary to check for features or specific keywords in command output before proceeding. Introduce the run_cmd_grep helper in lib.sh. This helper executes a command and searches for a specific pattern in its output. Signed-off-by: Aleksei Oladko --- tools/testing/selftests/net/forwarding/lib.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tools/testing/selftests/net/forwarding/lib.sh b/tools/testing/= selftests/net/forwarding/lib.sh index 0a474b02371d..dcf17c19ad77 100644 --- a/tools/testing/selftests/net/forwarding/lib.sh +++ b/tools/testing/selftests/net/forwarding/lib.sh @@ -2163,3 +2163,22 @@ has_unicast_flt() =20 [[ $promisc =3D=3D 1 ]] && echo "no" || echo "yes" } + +run_cmd_grep_common() +{ + local find=3D"$1"; shift + local cmd=3D"$*" + + if [ "$VERBOSE" =3D "1" ]; then + echo "COMMAND: ${cmd} 2>&1 | grep -q '${find}'" + fi + $cmd 2>&1 | grep -q "${find}" + return $? +} + +run_cmd_grep() { + run_cmd_grep_common "$@" + rc=3D$? + check_err $rc + return $rc +} --=20 2.43.0 From nobody Mon Feb 9 15:10:28 2026 Received: from relay.virtuozzo.com (relay.virtuozzo.com [130.117.225.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A712F311972; Tue, 20 Jan 2026 23:02:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=130.117.225.111 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768950161; cv=none; b=PYxNp4m4PjJgYZr+N361eW3cse92/OsKLrin1Anq3dXFr/sY2RlcDAZEGssY4v+GTu4vx9xqPOFI/Gd3ZedMVyV1cJ9atgZI5aZ4OZx3XF4JPWT5J3lPKzpsK+egFzTvQtEKaxwgPbWqd+YsMpq/yx1y+O1HUlpIXE96u0RnyrE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768950161; c=relaxed/simple; bh=OCwAfPLwAsCCwke6bQtbz2A7Oxk3pZd8PJ9HGvkf1Mc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=P15GcYPuH96Wch5fOuGAmJsBRZ11OP+ymZxz5oFC0D+xM5/Ip8Mk0oJ0+4WBumHlijr17XjUP+E698NdtJwnw3MJRJMQVwc6ZPSnUYFhUATirACqqqvmATzihVjaQePMwDjh24jlDbHbqwPyXraRKBFxUe5zUOPOkqEIW5jIso4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=virtuozzo.com; spf=pass smtp.mailfrom=virtuozzo.com; dkim=pass (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b=It+2uwRt; arc=none smtp.client-ip=130.117.225.111 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=virtuozzo.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=virtuozzo.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="It+2uwRt" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=MIME-Version:Message-ID:Date:Subject:From: Content-Type; bh=E+QO7Nq2QSQy5D3Nt7P07iR0/YqO3hmPsD8Xcq7CxG8=; b=It+2uwRt3VBZ l3ofSkmswOdZBEIHwOmRtYrRJGZsfbMtpxizEUXOrXYmFmqwyF939KA0OzFnBZUAJ1YnKdePadfFk we4k47GcaN10i9DZQVeY96eL7/0rGDJ7vcfB4Kc3WZ7fSBZffw7ymBgAghqreHRB0DSxwIDfzO/ya Y+VmCDOSbZ7mfdgPrsiaYQhx0Wau2doGD4AHkwX1dbFXO8aumUfbBZ/dMf6KyY9F558VPwXLTzdu4 1KWHfp/TpNwa5tyX/15aJj2gW58Y8E0TA9olU0NYCF+ADiOIkgPvw6dUSprVuEleAK2KCKKvI8hUS 3MzsOgwWUGFEKBL7KN3fNQ==; Received: from [130.117.225.5] (helo=dev004.aci.vzint.dev) by relay.virtuozzo.com with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1viKjZ-00Fh6K-37; Wed, 21 Jan 2026 00:02:22 +0100 Received: from dev004.aci.vzint.dev (localhost [127.0.0.1]) by dev004.aci.vzint.dev (8.16.1/8.16.1) with ESMTPS id 60KN2VRY328376 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 20 Jan 2026 23:02:31 GMT Received: (from root@localhost) by dev004.aci.vzint.dev (8.16.1/8.16.1/Submit) id 60KN2UUf328375; Tue, 20 Jan 2026 23:02:30 GMT From: Aleksei Oladko To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Shuah Khan , Petr Machata , Nikolay Aleksandrov Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Aleksei Oladko Subject: [PATCH 4/6] selftests: forwarding: tc_flower_cfm: skip tests if tools or feats are missing Date: Tue, 20 Jan 2026 23:02:06 +0000 Message-ID: <20260120230208.328337-5-aleksey.oladko@virtuozzo.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260120230208.328337-1-aleksey.oladko@virtuozzo.com> References: <20260120230208.328337-1-aleksey.oladko@virtuozzo.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The tc_flower_cfm.sh selftest assume the presence of iproute2 support for the `cfm` keyword in `tc filter` commands. These assumptions can cause test failures. This patch improves test robustness by skipping the test if tc filter help does not mention CFM Signed-off-by: Aleksei Oladko --- tools/testing/selftests/net/forwarding/tc_flower_cfm.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/net/forwarding/tc_flower_cfm.sh b/tool= s/testing/selftests/net/forwarding/tc_flower_cfm.sh index 3ca20df952eb..65f95fe88b38 100755 --- a/tools/testing/selftests/net/forwarding/tc_flower_cfm.sh +++ b/tools/testing/selftests/net/forwarding/tc_flower_cfm.sh @@ -196,6 +196,8 @@ cleanup() vrf_cleanup } =20 +run_cmd_grep 'CFM' tc filter add dev lo ingress flower help || exit $ksft_= skip + trap cleanup EXIT =20 setup_prepare --=20 2.43.0 From nobody Mon Feb 9 15:10:28 2026 Received: from relay.virtuozzo.com (relay.virtuozzo.com [130.117.225.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 78BA840B6E9; Tue, 20 Jan 2026 23:02:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=130.117.225.111 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768950160; cv=none; b=mShUd29ioOI/ZLE+HT8u5svoMDtCmT4jwd+Omr94SvWwDMAMRp3m6Pk1Q1o+eh4C3rd6mF1983oLeZXmeaPcL+IddkNQdZou5fwEVkaZjwnm52poDMYdqhSnSfpCX7Dda2XDsg/y6x4xudJxSUgKxm5/pPgKF/mu328Do2HG3vA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768950160; c=relaxed/simple; bh=uaKPuSPCTmKqFEglb9Ynhb27mSJkH1HQt5gXpGAWXxM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Rd9vwD1F7NYxongHr4Gc5/5R8e+IJ6I5pNQFqC2O1Y+pMjGVAROIVcy8FPREIddLBUd6bucBwN4JwKcOGIx2wgCC38Z28H92tl0E+KkVe454mZZYkVdYmLwUFUzszQwF7NuZLwbVU9L5T6ymbDObLapGQy7NYsfBW+WGcpzXLF4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=virtuozzo.com; spf=pass smtp.mailfrom=virtuozzo.com; dkim=pass (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b=gb3x8bac; arc=none smtp.client-ip=130.117.225.111 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=virtuozzo.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=virtuozzo.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="gb3x8bac" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=MIME-Version:Message-ID:Date:Subject:From: Content-Type; bh=KKX0mNLTijdouMrVgWumsUt3u8mgh2Z9iuCZGTIqXgQ=; b=gb3x8bach6aS T8mdjxMemmWX47sDNjVHdUWmAf4kac78jClePlDdac40S+U7oSc6SEfWnPwMJ5tp7m4GV00YHpT0m 1gj07Uf5FUdHkiznc+G2ZiZ2VoWfKZcyvZzFfElpnfjItdKcAqqLXlX9LAUFf6JahjxlOPP3jPc+w 3ggz0BgwGqqXU1LxsFh5ktM1Y/nJihnArSoKUDEsPfgl5Gzqlne7pY5F9oN25XFa2KFX9YSqeKnfL CEMeS0fmM60mJpL/hZ8FgBFd43NGNXA9brVNx6GbUtR4JfI8vAy1/elaFlNplNlcx4W/TD4WfuiRn O8/o6qok5EEZf/5FqFwVbw==; Received: from [130.117.225.5] (helo=dev004.aci.vzint.dev) by relay.virtuozzo.com with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1viKjb-00Fh6W-1P; Wed, 21 Jan 2026 00:02:23 +0100 Received: from dev004.aci.vzint.dev (localhost [127.0.0.1]) by dev004.aci.vzint.dev (8.16.1/8.16.1) with ESMTPS id 60KN2Wfd328380 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 20 Jan 2026 23:02:32 GMT Received: (from root@localhost) by dev004.aci.vzint.dev (8.16.1/8.16.1/Submit) id 60KN2WRB328379; Tue, 20 Jan 2026 23:02:32 GMT From: Aleksei Oladko To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Shuah Khan , Petr Machata , Nikolay Aleksandrov Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Aleksei Oladko Subject: [PATCH 5/6] selftests: forwarding: tc_flower_l2_miss: skip tests if tools or feats are missing Date: Tue, 20 Jan 2026 23:02:07 +0000 Message-ID: <20260120230208.328337-6-aleksey.oladko@virtuozzo.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260120230208.328337-1-aleksey.oladko@virtuozzo.com> References: <20260120230208.328337-1-aleksey.oladko@virtuozzo.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The tc_flower_l2_miss.sh selftest assume the presence of iproute2 support for the `l2_miss` keyword in `tc filter` commands. These assumptions can cause test failures. This patch improves test robustness by skipping the test if tc filter help does not mention l2 miss Signed-off-by: Aleksei Oladko --- tools/testing/selftests/net/forwarding/tc_flower_l2_miss.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/net/forwarding/tc_flower_l2_miss.sh b/= tools/testing/selftests/net/forwarding/tc_flower_l2_miss.sh index c2420bb72c12..c28569b8948f 100755 --- a/tools/testing/selftests/net/forwarding/tc_flower_l2_miss.sh +++ b/tools/testing/selftests/net/forwarding/tc_flower_l2_miss.sh @@ -347,6 +347,8 @@ cleanup() vrf_cleanup } =20 +run_cmd_grep 'l2_miss' tc filter add dev lo ingress flower help || exit $k= sft_skip + trap cleanup EXIT =20 setup_prepare --=20 2.43.0 From nobody Mon Feb 9 15:10:28 2026 Received: from relay.virtuozzo.com (relay.virtuozzo.com [130.117.225.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4E016410D05; Tue, 20 Jan 2026 23:02:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=130.117.225.111 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768950164; cv=none; b=lKQ3fL1vzMxppmk7+pukVPBwC3de6DezSlEeyJzMBOJx+kSU3pNwev92OO9UTBxKDTuUcQ1nnKyZplISeXdACE12pas/vX5BybUv3dHq3fLANYBQwrX6MHVxut6vl4GYJnLqml+UMl6kHGyFnKXXQ8T9SAnknQ4gYZVWpd6PstI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768950164; c=relaxed/simple; bh=Vjbn/gb4cZlIm6Os9TlJNCnlFAc5ESXEKTbzjQUgOg0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ck6UtWmxPwxo+nMV5rGCK1clWQR/SnXel2kp4r8O+zzXty5ugdrahYIP+dsWNfg+ukZT4gKoeWiDCAovz2v/hzh/PYUZNRXRdL4YAx37JJ+KLnBOcWCM+hRWuxv5M4ADQs0+vB716cYnZEkUVV9auVN70pza9Il4S6Djzeq60Ww= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=virtuozzo.com; spf=pass smtp.mailfrom=virtuozzo.com; dkim=pass (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b=QVDKI4A2; arc=none smtp.client-ip=130.117.225.111 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=virtuozzo.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=virtuozzo.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="QVDKI4A2" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=MIME-Version:Message-ID:Date:Subject:From: Content-Type; bh=h251P67okuH0sc4CUwKqL3Anvu1/8P1pvdAz3glIJws=; b=QVDKI4A2Qkzz bkawLJrvscyLuhJ1zxTDMivzeeAv73BMw4mxb9xq1iB8dcBh8UpH3PAW5ypZdU42JWyCUAi84KqY9 bl7QQ06xCmaFusF98wgo/iho/G5KkLUVL4/YumfL1iJgHgSYoRnmr9/9DsgorzLAgeD/+VE5EmwB/ LgDebTogAZCvTzuzuxMNR/Ieq4pevN6OSGtBnQfaeHJugHD2sQYcrUhi3VXXrYM7FW0kOaO0XH/+Q I5+VQrDP7X+YvdDWvHvsBtFlAE3dLF9HOvmu8mnzyvrMe3tSDAPpJ8ss2Y8UJgLnTLghd32AL9wTO viuD6B1zrhuIPDcF0pDG+w==; Received: from [130.117.225.5] (helo=dev004.aci.vzint.dev) by relay.virtuozzo.com with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1viKjc-00Fh6h-30; Wed, 21 Jan 2026 00:02:25 +0100 Received: from dev004.aci.vzint.dev (localhost [127.0.0.1]) by dev004.aci.vzint.dev (8.16.1/8.16.1) with ESMTPS id 60KN2YQB328384 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 20 Jan 2026 23:02:34 GMT Received: (from root@localhost) by dev004.aci.vzint.dev (8.16.1/8.16.1/Submit) id 60KN2Xk1328383; Tue, 20 Jan 2026 23:02:33 GMT From: Aleksei Oladko To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Shuah Khan , Petr Machata , Nikolay Aleksandrov Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Aleksei Oladko Subject: [PATCH 6/6] selftests: forwarding: router_mpath_seed: skip tests if tools or feats are missing Date: Tue, 20 Jan 2026 23:02:08 +0000 Message-ID: <20260120230208.328337-7-aleksey.oladko@virtuozzo.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260120230208.328337-1-aleksey.oladko@virtuozzo.com> References: <20260120230208.328337-1-aleksey.oladko@virtuozzo.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The router_mpath_seed.sh selftest assume the presence of iproute2 support for the `hw_stats` keyword in `ip nexthop` commands. These assumptions can cause test failures. This patch improves test robustness by skipping the test if ip nexthop add help does not mention hw_stats Signed-off-by: Aleksei Oladko --- tools/testing/selftests/net/forwarding/router_mpath_seed.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/net/forwarding/router_mpath_seed.sh b/= tools/testing/selftests/net/forwarding/router_mpath_seed.sh index 314cb906c1eb..d9dc5d3a10d5 100755 --- a/tools/testing/selftests/net/forwarding/router_mpath_seed.sh +++ b/tools/testing/selftests/net/forwarding/router_mpath_seed.sh @@ -322,6 +322,8 @@ test_mpath_seed_stability_ipv6() -p 64 -d 0 -c 10 -t udp } =20 +run_cmd_grep 'hw_stats' ip nexthop add help || exit $ksft_skip + trap cleanup EXIT =20 setup_prepare --=20 2.43.0