Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp851616lqj; Mon, 3 Jun 2024 02:48:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXLv++5IsApdEx/QbD285/6mqdhZYYWSyVWqUfu+1SBqWz3RytUxct4LJpzbY7wONknr+l29yJ0fq8kSGk5vDlycEgtEdaGOhOJ2wxxng== X-Google-Smtp-Source: AGHT+IFeNH5KPsEYmft2mq0LVvfSCGgKmxpw2pI5kCcSzfxRC8NqVHgMwjrC6l+zjT9ATakDjUpm X-Received: by 2002:a05:6e02:154b:b0:374:9a3f:d197 with SMTP id e9e14a558f8ab-3749a3fd56bmr44998115ab.15.1717408094952; Mon, 03 Jun 2024 02:48:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717408094; cv=pass; d=google.com; s=arc-20160816; b=ScHVrZFsVqq2ZuPiby8vaCeq5vb5lSauxPpkknC6i+WkeItyIb3kDXx4JoNqWXjvLw N5lrGLrOBr5fASfaFXlXdpg/0hg7zElffVAYGrGB8yVU7zkcJMJbIgzikVhn/JtR6EEy 8vEqGnJWwXja/x83ulu+QXd7pIYnpL/CawWCPbQxp1ZqEn1/8kThIPaFqkd6m2xLSyPQ s+WupWyqMLwQTlzKuPfB25pR+DK4PJtgA7uMAUZQkkJqjPPmg3tm9X0DdJKXAUiyLlBo ogtDqLDJkfZzXYXnVpt0xwTwGHcgKyxAfiCneg5IZf+kohrgD7mv1jJRwlwQaCftzM9Z fmBg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=I2oVJcFLXkPCNKP7PqlC/eM5qW7lVm4lSg1L40401TI=; fh=K1mMwRXsV1QBmmI9CG7VZAnkUl/lZkEvfD8mUWav6OE=; b=LFXobHkDdLPtBHM/HmJlg4JoxxFAH+HdZe5sfJMmLLZbY+qycv7XfGL1hK3SvgAKnP 9TTDfqHpdKUzhcquntGHyehmBX1le5G2evBJFNOLPx0m4lp6a5AeLGBD6/UYhG2W9qOH WIgGOZ+sLTT5kPm7Ivpvr9bG4RiZDFg+7WMUZosHl/IK2gpf3Z3kLULRwW3t976tm5BI ucAG57hkMMgUAO/OM7AT9ehhaYrCt4j34mFRh7kTHEvsiKYYirjxl1qxkoE8lmFdCT1s 2DeJ+l6DP3xsjFTlEdV7CSRDaQ9g+yV1OtEHuP6aFKD+n0lp8Sew3ApdLpZjg6HLSKex R/4w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b="brt+wWA/"; arc=pass (i=1 spf=pass spfdomain=denx.de dkim=pass dkdomain=denx.de dmarc=pass fromdomain=denx.de); spf=pass (google.com: domain of linux-kernel+bounces-198914-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198914-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=denx.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c3540fae9esi173984a12.35.2024.06.03.02.48.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 02:48:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198914-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b="brt+wWA/"; arc=pass (i=1 spf=pass spfdomain=denx.de dkim=pass dkdomain=denx.de dmarc=pass fromdomain=denx.de); spf=pass (google.com: domain of linux-kernel+bounces-198914-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198914-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=denx.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 6AE08B2224B for ; Mon, 3 Jun 2024 09:42:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 93FA212F581; Mon, 3 Jun 2024 09:33:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.b="brt+wWA/" Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 0C74C12EBDB; Mon, 3 Jun 2024 09:33:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=85.214.62.61 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717407235; cv=none; b=uD1YZXSfkcnZt5KfB/8Ngdydow/z6CSfONhZnAWDYAwKXzrmV3MohyteHono/mHd3df7OUHDZLMBlGREVlevF0jqr7ACPIQbXSc+ruQL/CZaCFGkThYJUBpbByGivkCd+fQnJzz2COc7i1D2c8W6gtvBOU1kzWCFV/ytlmZdxjM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717407235; c=relaxed/simple; bh=i1+W9fRwSuY7cIzxg3UDgG1qLL/tZ34N8qpXL2awnyI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=ILLnUEcS+AO5pNsMN6UlL1ivvOrAvtDM8xIR7AxLNgfRWF82YqWcntJDY3Oxy/lFvbgnCsWpWUfVqKJRWDq9hX13P+Omi2kSllWHhdEBCG6i+I3FO6Qdl2Wc+zEceeiM/MoSm/dgqdLN4EYWycN4KPYYA7bPuuw0NnoUmd4mqXY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=denx.de; spf=pass smtp.mailfrom=denx.de; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.b=brt+wWA/; arc=none smtp.client-ip=85.214.62.61 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=denx.de Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 1F1A687D2F; Mon, 3 Jun 2024 11:33:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1717407231; bh=I2oVJcFLXkPCNKP7PqlC/eM5qW7lVm4lSg1L40401TI=; h=From:To:Cc:Subject:Date:From; b=brt+wWA/jQ+G5PMyeMQOk03ryMEGzHCQWbNukTz93hXQC9fip0hznUt3NChgz1ijl tNyovUR/JX3QjNfyMTn+EuLU7U71+IMNDXWvshwP0JTSZ7cgEOadkCOzw7WRll/Mch EFdgy+QANClX8ItbWxUJBv69yfUQnc+38v2si3K5aOUZWVKbXRugxtZOEeytFsz7sC jTgGqPmhk2ecmWh7HApr3dWkj6oiSbiEyGYmnMqnTp1e1zB38krqcbAfMMmnCmm+2b OPyHKxZybw0we54dCzoyQ5doNE/W+DeP/rBlNf0JNoJzBhD2aPejUWtxuzT/+Pg2KG 698KWU+j8pc4Q== From: Lukasz Majewski To: Jakub Kicinski , netdev@vger.kernel.org, Paolo Abeni Cc: Eric Dumazet , Vladimir Oltean , "David S. Miller" , Oleksij Rempel , Tristram.Ha@microchip.com, Sebastian Andrzej Siewior , Ravi Gunasekaran , Simon Horman , Nikita Zhandarovich , Murali Karicheri , Arvid Brodin , Dan Carpenter , "Ricardo B. Marliere" , Casper Andersson , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Hangbin Liu , Geliang Tang , Shuah Khan , Lukasz Majewski Subject: [PATCH net-next] selftests: hsr: Extend the hsr_ping.sh test to use fixed MAC addresses Date: Mon, 3 Jun 2024 11:33:21 +0200 Message-Id: <20240603093322.3150030-1-lukma@denx.de> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Fixed MAC addresses help with debugging as last four bytes identify the network namespace. Signed-off-by: Lukasz Majewski --- tools/testing/selftests/net/hsr/hsr_ping.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/testing/selftests/net/hsr/hsr_ping.sh b/tools/testing/selftests/net/hsr/hsr_ping.sh index 3684b813b0f6..f5d207fc770a 100755 --- a/tools/testing/selftests/net/hsr/hsr_ping.sh +++ b/tools/testing/selftests/net/hsr/hsr_ping.sh @@ -152,6 +152,15 @@ setup_hsr_interfaces() ip -net "$ns3" addr add 100.64.0.3/24 dev hsr3 ip -net "$ns3" addr add dead:beef:1::3/64 dev hsr3 nodad + ip -net "$ns1" link set address 00:11:22:00:01:01 dev ns1eth1 + ip -net "$ns1" link set address 00:11:22:00:01:02 dev ns1eth2 + + ip -net "$ns2" link set address 00:11:22:00:02:01 dev ns2eth1 + ip -net "$ns2" link set address 00:11:22:00:02:02 dev ns2eth2 + + ip -net "$ns3" link set address 00:11:22:00:03:01 dev ns3eth1 + ip -net "$ns3" link set address 00:11:22:00:03:02 dev ns3eth2 + # All Links up ip -net "$ns1" link set ns1eth1 up ip -net "$ns1" link set ns1eth2 up -- 2.20.1