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: 767877 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (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 8FD31128366 for ; Wed, 24 Jan 2024 18:19:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706120394; cv=none; b=CV+qotf4dtESoGg943e818d2gVIB9+msfSIoKA/GCVNyPD0BfUHvNmpqDKp8qTtgDhlM59Dq4lPxdRdToDJf/5mx7WFcpIY4VV1sazbYme+34TfGZqpNP0seGh1stU5+eXUaTya0oJs+EnJXFBuYzB9HlraBsFjcQGQzH9/pV6s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706120394; c=relaxed/simple; bh=hNio0nD1Jw8dvozmdpvI20LoAzPAeMst7QlmZwbRnt8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=e+OWZeEIOMl0UprPDJpYmQHRdgq9apgcyEvhKPV+S0+5PyyjEGrwsLvxinwtACji3Jr0Mf3j4SCIe/O2BKoLGbaICHmSUh3FFDz7dMlOfQPi5M1Z4DSocYzn5J4p1eoTv9moXCrKJVJ6lxdklA/bQYBcLqyynguPgCYeqM+JyCU= 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.175 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-f175.google.com with SMTP id d9443c01a7336-1d74dce86f7so30085025ad.2 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=iQ8RJzuc6zalroVsZKLKFiobqJxEegrxgJnXJ3+4i1HF8BiNazaDE2t1BrDC5DnH++ 66k6VDBjeZh9M+f0yI+pRdoLEToWRp4IKf7/fb+ipZbFN2OjKvdS1kfV2yO1ycbCZctu jV8g0mH+FITOuk1uz6tr4Yk+jXcEb5KeCJl75Qk2iZxuwlT1Wfrbv1p+/II77HlIAW9A 6w7Cv1FWKrXeyMrEEp9E2qRcXpjk+qn8tav+Wcgj/zuRkddOk6uwjvv8ZtcBSI7PkoGx rTMxzgs2WBJWwoJ5FNL+rg/V3uqtej5cYbNsVig3ubY6ldzdVrrfeMx4GSWNEskKj4wA SGXw== X-Gm-Message-State: AOJu0Ywqq8vAmlxtxiXx/rnZJWVrn09CWpiEfB7pXZwe8Q31hJ+JsRDJ 2A98QtceBLtsduQQccLFNzJ9rr5+UKrMWuGHa1fjanBRgAlqu3kFpB8ZcG6cpA== 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: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 765838 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (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 D8CD012A168 for ; Wed, 24 Jan 2024 18:19:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706120398; cv=none; b=Ag4VHQ1fLCXIBRSrSWjvTWK7r/AKjFj4u+Bs4KIeweb4YcX6aRax9wv8En7jUXyvhh6gig/QuDiVatCHDH3f+DRfj6yZx4wTcxWV2lV9ikCDIQaA8GbWroN2se5cJHfa4DYHeA5xDxQSJZZZALAqZoXA2LoG54WcVsbvCt1fkaM= 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.175 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-f175.google.com with SMTP id d9443c01a7336-1d748d43186so25685135ad.0 for ; Wed, 24 Jan 2024 10:19:56 -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=Ea5dxLmYoEd6WAIj/rgvvc5BCWrPxAmE+jXkRFcKzt+F26g/shf8L6JfX7W8UD6LWK D9OW0PwBk72eDW5/e4tEFk7E43R8jtx2VJaOgqIJ9l7OlgRD4qEcnos8e+jAsm5MQ0hJ 53t8uQSqx1k7zoQwiPak0GQT+xY6KVbr1U0BUDb/tmypSRPWLBo+UONxvAFmBrnJ3Tts 4b2H/ILd4CJeD5lo4I7TI5JLZFPIBa7RLCS+fBWHO6qTNKkcpahjDqaAmfQ6L0o14X/Y FQ7xtBn36nimIhG7zVMZ2YmSCUmS541zwx7eDYvRLbDGleZakci8Ox28tVVEP/34PuPq h0Dw== X-Gm-Message-State: AOJu0YwrEf3tXmupAa9hpEMIEHkAb0mFjlwHvQBb8lyU0ybrzw3VvAna W/Oc6zDo89rGpGGmCYXEwLSjqjjQG/RzEkNbjhX72mxsU7XGDSYYTtEq+pynyw== 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: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 767876 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (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 6636212A173 for ; Wed, 24 Jan 2024 18:20:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706120402; cv=none; b=Otcia7f7BxNConSNw3F2aLjhF8uDxjSaONTqJN07NDeWW34J/AL5yplgyl56Fud0LrYBrQ8GkWhK/6SxlK1/7TrE0AH1tPj2YbWVCJVwKWq11C3ZOkP7NZDBecSsGB0N/fh0SKelRY8nEllUGgEm5oxmFieACRwEsfLImQ1HXUs= 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.175 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-f175.google.com with SMTP id d9443c01a7336-1d427518d52so42031115ad.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=KCQTb5nkiqegW6mu6WF2QNd43k1jmorEjoJXX4LzUgTznaeKapa8kJp1kjudUb8rjA hTODwLCZjxRxaGo/rxPSidpdDk6S/Up+hg3srXI1CmBSGHwr0C71S9mxWEn+BAx9ytzP 8iAy978/VmHQ+Ei5pwErfLJyypdySCbegmAIn7I+cHLg6742QAIsMaKfywOYG9+IaJPc FeyWVyF5D8mOuojKvIkQfP9zO9TLT9x7gFhkJ7cvM2BtkkinBb+RF/HeZ3h0HD7NHmTM ACj5fx2WrmCaQX1xpSoI0Wr6RHq3AO7vIqpqbNE5oaKzQKnQySkOEhjG6EWhjUDk2weL S0bw== X-Gm-Message-State: AOJu0Yxh+iI46dkK4mQfZXV8VSjf/yoB8jnotc4bsN8OtrmY8btxzczn AetaHbRKMg2msydxKMHFwK+pITe7YFj6I+QvTRXlh/ocb7sbKGisWTfpfwhq6w== 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: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 765837 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) (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 E52E312AAC5 for ; Wed, 24 Jan 2024 18:20:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706120406; cv=none; b=nFTNLqQPEC/4S9uODDqQooWnXdHHUWl3ZTj4yIsEYD2tJNhDx+Y3KdY04qHWlv/K/DaHQBqzqcIFpatxjudxHUx5UmGRLBRvcApnPt0xKbd2nXfeIqEMme1mOeTyXHRnMvLmaiu7DUFHzYhR63XVkL9XuRxA3nbl5Rbz/WHXdTs= 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.177 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-f177.google.com with SMTP id d9443c01a7336-1d748d43186so25686585ad.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=HNVHDrBl3StEzKd/iEzszvJ0BpW/558ItVka+KewSkAlHDmAzQY2IoxCfuRXpLjk/j ftc+McvhbkZfjkNiezuB0nIgH0dnpPf7k75zo5KfZA4CYxO6GYUJLfRlxKuxw5OWkxvE k/kKB+C74vWX2KfuAPFj9ta+TCDdW379G1D3Ag3Z+xNfYCntcOTIQ421w57LKSp8Kk1f gUafOSIATkixcYJHfH3DgGRlYJfAQTHKY+pmXl43VGoE1zN+PUZ4SmQCOHQ5T/eJ87LH pk4DkYIRb9W7pakQdAX1z7ViYbEJm7cUvjZiBWAMUsDiGdDg9VmL5rVE6SAzhLSb2HC0 mR2g== X-Gm-Message-State: AOJu0YxShtS8ejy3U6lxWghNV40LEp+O7/eWZD9meTdRVnqBQ8G4lBmp bUMnwDDTRKrYWBwBypKyXBNU3Cl5lTMEdvi2v2XMZ9BMxGBUoV8T2U9EpdhDNw== 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: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 767875 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (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 A3220129A83 for ; Wed, 24 Jan 2024 18:20:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706120410; cv=none; b=rhfFCxQ9BfvsZJmZv/aiyCuDWlqg2SCBfrHrVhVZ2cUDjwUHihDpnyoTdOmHVh4CO8ymmpOgnjRELWST73XjU8eXZf9WhJT4n2SgXkxoqZEUm3Aje7GkoYQdJjMH4qktw1y4QJQv2v0IbgrjoIUbCiRHBJsdS1SLgfVSNrFSHSY= 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.176 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-f176.google.com with SMTP id d9443c01a7336-1d75ea3a9b6so28073605ad.2 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=pRsTdFH/SwJwOI/pMRnEySeHJYUtbSynJzruBqA7OVhHu23LbszEjR067oVWxaNcLY eTsfJH09+xZ9R2iOjNiPolwrIZDkcoB31Zbkhir6OHUKhQS+z6RKgV0J/NqHgn4ggpJm C1JcEr+1273v5TX1bYZ/Ua/VVgleJNbUjqy7zil6cYILufj3PXwETa2DxqZe7fK7cuXf 22h1uBx+qUYOJI3kZynBB1t0w9jUvtawzXvO4qlrj+GJ1lMw8uRbCzqIoCiz69ntVhQT uRYvKBqeKI8ERf9N8wC9QY7vQQXu5qEasqNh60gxc7kI/8DzA/Tpk3mW0cG8VvksY751 7X8A== X-Gm-Message-State: AOJu0Yx2iuuc9BIiVGj9sR/my9zc3kIfq6ToiWLkDtKIKiOz70RM5F03 DuGiz29AlGzcA4qA9F66MnZGjHpoFAxXR4R19hwFhJcOM34V+TzSXbPmb+zS6w== 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: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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)