Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp681098lqb; Wed, 29 May 2024 07:39:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV6CUsP4ie1TMx1IR+sI2jz+LxqAN/0Uco2WepWJ+QBGwXTqXHYyiDw5WXpXkvKdRSdV6eH17gCjSiI9aWSI5eT33M3hcLo8wmmxT/tUw== X-Google-Smtp-Source: AGHT+IF866JDBVoDFkO6drai7/LUJmbbfCHaTN6SACbLGkkBBjJn7YKqx5+28ZhzQUuweGIBnigk X-Received: by 2002:a05:6358:5293:b0:186:4ada:4256 with SMTP id e5c5f4694b2df-197e5466506mr1983546655d.22.1716993558886; Wed, 29 May 2024 07:39:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716993558; cv=pass; d=google.com; s=arc-20160816; b=Ywvql+r7zs032OVDD7EEuk6bZ4yrSW1PKmQeyPNAsQbamXn4bX9eUX4OSChMK++AD7 tvUB8RH5rRwbIPIQPMFT8r8SJG1l0lKZL6tjOr4ICc67mIDwS2eoJvDaO7+nP6WJLv0j PJYVsckca45Jdd0LUiQmwEl1Hji31tFAVsU2jURDpWnaF5WE8LpuUt9jP05ao2S4phNX +GRUuR75wSvIwpzvQBnj/HcLkWIXn2snwjMIBhYTYBSxagEzroFkF55AtXs00nvin7hQ PtHjSngq/gsU7S3Tq5XyctatXoCYbyb/uIzR3WLQgXfUrJLNXjcyxHAECsZMBkm17qSP ue+g== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=yzK/jJThiq2QGD8NcEQ2x+5IClGOW3kK8VcfEbej7CA=; fh=K1mMwRXsV1QBmmI9CG7VZAnkUl/lZkEvfD8mUWav6OE=; b=kEhQ1d6ASZeovoWM07awXRkYCfVbxnX9nhbXAZ2MwNhjM1KuRCBnsWL2sbUsAZRLKc OblfZus8uvWF4UhtPdCqswPzaQfV2zyMjkVm22P/JdxWdJRXqSdAIDfQgDY3m3IVF+dK B7ujfI1jV3kH6Dm26dyisNnYXFp9aOEO5q2z9UL4wozpoCzq63d2Dc0olq7usDkuzi5L 1dI3HtYgJ2N2YCQnLIV9olXo0yO7PcVfdh556VnICbknCSGLguxtRnZfS/rM7eoOEJah zkoxVGxCWnQNMpbGlChyfo9l+7OpNzItMWsVFXSt8/itCc0UtTs9q+tkYMUIOdocx8aY ZPOw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=YRhVqDOa; 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-194259-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194259-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-6822779bf12si10090520a12.350.2024.05.29.07.39.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 07:39:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194259-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=YRhVqDOa; 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-194259-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194259-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 61313B23A65 for ; Wed, 29 May 2024 14:23:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0D1071581F5; Wed, 29 May 2024 14:22:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.b="YRhVqDOa" 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 B7066157A48; Wed, 29 May 2024 14:22:54 +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=1716992576; cv=none; b=W9IQUOTqwVEG/1kpOhZaTAeOYPqBeQi7EZ+jPjE1jS7R4l7JL1AzLXT1npowCqSZJ0xgzMEsyYGoUq/EKIm2hmfmsgoC2hKMJE+3oQYyS/21igSH1SF2+58PSDvc/GhrfGCJPggAjmGVyQujKTmRImOE9TI+R/PTy607Z8mvymA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716992576; c=relaxed/simple; bh=rtTnp6DNjxdV478Y4SxUq0UJyuySEc8owZ4xpBLB7IY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=djtqnXQZdDkuQ69odhiWN0sf1Y6XhLf5yjmTYE5jV9nWYWKrgSxZF5jN9hm6xoIaDTyj1lMWDdc8fwZ/RTRBMVfWZjED5luMuELB/F5/VX4QsDb9YQ1wlI8zNwXbh8JYxmNE2n9I1hJ5UdCAInjGxL8B/CfydNz77/1w4+ZgE20= 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=YRhVqDOa; 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 8B9EE883F4; Wed, 29 May 2024 16:22:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1716992572; bh=yzK/jJThiq2QGD8NcEQ2x+5IClGOW3kK8VcfEbej7CA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YRhVqDOa5ILpGXEkvulDSTLN2eWhxyONzpse+orLOwBEj6Ghfgl2Vo0NoMdezVYA2 oD1/wwjlPAzrmcVGIDfijLlc+6mMR8WvnhAAW7vYghiDYCDQPcVRxCxoiz6Eu+YpUk isefaqW6hm7c5QvnkzylAjab4n5R7u7QzWVvFSntREeS1C0FlzOpyPLoxqXQUfG7rN 2DH2IrTENFSLzalxyPsLLuwFdZLToEHKJ4leqekuTwKe5MnKmQ3v7ji+46OPBe/Aik nerVql4rjruGqSm2Y+YZ3QcFJ/V2PF+zQK9zm1JM8EjRr4JGqZig5DSDyFvpDBPQHs humnfSara3ufQ== 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] selftests: hsr: Extend the hsr_redbox.sh test to use fixed MAC addresses Date: Wed, 29 May 2024 16:22:32 +0200 Message-Id: <20240529142232.2625747-2-lukma@denx.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240529142232.2625747-1-lukma@denx.de> References: <20240529142232.2625747-1-lukma@denx.de> 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. Moreover, it allows to mimic the real life setup with for example bridge having the same MAC address on each port. Signed-off-by: Lukasz Majewski --- tools/testing/selftests/net/hsr/hsr_redbox.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tools/testing/selftests/net/hsr/hsr_redbox.sh b/tools/testing/selftests/net/hsr/hsr_redbox.sh index 1f36785347c0..998103502d5d 100755 --- a/tools/testing/selftests/net/hsr/hsr_redbox.sh +++ b/tools/testing/selftests/net/hsr/hsr_redbox.sh @@ -96,6 +96,21 @@ setup_hsr_interfaces() ip -n "${ns4}" link set ns4eth1 up ip -n "${ns5}" link set ns5eth1 up + 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 "$ns2" link set address 00:11:22:00:02:03 dev ns2eth3 + + ip -net "$ns3" link set address 00:11:22:00:03:11 dev ns3eth1 + ip -net "$ns3" link set address 00:11:22:00:03:11 dev ns3eth2 + ip -net "$ns3" link set address 00:11:22:00:03:11 dev ns3eth3 + ip -net "$ns3" link set address 00:11:22:00:03:11 dev ns3br1 + + ip -net "$ns4" link set address 00:11:22:00:04:01 dev ns4eth1 + ip -net "$ns5" link set address 00:11:22:00:05:01 dev ns5eth1 + ip -net "${ns1}" link add name hsr1 type hsr slave1 ns1eth1 slave2 ns1eth2 supervision 45 version ${HSRv} proto 0 ip -net "${ns2}" link add name hsr2 type hsr slave1 ns2eth1 slave2 ns2eth2 interlink ns2eth3 supervision 45 version ${HSRv} proto 0 -- 2.20.1