Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp680911lqb; Wed, 29 May 2024 07:38:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUmOA77L2xImkh2ZsXs3Uc2Dsh0v2nZDGiKSnoLSQUKm3DTCzRhvt6hPIHC6ynMZK71yVXkDcRwbulbrSlxY54I+W7Fg6RRkCAWrEklgA== X-Google-Smtp-Source: AGHT+IHcsa9i4pphwk96jw30PU1+qrV2u8vDRfJ4HgaRP0MjeJhegBKZS+9a4LjytbYuLHwISi38 X-Received: by 2002:a17:903:1251:b0:1e6:11ae:dcde with SMTP id d9443c01a7336-1f4497dd043mr176312595ad.58.1716993538253; Wed, 29 May 2024 07:38:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716993538; cv=pass; d=google.com; s=arc-20160816; b=rAYH7WngjqMvZJSjbiyJkytj8AP1WV+JYeyQTCIhe0x9JVFEJRQNFIVGgr4rGBVWCU qwclC9DZw1wfCb2fLKhVtXQ6EwMDMxaw7lMMe2bmZVQEmHv0QMaSWXZL831ZY4ISgWkQ zBnRToOo/eV8mbl9eJzZ/GNdDhFLCUHVoyyxWzas8CIPy7lKITTPSyLcutphntD5hWJR jxFQSLpKabBZAb/ECr/IzYZ2bi0vJ10B9m7eCNcyPGN9KdfAcatxE5Jp85Fp+89uPt2C Mj1DSW6Jt+g3neeDOOcbUkvNmW6gyKLyC3OhDJ+9CmaU78zt+/lFmSYWMRUhqeihqJco /nJw== 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=jOgmknVBSUnSkuGezqMV/1Q1QFxBtpCQVPL7B51STaA45Y62k0y8L9ZNq6T50p9ueZ bJxgKNTWMi2NxJtEnzb+Y8w4/XYc8xY1904XzUCjDU3zRg4KXiDBemwFN3qYHEVcp7ss jCyCNDdJ0N1x08kpmlyP8osAeGKkur6Dw1DdSydNyJDqNiyPBpZOfYsTkVuK9rP3n523 KWS+7JYRKwuTdPul9p0A3a/5QTkUxuUKTBiWi5K/Mu+GelQtIXZiZEVjd5O2DvBPS4KG rT1vvpVC2pNeXInaAhioYtH3EBjVMBt7h1IV/2T5Q1pTvAF4zA/8cytGUcvadHM9oveZ QI9w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=BbxHiInL; 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-194258-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194258-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 d9443c01a7336-1f4960c83f7si60480925ad.363.2024.05.29.07.38.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 07:38:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194258-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=BbxHiInL; 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-194258-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194258-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 606BEB23162 for ; Wed, 29 May 2024 14:23:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2ECC6157E7A; Wed, 29 May 2024 14:22:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.b="BbxHiInL" 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 9B804157A6B; Wed, 29 May 2024 14:22: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=1716992575; cv=none; b=MVcPiVxgXHbNuZi9AuF0otpPW77jC1JqjyUg6Eo2DnDoDHmk4S7Lb0pYXLrdDxw6na6uI6cfRn8+fVXnIn5m5/zeENwC3hySqZcdCHNW7ILP2GigmiolB2bmsYzAREJGxT/Qkchs0CNssxRcnndHlRT3Er1No0ZzFQWc4gkOzrg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716992575; c=relaxed/simple; bh=i1+W9fRwSuY7cIzxg3UDgG1qLL/tZ34N8qpXL2awnyI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=HKBuH1FOYNHQ9qArSybn7xSSRizWsB/6qEoJTQcG763S2nchEj0ZcII+cnbc9L9RmANDaZBwAS42HhLW/l6y4xk/e/IiPe30n8ljOVWRKm9jQzhqK0NH0AW+ABrjBPEqAi31a56a/DAY9gwv+hyMc52GZkhERP39SO9n/l1WSnc= 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=BbxHiInL; 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 3D6CA88271; Wed, 29 May 2024 16:22:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1716992571; bh=I2oVJcFLXkPCNKP7PqlC/eM5qW7lVm4lSg1L40401TI=; h=From:To:Cc:Subject:Date:From; b=BbxHiInLCDYI73Rz+vptL1jC0UDd5SG0btzkGHuWikdKesGmooljxpvLXUtRoRiHi kzJOVYaTdvr7TJ1ZFEqqD3RWyt8m+60aoMzcjFn03jiqXVtq71jTe4BpGn4b+uf+Ij 9Iw1qdHYnrczTQiDuNfUvtVu9I/pSQz9WA/dk0tLyGfBJzknA3paTa0kISfUCrw6Lg qTWt5SIayv9SjxxBL9IuAZW9A1L4cjdDTKy3d1yHpX0TUntmvkzfggxI+uveKnMiNq FsJMyrsZ9Ad50KjQR0mblh5cqpyvUH+H7GMsT8Nea1ZNHl2VNlklA3BoxL2Vxx8fYf NpPPc6IW2BLFw== 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_ping.sh test to use fixed MAC addresses Date: Wed, 29 May 2024 16:22:31 +0200 Message-Id: <20240529142232.2625747-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