From patchwork Wed Jan 24 18:19:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pedro Tammela X-Patchwork-Id: 13529538 X-Patchwork-Delegate: kuba@kernel.org Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C099D12A17E for ; Wed, 24 Jan 2024 18:19:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706120395; cv=none; b=WrLtH8iJ8SEP2XpXRVGObgqW6w2H5+PbUO4mwkk0FrRLlXMtMDbuq3TzUC7jj4wdZvDBaD2c3E1OPXDvVGAqomiB9iKwZLhQb86LDqV/N9j5tgQkiJ8y3Jm/QMsxaAuKI0zY7bpPv0YKlepWa0dSeeKzwgULp5q1cS4zNdyytiQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706120395; c=relaxed/simple; bh=hNio0nD1Jw8dvozmdpvI20LoAzPAeMst7QlmZwbRnt8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ZPWva+3QihfD+BoxroqkGKlxKpxHAOCrJcnHH+h+dm+xyb8Jwqd4oTl6yk2M7vJSzEnrMcRwrplGm3VbBCCNtowX2uaIQ+BWCgtnagt7Q7MblhdX3EIZLVJUwFOZTpIQj1iQhTtr/Ds4KdhBlaE1XgEeG91FKBfwBO6uwYEy6i0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mojatatu.com; spf=none smtp.mailfrom=mojatatu.com; dkim=pass (2048-bit key) header.d=mojatatu-com.20230601.gappssmtp.com header.i=@mojatatu-com.20230601.gappssmtp.com header.b=A6uOWj6U; arc=none smtp.client-ip=209.85.214.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mojatatu.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=mojatatu.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mojatatu-com.20230601.gappssmtp.com header.i=@mojatatu-com.20230601.gappssmtp.com header.b="A6uOWj6U" Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-1d780a392fdso10140175ad.3 for ; Wed, 24 Jan 2024 10:19:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mojatatu-com.20230601.gappssmtp.com; s=20230601; t=1706120393; x=1706725193; 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; bh=/0aWr6I4AG0v1dbSwbiagBcAQfQgpKpYJbEuHRWpjLo=; b=A6uOWj6U5i0UoGPJvTGMcPcmXCZI6zkYgsoKdbAHiuiTvzfajgBqeN+jR5JR3bAM3c 1eRkxhjW7eYIPECldiIMdbIHuRCdYq8jifwXitoNyolPSZScqpbx7Kw6JF1bArNMM2Nh gblauNJbQVz+taZ2UMHLRSxOvZ7i29bJ7sjQwJhiW3yABALVVKGPaMkoYbG9KiQNklHy 8B7S9qkhZCnZX5DhODs6sMPgCx+0y/K+yInIwVTFjE+0U9hZFdWvlIDYrLzjhJpp0D4f KFU2CSls28+iTC4CrLvXaaRqytnWyzqrhCcxoNYAEUYqv4WCb/vywAAGSh62/03MnFIF g7qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706120393; x=1706725193; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/0aWr6I4AG0v1dbSwbiagBcAQfQgpKpYJbEuHRWpjLo=; b=AIZIqhbn6BaacAF9PEJCj+txI4x+UO17aLoGyQ76MK+/I6nf5b1Q6rvW8g+x7wGhtE FTjaT+aFbwd2LfIUWqeH3bRaVCvxMMxdwZdWAvSy2f5tRzMjOf60QQQ+kfZUnjpwjZvW q2i0WA3oEKSNzdh+c4YhvfqciPuOyGrKA0IY6nkjEo+oFUobUwgQKtXm8Tb7JZX/PZJk EBHlq5v5vthaRTct5oz8u9CNJLasXKCobqXRAfX2CoLdls5IWNdU6gNo8snUi+LWS7BT /MK1Odz7aD2/XTLZL82FKuEGtlwTShCO2UeCF48u7grfX6ui5CpJ8AMMmzq80tPvwHGN Asbw== X-Gm-Message-State: AOJu0YwaJfy8HnBgSJ5DNICynxZ48nUBEhZbx8fVbmZiBGy2H7OUIR/H t/1FbuhR2bx5hJJdbCQdlK72QO+Wjv3zBMx+Ur8muk+va5bIaaAIJ29Qnt/U2UnVPWzSWhFhl8y E4A== X-Google-Smtp-Source: AGHT+IGFJE4RbbGr5WYcVqee/dmkBr8WSFOLXJPlnoWSCitf6cV2tXPONn5YpfcnHAoHwd2vVHCnXQ== X-Received: by 2002:a17:903:1c5:b0:1d5:e4d6:1e07 with SMTP id e5-20020a17090301c500b001d5e4d61e07mr1570669plh.33.1706120392870; Wed, 24 Jan 2024 10:19:52 -0800 (PST) Received: from rogue-one.tail33bf8.ts.net ([201.17.86.134]) by smtp.gmail.com with ESMTPSA id kd4-20020a17090313c400b001d74ce2ae23sm5577084plb.290.2024.01.24.10.19.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 10:19:52 -0800 (PST) From: Pedro Tammela To: netdev@vger.kernel.org Cc: jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us, shuah@kernel.org, kuba@kernel.org, vladimir.oltean@nxp.com, dcaratti@redhat.com, edumazet@google.com, pabeni@redhat.com, linux-kselftest@vger.kernel.org, Pedro Tammela Subject: [PATCH net-next v2 1/5] selftests: tc-testing: add missing netfilter config Date: Wed, 24 Jan 2024 15:19:29 -0300 Message-Id: <20240124181933.75724-2-pctammela@mojatatu.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240124181933.75724-1-pctammela@mojatatu.com> References: <20240124181933.75724-1-pctammela@mojatatu.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org On a default config + tc-testing config build, tdc will miss all the netfilter related tests because it's missing: CONFIG_NETFILTER=y Signed-off-by: Pedro Tammela --- tools/testing/selftests/tc-testing/config | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/tc-testing/config b/tools/testing/selftests/tc-testing/config index c60acba951c2..db176fe7d0c3 100644 --- a/tools/testing/selftests/tc-testing/config +++ b/tools/testing/selftests/tc-testing/config @@ -8,6 +8,7 @@ CONFIG_VETH=y # # Core Netfilter Configuration # +CONFIG_NETFILTER=y CONFIG_NETFILTER_ADVANCED=y CONFIG_NF_CONNTRACK=m CONFIG_NF_CONNTRACK_MARK=y From patchwork Wed Jan 24 18:19:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pedro Tammela X-Patchwork-Id: 13529539 X-Patchwork-Delegate: kuba@kernel.org Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7ABEE12AAC7 for ; Wed, 24 Jan 2024 18:19:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706120398; cv=none; b=QO4cG1CDYTskvEGLh0qywtKXj1aJTtMMLUvT6hVQBYI5orKAa6m6Pht3d4vVo1c8ZzXL2olxRJT1DftNIs3RkqDAKc/foIIMFnQM6byXOgTGracza0j+/MaVVF7YzhWFR/sDzafe0PwgRI/bvWCF9XgEvLcI+OtRSrrf0GThfMo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706120398; c=relaxed/simple; bh=pQOrA7c8IcacL1fUQsE2uSC6rSNsb5lJxjB+TAL4fOk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=La0eUfM7Sh34y3N1SI9DEhNKuFj0GwMX+Vl1bK/SXdzVV5sMXi/5rtxb4AJhc/zE256ooxp8V2kf3sCHv3j8mjGWdiIYuWeIVOiZIPTXv88JVm6smxs/HlCPA5bH7uoMUz99cp3pRGF91RdrzORpKJ9SjRlJJKo9+FIGKgiQ11w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mojatatu.com; spf=none smtp.mailfrom=mojatatu.com; dkim=pass (2048-bit key) header.d=mojatatu-com.20230601.gappssmtp.com header.i=@mojatatu-com.20230601.gappssmtp.com header.b=H60eTJkS; arc=none smtp.client-ip=209.85.214.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mojatatu.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=mojatatu.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mojatatu-com.20230601.gappssmtp.com header.i=@mojatatu-com.20230601.gappssmtp.com header.b="H60eTJkS" Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-1d70a98c189so35571365ad.1 for ; Wed, 24 Jan 2024 10:19:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mojatatu-com.20230601.gappssmtp.com; s=20230601; t=1706120396; x=1706725196; 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; bh=gFBxT7xsVHh+8ayeAuuuih0ZuzmZPtNAj1TB2KnXVb0=; b=H60eTJkSCehlFB9RHNIgWcWDymyWFyKQV+2kudCVyAgBcw51qpOKlbTqcsYUcA6Gh9 B+D/uK2zUemOKIot52I25UUTqbUG0H4HCXVKmK4g9ouq3RkbeonKOocSm7w7mRGfsJBx szkfLNSQmwYRT+oVwXsIdVcWCktlfSjbNStad7xcR9K8BSPTW0C7DPdMrApGCVDiw6hZ ihoiTkz49EwbbHfOEiJC8foKESbZNGcoUymICOkDvS6C8P5pWowe46iTaILsVY3PubgF +yoU6noNByEjomMAysveC39T8EBVHy6QE4hKBMU9KTxXDUvY9vRtYZiOrJbXHkh8qBZY 04ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706120396; x=1706725196; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gFBxT7xsVHh+8ayeAuuuih0ZuzmZPtNAj1TB2KnXVb0=; b=EgwgVwDpavBiLsMm2RzBHoiXJJLCVhZuO1frXuQtKR8WKXLRC4tfZWpqRAJzrESZN5 4yBO8P2hj27RRSr7uhU7alV61EKvI2h/8M3exut3NU/rMTs5s63j1KPdSkBK3OTwiET3 FqfeRMOX4siVLQeFzS1xVA+p1RSgolh3ICq2LREJOzN/12u5FabYkoGEsh6aAqGHUavS xsTI62YUcqV/DbhsrH56C0WVtCKn5j/67OZa8cqQLHvMTLehcppRbWd7+7nfGXZmZeVu bEMW3ddop0d2FY01Xun9IXOdy8oHQncHWF6iwO1rpbpJufC5YRjfw+zvzz/jFHP+7Urc DnKw== X-Gm-Message-State: AOJu0YwH540DYEUM3YKXOutlJZQRxTQxLNCK8o9Y86cCbB3tTr8c+kxy tJe074oTdaYc29ggIzCmBKecDXKblZQRAeSRuZJXgkwd7ZLdVsoLHjs/aGm0zK4yfc/2O85JBEe P9g== X-Google-Smtp-Source: AGHT+IEd6Wt/I3bXZmlWfCk17h95CFddyzKiIkQSqc0P8TG3O2iY0L79PoKudaTfDAgw/Mn9kguxJg== X-Received: by 2002:a17:902:dac8:b0:1d7:4a66:87c1 with SMTP id q8-20020a170902dac800b001d74a6687c1mr1141175plx.50.1706120396439; Wed, 24 Jan 2024 10:19:56 -0800 (PST) Received: from rogue-one.tail33bf8.ts.net ([201.17.86.134]) by smtp.gmail.com with ESMTPSA id kd4-20020a17090313c400b001d74ce2ae23sm5577084plb.290.2024.01.24.10.19.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 10:19:56 -0800 (PST) From: Pedro Tammela To: netdev@vger.kernel.org Cc: jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us, shuah@kernel.org, kuba@kernel.org, vladimir.oltean@nxp.com, dcaratti@redhat.com, edumazet@google.com, pabeni@redhat.com, linux-kselftest@vger.kernel.org, Pedro Tammela Subject: [PATCH net-next v2 2/5] selftests: tc-testing: check if 'jq' is available in taprio tests Date: Wed, 24 Jan 2024 15:19:30 -0300 Message-Id: <20240124181933.75724-3-pctammela@mojatatu.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240124181933.75724-1-pctammela@mojatatu.com> References: <20240124181933.75724-1-pctammela@mojatatu.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org If 'jq' is not available the taprio tests might enter an infinite loop, use the "dependsOn" feature from tdc to check if jq is present. If it's not the test is skipped. Suggested-by: Davide Caratti Signed-off-by: Pedro Tammela --- tools/testing/selftests/tc-testing/tc-tests/qdiscs/taprio.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/tc-testing/tc-tests/qdiscs/taprio.json b/tools/testing/selftests/tc-testing/tc-tests/qdiscs/taprio.json index 2d603ef2e375..12da0a939e3e 100644 --- a/tools/testing/selftests/tc-testing/tc-tests/qdiscs/taprio.json +++ b/tools/testing/selftests/tc-testing/tc-tests/qdiscs/taprio.json @@ -167,6 +167,7 @@ "plugins": { "requires": "nsPlugin" }, + "dependsOn": "echo '' | jq", "setup": [ "echo \"1 1 8\" > /sys/bus/netdevsim/new_device", "$TC qdisc replace dev $ETH handle 8001: parent root stab overhead 24 taprio num_tc 8 map 0 1 2 3 4 5 6 7 queues 1@0 1@1 1@2 1@3 1@4 1@5 1@6 1@7 base-time 0 sched-entry S ff 20000000 clockid CLOCK_TAI", @@ -192,6 +193,7 @@ "plugins": { "requires": "nsPlugin" }, + "dependsOn": "echo '' | jq", "setup": [ "echo \"1 1 8\" > /sys/bus/netdevsim/new_device", "$TC qdisc replace dev $ETH handle 8001: parent root stab overhead 24 taprio num_tc 8 map 0 1 2 3 4 5 6 7 queues 1@0 1@1 1@2 1@3 1@4 1@5 1@6 1@7 base-time 0 sched-entry S ff 20000000 flags 0x2", From patchwork Wed Jan 24 18:19:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pedro Tammela X-Patchwork-Id: 13529540 X-Patchwork-Delegate: kuba@kernel.org Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B3D9B12A174 for ; Wed, 24 Jan 2024 18:20:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706120402; cv=none; b=sPKfokVGSnWhfdiOGZjQjUDyyC5agrIlu66sBSXIQthu//IHuPAAlOSb4hdbwiGbDXI0WuWfDYsyhw1e02TZcAOxjanQ2tCe+/IlVYn3CfvrBaSsQPGLoVMtOa5k5yi9nj/R6eqXUUiRigWLar8dEqdJ/80wn0sweVs2Qzg8urU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706120402; c=relaxed/simple; bh=ewKXOUbu1Pyuh9x+cdnLLtObcxSdtkqTBHdNo9HRO8g=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ocX8nbT44eizu+lnixHw3EfKtvKnoURWGEQ57FN9+O/XUQaHscef9JtsIH7n17QZQqOyRBxIrl2P71lrSQO2wiXe4lpeheHDgbQkvM1oGvqkmA6NyZ7mISA0qGok0sHt50ILbeNGCEHvvZb+ZH22bBOfNvYwoowF6Ejl4PANfV4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mojatatu.com; spf=none smtp.mailfrom=mojatatu.com; dkim=pass (2048-bit key) header.d=mojatatu-com.20230601.gappssmtp.com header.i=@mojatatu-com.20230601.gappssmtp.com header.b=V0VeGcbX; arc=none smtp.client-ip=209.85.214.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mojatatu.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=mojatatu.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mojatatu-com.20230601.gappssmtp.com header.i=@mojatatu-com.20230601.gappssmtp.com header.b="V0VeGcbX" Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-1d427518d52so42031145ad.0 for ; Wed, 24 Jan 2024 10:20:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mojatatu-com.20230601.gappssmtp.com; s=20230601; t=1706120401; x=1706725201; 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; bh=Rk3nWSvAIa1Zh4Z+2SFhPhPRTodwriGnEQi3EvZJ3+I=; b=V0VeGcbX8sBoJA7zE+F0kxzLyje4LOFc369UJ1B6i2VJRsvur0UXuNeBEG+tuthoxt x+SisFI+H90TuOghZ2p+4+D6XyhaVKwDkYjQxeyW28/pjnADaQ7gIOTS8FHoOM5zjtY5 tEpo14CCE/i5MogRr8TBlPTtVf5GxKxXCK8qqMbuEQnetKgbff+vSyPU0Y7AdDvrrdgy FhnSnIOpLpfxXQMLuCB1juUKt7eD5cRNKmMCuHWD9S9P5CNQBbV0prgkxTpo4vX0cPf7 93q4lx04LwYyrqGwaLeL7N6KXDmPID7vVO/HQ2PuDG0+Z9LqGT0ILlj60xwV/eTEo3+6 L6XA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706120401; x=1706725201; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Rk3nWSvAIa1Zh4Z+2SFhPhPRTodwriGnEQi3EvZJ3+I=; b=dYgOokaTFvWoCbNWKIauegfSLHT8qgdQfE3YSUYzjR+dQ62zXCeCuhfkvATtYV9jkG tSUg3j8BmngnF+bRak3HRAGpqKviDgpvmkzQRRBn8KQLsw46O7xSYXIRX1rBZGRauJg2 6nnQKQVFN+SjpQHzRnxWnw61LOSZ8x7xHF/TUeB7hzCvBtQLWAZwIpTJ6bi9CHeOAClb 7pQEvzA0DYMl+qWyj/SOYA+gQb/AcKqqZ3Oka8GzyJY32Su5W5wR82Zko7+fgkdh5EWl mFZ72rfrif+Una358tyxUsZoBbAciLWTyOcdpcJSRJSklAW23OznyR78LafVRaynRYGy 4FIA== X-Gm-Message-State: AOJu0Yxnue1z+PQl8X55b3pK2laiS2N+BDXJg0cL2ti0CLRrYl4nDNOS VDXVBgIYE3cx6RZMT5i9F8v3/IBMVYU401Ic1T3hTHiPJXV6A+X6Oab9EnqtdcwSMJCC270Iif0 oMQ== X-Google-Smtp-Source: AGHT+IGNjvPbEbHmN1V5xIH0vtgWPNnfFzzz3VqFykrZ/bt62ErW9b1pl8zoqozEU+KHFWS4fZDp4Q== X-Received: by 2002:a17:902:a58c:b0:1d7:8a03:e23 with SMTP id az12-20020a170902a58c00b001d78a030e23mr45943plb.65.1706120400828; Wed, 24 Jan 2024 10:20:00 -0800 (PST) Received: from rogue-one.tail33bf8.ts.net ([201.17.86.134]) by smtp.gmail.com with ESMTPSA id kd4-20020a17090313c400b001d74ce2ae23sm5577084plb.290.2024.01.24.10.19.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 10:19:59 -0800 (PST) From: Pedro Tammela To: netdev@vger.kernel.org Cc: jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us, shuah@kernel.org, kuba@kernel.org, vladimir.oltean@nxp.com, dcaratti@redhat.com, edumazet@google.com, pabeni@redhat.com, linux-kselftest@vger.kernel.org, Pedro Tammela Subject: [PATCH net-next v2 3/5] selftests: tc-testing: adjust fq test to latest iproute2 Date: Wed, 24 Jan 2024 15:19:31 -0300 Message-Id: <20240124181933.75724-4-pctammela@mojatatu.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240124181933.75724-1-pctammela@mojatatu.com> References: <20240124181933.75724-1-pctammela@mojatatu.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org Adjust the fq verify regex to the latest iproute2 Signed-off-by: Pedro Tammela --- tools/testing/selftests/tc-testing/tc-tests/qdiscs/fq.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/tc-testing/tc-tests/qdiscs/fq.json b/tools/testing/selftests/tc-testing/tc-tests/qdiscs/fq.json index be293e7c6d18..3a537b2ec4c9 100644 --- a/tools/testing/selftests/tc-testing/tc-tests/qdiscs/fq.json +++ b/tools/testing/selftests/tc-testing/tc-tests/qdiscs/fq.json @@ -77,7 +77,7 @@ "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root fq quantum 9000", "expExitCode": "0", "verifyCmd": "$TC qdisc show dev $DUMMY", - "matchPattern": "qdisc fq 1: root refcnt [0-9]+ limit 10000p flow_limit 100p buckets.*orphan_mask 1023 quantum 9000b", + "matchPattern": "qdisc fq 1: root refcnt [0-9]+ limit 10000p flow_limit 100p.*quantum 9000b", "matchCount": "1", "teardown": [ "$TC qdisc del dev $DUMMY handle 1: root" From patchwork Wed Jan 24 18:19:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pedro Tammela X-Patchwork-Id: 13529541 X-Patchwork-Delegate: kuba@kernel.org Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1287812AAE8 for ; Wed, 24 Jan 2024 18:20:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706120406; cv=none; b=UhfgCGs6BRwAsg1Exuyr/iLD3N0UVyazrDlXHMjNagK+poALQor0J5RvTx0wG98lGELeFiph0TAL7F89M2bvjGgt4XTzd2t5mNnIoWQBtBUi9036Q5182ca2N/wre3skYYrMFdGTkQ+xAXBceqDViJjgYgM95bUh14PdAFLHJls= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706120406; c=relaxed/simple; bh=Ot+bTBOPefhnDDQDaFuxiuUfKC6AG33bf2g9LLIDp3o=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=JwvDAtRi+ilTSuOKNUT954EgCFyXz42No5yaQXVv4kjBQIm3mp72XV43LllV09/lnp4EXFY+BFd9tgH2mC8a8x5k8wDonKvZ48dT67bpzh8yvB3K9S3CwWRTeqUeuV9fMsZJRo0ifge6clMydsm3YGI80zvA/15jUGSwvEica54= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mojatatu.com; spf=none smtp.mailfrom=mojatatu.com; dkim=pass (2048-bit key) header.d=mojatatu-com.20230601.gappssmtp.com header.i=@mojatatu-com.20230601.gappssmtp.com header.b=QYNmruvL; arc=none smtp.client-ip=209.85.214.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mojatatu.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=mojatatu.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mojatatu-com.20230601.gappssmtp.com header.i=@mojatatu-com.20230601.gappssmtp.com header.b="QYNmruvL" Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1d748d43186so25686655ad.0 for ; Wed, 24 Jan 2024 10:20:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mojatatu-com.20230601.gappssmtp.com; s=20230601; t=1706120404; x=1706725204; 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; bh=36MRRmXPqllz5KyDGXZTrimLPtySszyCB1oWLfkeCAE=; b=QYNmruvLsP2yi+DgkDU04HJOpUvmt6lL8jIsbEGItd3dcD1l00JO95hIHIhZPKeALv l/MqfZp06geMxaqoHMrf9PTM82mGixtuZBKJEFgc+7SvUX211ULWBDeKhcDGZvUG9xFl z5QLT0mR/Kt2ImmQQnRuvfRoVfMN1DdbmQn6EJ0HLX/l/cez2kB9lpfZVcopa45AEExV Si32EDSPrBtxPpGlQEfkDrCpJLx4ECK7F7HZCNtKJ+8D87AXdHyJiucO8bc09vUBImGp +NMijivk2yXaU1UfAPqzcNcQDSCJZHtjN0McAHR6T81ORkzYM6iZEdXBjZ9QZldcekm8 hMBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706120404; x=1706725204; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=36MRRmXPqllz5KyDGXZTrimLPtySszyCB1oWLfkeCAE=; b=MFMEtpge1h84YYWLXm+r2MNy67AtLYwaGXwOIGBVzaZlLymEyO0YqmyCFTZ3F9NmzL aZFBeC8m7O1pYB0zYc8Xt8GtlDfNkk5bALdAfx0khosP6WfDFfjtNiTf74eSIXyfOmNO Pt2Ve5g8knegQSCG9wOQQl4XYMq7iEIQnLxstp+AphmCkY22kEXcd3adnfCZD5qjHxEQ 69Opq9U69xE/FBYRLK+Gg7WNifcXIiE0QB1/lu9X1D+jtjZ1ltxrY64YXIPl0TswOteR RtuBPExlB65AfjYKAkHvHQZi/e1/KPuJDTvr1puyd2TL2mCheRLqhY6WYuw4NXkzguVV W2WA== X-Gm-Message-State: AOJu0Yw3KvXj0Cnpa2oImepbuvQf4homLuE3cugCIIMiUpIZofwsIM6O 45rZz0GlrzHQZAq0uQnSTHk81kZtloKu/9cJ9YrbqqSyTiWNRSt1JxbpnMTPERjFNJXvRzq1KSc /Kg== X-Google-Smtp-Source: AGHT+IFA8ivqEWLLarRkLP2QjyukvEHdH98jwsVsvjw2/mXwmVUw2LIgunucCasiskGZeTNqgKRloA== X-Received: by 2002:a17:902:82c6:b0:1d2:eb39:afa7 with SMTP id u6-20020a17090282c600b001d2eb39afa7mr1047236plz.138.1706120404413; Wed, 24 Jan 2024 10:20:04 -0800 (PST) Received: from rogue-one.tail33bf8.ts.net ([201.17.86.134]) by smtp.gmail.com with ESMTPSA id kd4-20020a17090313c400b001d74ce2ae23sm5577084plb.290.2024.01.24.10.20.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 10:20:04 -0800 (PST) From: Pedro Tammela To: netdev@vger.kernel.org Cc: jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us, shuah@kernel.org, kuba@kernel.org, vladimir.oltean@nxp.com, dcaratti@redhat.com, edumazet@google.com, pabeni@redhat.com, linux-kselftest@vger.kernel.org, Pedro Tammela Subject: [PATCH net-next v2 4/5] selftests: tc-testing: enable all tdc tests Date: Wed, 24 Jan 2024 15:19:32 -0300 Message-Id: <20240124181933.75724-5-pctammela@mojatatu.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240124181933.75724-1-pctammela@mojatatu.com> References: <20240124181933.75724-1-pctammela@mojatatu.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org For the longest time tdc ran only actions and qdiscs tests. It's time to enable all the remaining tests so every user visible piece of TC is tested by the downstream CIs. Signed-off-by: Pedro Tammela --- tools/testing/selftests/tc-testing/tdc.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/testing/selftests/tc-testing/tdc.sh b/tools/testing/selftests/tc-testing/tdc.sh index c53ede8b730d..cddff1772e10 100755 --- a/tools/testing/selftests/tc-testing/tdc.sh +++ b/tools/testing/selftests/tc-testing/tdc.sh @@ -63,5 +63,4 @@ try_modprobe sch_hfsc try_modprobe sch_hhf try_modprobe sch_htb try_modprobe sch_teql -./tdc.py -J`nproc` -c actions -./tdc.py -J`nproc` -c qdisc +./tdc.py -J`nproc` From patchwork Wed Jan 24 18:19:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pedro Tammela X-Patchwork-Id: 13529542 X-Patchwork-Delegate: kuba@kernel.org Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C0BE212AAEF for ; Wed, 24 Jan 2024 18:20:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706120410; cv=none; b=Mn4YJQ/PB0cM2BxP0Pw6DAhbwk/QBvj6nKziWjaj8z6IrocGf1nKg75YjPjLNvc+YUBytcoPT0CfcPMRW9iUnM53w3xPCLXuXjpiJTzEylhnVKIXKbC/Yd3vNswVuCPp/HJB+zSARYcvL6pow1xGSBN3RavlIk6sUSiEHhySVNU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706120410; c=relaxed/simple; bh=RYKAneGKj5rW3ZSaKMHN+jkOKYrCveP/BkhXpCVNQZ4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=uIrsCvLhaleRtHw28kxxRrVCjZVfv/D6hakfic0o8TTYieU5oOBiSi4Pkg0FKfACE6wemnDV34EU4pc+RyL8i/qYSEDNM6uQXvSqIFlKLTjnuJqN22YW4Cmb6zd796UTTJh5b/QeP5B0gwfpLm/43DTqd5oDcuVXLIklgfqO2Kc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mojatatu.com; spf=none smtp.mailfrom=mojatatu.com; dkim=pass (2048-bit key) header.d=mojatatu-com.20230601.gappssmtp.com header.i=@mojatatu-com.20230601.gappssmtp.com header.b=ceXq5Jv5; arc=none smtp.client-ip=209.85.214.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mojatatu.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=mojatatu.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mojatatu-com.20230601.gappssmtp.com header.i=@mojatatu-com.20230601.gappssmtp.com header.b="ceXq5Jv5" Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-1d51ba18e1bso52850605ad.0 for ; Wed, 24 Jan 2024 10:20:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mojatatu-com.20230601.gappssmtp.com; s=20230601; t=1706120408; x=1706725208; 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; bh=kcgbFDhBYDnDG7e+EicrCnnoYD+QkO9W9lsCV1iSmek=; b=ceXq5Jv5MzRHqE1C3NvD/5RICRqGnmdGvMduYyW11TMBUtZQa0G7Jqc2G1t4n+f5Kb toR7hETMB65j60p0lQFaAGHqM4w7Wypicd1Qaf6FWGnTXgoJIYt0ddbpMUd54CVeiq+0 FcXGsCoVtg2OUcQivrzrkwuD0f701x3zW/aGpoQgDGOwxcc11zI1tC9n2FrszVTkyah1 g6N+R1rlBVNGpli3EIrzPBFhRXckScRWP9Bd22P44i1nCV6etkCs9+hDLlCZeXAFfQrh gv/YnOCLSNmuO0QSdwj5BMiJtFFEBxPSJk1I1JpNOnk9YBGj+s+8dkmCPzqWk+BKwvt7 8XYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706120408; x=1706725208; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kcgbFDhBYDnDG7e+EicrCnnoYD+QkO9W9lsCV1iSmek=; b=XTPneuy7MBc8xtgEzw2C8asiUS69tmQ7tCq3Ju2p0bq6AG9zoWafJFTd4IUToWVGLj MvPWmpnkhHbgZv2x3T86XXIujTt1A5T/ptxE2+0s16tNCvb6+bwgQBdQfKqexyeVzhId kOLMxU44mzyds39l1gJ5bCtmRHcxJoWtIaAmmravpGSsX2+zbUUnmOEUCqUNKAk0aVHN IKP0yRjRP9UwheCWZy4Kt2yytY1QHR1N9pULUscSMrkJc6K6SiB4eYzcvFrhErAkHJEH yNWbQUzvBZI8YscZ7uOmIUPz2LIFyrOPEgKeXKwQsC7aWEe73eSzU2SFYc6v9Apvfsui vCvw== X-Gm-Message-State: AOJu0YwftM+2akbpUUX4LG3wpLLgP1k8LONg4wX5kEdvfnrh9JE332cM zlsGZnV2OwP3qrlAYEi1E6c1qw+BOFzr3+6YxXsz/EmCliuTqk5hqkfsWDSP6beiEYr0M6u3+m2 JEA== X-Google-Smtp-Source: AGHT+IE8CTP0k1buCWYsLl3oLDOecT3xHXO3leWrGiFV8Ppz71BOfI+ZUTkdNi12sgo3JEFHFPL0eA== X-Received: by 2002:a17:902:700a:b0:1d4:cd41:e44b with SMTP id y10-20020a170902700a00b001d4cd41e44bmr1187925plk.124.1706120408032; Wed, 24 Jan 2024 10:20:08 -0800 (PST) Received: from rogue-one.tail33bf8.ts.net ([201.17.86.134]) by smtp.gmail.com with ESMTPSA id kd4-20020a17090313c400b001d74ce2ae23sm5577084plb.290.2024.01.24.10.20.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 10:20:07 -0800 (PST) From: Pedro Tammela To: netdev@vger.kernel.org Cc: jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us, shuah@kernel.org, kuba@kernel.org, vladimir.oltean@nxp.com, dcaratti@redhat.com, edumazet@google.com, pabeni@redhat.com, linux-kselftest@vger.kernel.org, Pedro Tammela Subject: [PATCH net-next v2 5/5] selftests: tc-testing: return fail if a test fails in setup/teardown Date: Wed, 24 Jan 2024 15:19:33 -0300 Message-Id: <20240124181933.75724-6-pctammela@mojatatu.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240124181933.75724-1-pctammela@mojatatu.com> References: <20240124181933.75724-1-pctammela@mojatatu.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org As of today tests throwing exceptions in setup/teardown phase are treated as skipped but they should really be failures. Signed-off-by: Pedro Tammela --- tools/testing/selftests/tc-testing/tdc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/tc-testing/tdc.py b/tools/testing/selftests/tc-testing/tdc.py index caeacc691587..ee349187636f 100755 --- a/tools/testing/selftests/tc-testing/tdc.py +++ b/tools/testing/selftests/tc-testing/tdc.py @@ -541,7 +541,7 @@ def test_runner(pm, args, filtered_tests): message = pmtf.message output = pmtf.output res = TestResult(tidx['id'], tidx['name']) - res.set_result(ResultState.skip) + res.set_result(ResultState.fail) res.set_errormsg(pmtf.message) res.set_failmsg(pmtf.output) tsr.add_resultdata(res)