Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp848059lqj; Mon, 3 Jun 2024 02:40:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV+ypBml7tgDAwUpxUkRUeU5Dies8NQj8aHPsABVo2WvW/w0GcjPq37UK8MBahLS2O1e/OKqIWUn6DBFRbxZCUG9F9ocT8opU4okCZpqA== X-Google-Smtp-Source: AGHT+IHRFypaSvNFSLpWRQy2v6VeJO7klbUkLdin7Lj0T2osVod9sBYUtz7qFXhV2n4hOStOiKe8 X-Received: by 2002:a05:620a:46a6:b0:790:ec9c:cc7d with SMTP id af79cd13be357-794f5c617f2mr1102826785a.14.1717407609175; Mon, 03 Jun 2024 02:40:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717407609; cv=pass; d=google.com; s=arc-20160816; b=OZ5C/MgX2rczc0pWg0NzC/60tZy6w6NeJviD9utZP2Mibyc7CqeAcm+chy/M2etucI ER8R6/z58VkXJ1QIZK0Y5wPNdCoCJ1o0Uh2uFBy2vMwmUwjnK/5VSrorXqavrUJS1MsD mz1No8sKrMHVy0eCvs2yNSK1XETyAYnktO3oGAVnPQUREa3WhV7HL1VNfEX+yaWcbKfE bnPLa4D0vDQETI+28xvwHtsEIrEF7WpIpiXlwOf6HGYnovYmBood5r4JC+BLgZr1BMGo FGgRsSqbeU8mPWOm0jwG6Prm8aRbUmmgxjgKGlFuVZv6ZkERp9VgHTbIBIlsStq9hcZM rMww== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=UV/qo+bV8vb9T6j4/F9/vMYZisRKPxcSus1SVVWYnOE=; fh=7RJsHlCY5Qp5v1WSVrwlru+liCFILP+6Qvk16N9m8hs=; b=IrRjfZ67zsLQUZ6K/1VD6KdjdDBzGR8YDYZ1T2PZai2BoFEpbv3k70RYSoOCKDlM8o 3i+Fb/sPdqnrAdISe3rii62JTq7KNL8MejexDC56vMkzUeEBhZl6l2KDEOUh0P1Jg56m 4QxMi/UlYubxETYQlrsdgVSWxtZB3YHKMpyqIoTtw0LVAIjePt6bX9szyxyRV5iQZeKF OkEUU+e37TMHqVbowVxhmqTMsr5yyHCBDhvrpYOsEMNznpGWGPdTuocQEFwWI2esAI3x m+mmzuMnAE928r5227jMdtTDZ7POLAnokA3ChmiEVnfLtgXz7MVXV1LRT/xsapcrwaTD XQdg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=AZzIuOXi; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-198906-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198906-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-794f3062f56si765032085a.355.2024.06.03.02.40.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 02:40:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198906-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=AZzIuOXi; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-198906-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198906-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E0FBF1C20F27 for ; Mon, 3 Jun 2024 09:40:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0A36084FC5; Mon, 3 Jun 2024 09:32:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="AZzIuOXi" Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (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 C657B811F8; Mon, 3 Jun 2024 09:32:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717407159; cv=none; b=ubcaDSntnz7DlWD+TDW+QfyQPOQYUFhzgbi1iiO8a4OQ6kgIZBp4ZBx2xdAoYQzA6fo9EoYp+rW/f1nJRZ5eR0yMe3ZWAUWJKzWVKKbvonAQ1zsP6AWc81/MA2K/RSXn2GwxiaJRzQqILJu/lf7u5fquUdLLNLFxrYaxc+qxdXA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717407159; c=relaxed/simple; bh=oYGWqWyRSveq4oUmnXF2Tbphy0q/VHVE+jqDDeU2UhA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=E4L3oWjrtvXgkjsvMYsUNfJZv6ajBqeInmSqUOW3ArQvnf+QXUtZ4iOjX7p4VT5kL4vl79rVZwpGBYU6qZmGLMH/e+2BJGV4nd7tb78UfmTnD7HFNtUmy/XeDiGFiOehnEAGXSDvh8XPHit2YfEk/A1GVvdoYaQ7p/E824yssYw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=AZzIuOXi; arc=none smtp.client-ip=209.85.214.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-1f6134df05fso37436995ad.1; Mon, 03 Jun 2024 02:32:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717407157; x=1718011957; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=UV/qo+bV8vb9T6j4/F9/vMYZisRKPxcSus1SVVWYnOE=; b=AZzIuOXij0IBYFSAypRAWB04iOYwlrbDo87enGzdUg2PQuVeB0102ALPdMSi9WgD8d dLYcZBqaYl+OeGx0oR3tTMQyQ+FhJqNf+/AzqMwJPOXC8Bi+bcX5fnvqK3UsPIr6cSvg u2m3H2pkgKrg97ZlQ5dGo9wDzrbjBDAufwh9XcmTerBAt3AUG+Jw1nHp1WiNYiO0BMT0 V46eRWOIkdCi3J5bcuvkldB8Yb4/Gvs04o6nXG/sSlT6mEHJxkjNcLtiHpcG6vcIVq1f YFQXp4DEvPk6AgrdduPXeDOwG6vYnkkdR6BFJs/bQkqPCV/4p9rkKT4/1m5e853WTQh9 135Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717407157; x=1718011957; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=UV/qo+bV8vb9T6j4/F9/vMYZisRKPxcSus1SVVWYnOE=; b=VluTLdp2bltMerh2dDFn0jKsMsEybLIguXrh0cJYJxG4QJG6pOVOGA03Y56F5Rmr6h fLxXd1QFTJ36IRm/3WhPwLwCTv3Txhhuve4PUDxeSCodKP1nSStJ7HyxKrT882kZ/RW/ McjCSmU5VLSws5bPiWfc0UmDQ2Ju/KS+U0LhSw9l3hW/IzNMnYgXPvVMBa3XRlYX0ZV9 PwTxR5OTEWpBch2lc5zC3FmchsJb6kh1oQmIPAZXYj2zTqtwumW5Q56466yt0yePTxCc 0157RwetuZkzr88TjBEsUivkddhFdSHwrJ7FkgAK6W4AG17HC5ckOGjy/RpvArn0b5nK RGxA== X-Forwarded-Encrypted: i=1; AJvYcCUimZ6aV2PAroC7MxdyjD2iDYhaDHH2ZJa+ltvuAPgcyMgzBX2rLIStP2VdKIwQXs6/QOWVZ4N/9NGcp671WkDKygkBDkWs54cixP0LIXPxIhjr/Zbs8D8aIceBYAoV9Le8ndFmIEPCZpLBNHGCUPZgyct6RvPA3/det434UlLZB/alXGsR X-Gm-Message-State: AOJu0YzkxeUqCNoY/s1T5AFxaDqTIfSLVhQrQKZyNV6PLEpVM/WboT8q 7ODODbNWBX0JUHARdlNhFSNxhrNqRGXVNx92xzjENqFII3DfkqE3 X-Received: by 2002:a17:902:7ec8:b0:1f6:62c:96fb with SMTP id d9443c01a7336-1f637016951mr72103445ad.30.1717407157060; Mon, 03 Jun 2024 02:32:37 -0700 (PDT) Received: from Laptop-X1 ([43.228.180.230]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f6323ff9f3sm62003845ad.247.2024.06.03.02.32.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 02:32:36 -0700 (PDT) Date: Mon, 3 Jun 2024 17:32:27 +0800 From: Hangbin Liu To: Lukasz Majewski Cc: Jakub Kicinski , netdev@vger.kernel.org, Paolo Abeni , 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, Geliang Tang , Shuah Khan Subject: Re: [PATCH] selftests: hsr: Extend the hsr_redbox.sh test to use fixed MAC addresses Message-ID: References: <20240529142232.2625747-1-lukma@denx.de> <20240529142232.2625747-2-lukma@denx.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240529142232.2625747-2-lukma@denx.de> On Wed, May 29, 2024 at 04:22:32PM +0200, Lukasz Majewski wrote: > 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 > Tested-by: Hangbin Liu