Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4823900ybl; Wed, 22 Jan 2020 05:26:10 -0800 (PST) X-Google-Smtp-Source: APXvYqy8cR5ZuUoJf6F5uphik38B+kH2gCCKSrg1cXMgCKIKLlkrCS8ZTujSWPMAhv055yv1Jkdk X-Received: by 2002:a9d:ed5:: with SMTP id 79mr7366683otj.72.1579699570219; Wed, 22 Jan 2020 05:26:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579699570; cv=none; d=google.com; s=arc-20160816; b=PVWV1dsQff8zXgmdgpe8S43rgYWg+GOyKVtnpxMUIzaHqMECbaqXH9jkuBpDYkQjGX FVDVXu1k9beXFN8hFmVJUeHoZHxxymG63rb6clD5MotJ6tLNDrJj3eg1K/tLRnULnc5V THkk9qCyzAyi2BNtzddJz/kN7EKgJa3PWFJvTiQBUr873JsLgtSsqftbTV7ZdVIR9dfd p3RIFQS/xY/ez7kldU3NaAGrKjiY5tsxypw/g9sRWHdnUsN6hClRILVSyoOThymnIst0 IMEs7PJZ49DH+oUYdyBteyYGBHZwBd8qwPsfmoICeQWS0qfqv8gQ7R6jJvJcOerTXnln gTbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=TPjKBEmL1qQmAeaX2g9By7nLTadpoyU3Jwh9QjD9JjY=; b=augKoOioawCbw/gUEYWZYoFXWJ9eiMnb7ttqGnzX/1psUpKXsC3eTYCUExiKhVqB5L nSAwe2oVJBA1cjHiD33jZri9qOII13xBG6dd4r6s9fJmeC6tI26EOoJHlmXrd5dB6q+6 iBRGO93/srMON5uAAUDo3aa29tu+2ze5JNrSggrfIP6rXXR2gBLJ90yhVQ/l0HCWHEBw 3D/LVC5xqw2sSvEzBTbyfO3NBwQGwdRnIUQ79TxM2ViTpHLhVXrYsDxqyRW7jg2Sj7Fy Qe87YE3Ryk8aTU6w+LN0Ai92CLvKAaqMkJHFUziSoqxJaJ0BnU3eXfkMa3MroMIPnE14 VZwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lLAjMS+I; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n8si23540536otr.102.2020.01.22.05.25.58; Wed, 22 Jan 2020 05:26:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lLAjMS+I; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730820AbgAVNZG (ORCPT + 99 others); Wed, 22 Jan 2020 08:25:06 -0500 Received: from mail.kernel.org ([198.145.29.99]:44524 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731131AbgAVNZE (ORCPT ); Wed, 22 Jan 2020 08:25:04 -0500 Received: from localhost (unknown [84.241.205.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0195F2467B; Wed, 22 Jan 2020 13:25:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579699503; bh=VY+e001eqKGE4m+ZqZaJPIa6rFwDCRWMN7NXie69oK4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lLAjMS+IIH69F+Jnx+bjwayudiJsMBJhGAgjKiUECbRV/k2CPhWUZLwOBw2Bzg3Ll kL/CU/P8Xh+lxHNqUw3qZLVqx4TanxqKGieE2U4K3k7kPDCRUgYzWZ+5+RbKF5v97K ++6OStzCmLlFgWqYDfHoX7TGtobzqpQeyyE6oH78= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Petr Machata , Amit Cohen , Ido Schimmel , "David S. Miller" Subject: [PATCH 5.4 166/222] selftests: mlxsw: qos_mc_aware: Fix mausezahn invocation Date: Wed, 22 Jan 2020 10:29:12 +0100 Message-Id: <20200122092845.597727250@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200122092833.339495161@linuxfoundation.org> References: <20200122092833.339495161@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Petr Machata commit fef6d6704944c7be72fd2b77c021f1aed3d5df0d upstream. Mausezahn does not recognize "own" as a keyword on source IP address. As a result, the MC stream is not running at all, and therefore no UC degradation can be observed even in principle. Fix the invocation, and tighten the test: due to the minimum shaper configured at the MC TCs, we always expect about 20% degradation. Fail the test if it is lower. Fixes: 573363a68f27 ("selftests: mlxsw: Add qos_lib.sh") Signed-off-by: Petr Machata Reported-by: Amit Cohen Signed-off-by: Ido Schimmel Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- tools/testing/selftests/drivers/net/mlxsw/qos_mc_aware.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) --- a/tools/testing/selftests/drivers/net/mlxsw/qos_mc_aware.sh +++ b/tools/testing/selftests/drivers/net/mlxsw/qos_mc_aware.sh @@ -232,7 +232,7 @@ test_mc_aware() stop_traffic local ucth1=${uc_rate[1]} - start_traffic $h1 own bc bc + start_traffic $h1 192.0.2.65 bc bc local d0=$(date +%s) local t0=$(ethtool_stats_get $h3 rx_octets_prio_0) @@ -254,7 +254,11 @@ test_mc_aware() ret = 100 * ($ucth1 - $ucth2) / $ucth1 if (ret > 0) { ret } else { 0 } ") - check_err $(bc <<< "$deg > 25") + + # Minimum shaper of 200Mbps on MC TCs should cause about 20% of + # degradation on 1Gbps link. + check_err $(bc <<< "$deg < 15") "Minimum shaper not in effect" + check_err $(bc <<< "$deg > 25") "MC traffic degrades UC performance too much" local interval=$((d1 - d0)) local mc_ir=$(rate $u0 $u1 $interval)