Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp1161826lqb; Thu, 18 Apr 2024 01:46:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV6IEqJ+YmyL66xj1XF32ywzmuebJjtterAg6kKwaxPsdgZ56z8dGjoew9LAQXn5k2ZN4yqjqRc8x1KL6k+53rz4DNsLyxwQsQAhEjO/g== X-Google-Smtp-Source: AGHT+IGK7kZ+urhxUFXeHAQ4x3FzzDIc0F2rIx9v0UpbeWbf6of2V7RAwHV3Og5laJA8VtwNdCM1 X-Received: by 2002:a05:620a:1215:b0:78e:f119:1c28 with SMTP id u21-20020a05620a121500b0078ef1191c28mr2153346qkj.69.1713429980282; Thu, 18 Apr 2024 01:46:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713429980; cv=pass; d=google.com; s=arc-20160816; b=NtTgwu0s7M9C/WkfEIxcdEPn9DpCKrrRY/tlP4Itcyh/WajPoavAcn9xWiE2U7+vDd dCfFCNsB4jhcE19DtBl99nDBgEXftT2BDPRu+VoKnkHCo/VgSg5O/0cPrFTt/AlaL/h8 XM6G25kjk9z2vC9e92rGNYuZ3A8bvmWaWdMRjeor0aKMG40wgDU4qISay0LVJkPuRnyk OQiw11lL/UdcjPKKbZ/7tPnJI+IcmtXiqM4oKk50O0DgSThIRpvTNygAEn+DnNBc3Mef nelVupxs0CO20UMQA5lwO5zS5cnGuIKpvYhyrxTQ7t0YdxGuN93U9P7TLfk2SccZo0/N TIgA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:autocrypt:references :in-reply-to:date:cc:to:from:subject:message-id:dkim-signature; bh=hbetPfAl7oGIPhY12AHVrIYHy5IAQIxNhlC8CnnpFIU=; fh=XS9MwKBeEcr+Klft8278FHhULVd7+cuWf1N9Hc6R960=; b=fTG4bE4NO/+xgQ/kGwtUJAulrahZsGFqcqwHb9lQhTHhoRVH7P2yhFGKnA5Z9T7Jyh Qw0yeawg8zAe0bAQb2fkzyVG1W0Roq5hqlnpQd8zDkCZBkNnvQtbwPDodks4pmYYWAUH DftuaVYA2cWx2u/wukxVQJN3TdRD9vJ1Ubu+Q2lralx/n2oGZMZmAFuxnwnio9hlGJhH MJ0cViu6Qr4um9WdYF11U0b/WijPRtpPphfpBYzCFk/qbb32rEdzb7mGYjvTUV1QneQ8 ic+rC3tJtw7QWGcZpXclv0HSlOMT4b95PiKkrzhtW9fvhqWpmnPmHthhd0EM/X/5Q1CU PZDg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dVvXFhss; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-149740-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149740-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 f11-20020a05620a20cb00b0078ebe285f29si981520qka.344.2024.04.18.01.46.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 01:46:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-149740-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=@redhat.com header.s=mimecast20190719 header.b=dVvXFhss; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-149740-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149740-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 B3D3F1C2115E for ; Thu, 18 Apr 2024 08:46:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 764E6158A13; Thu, 18 Apr 2024 08:46:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="dVvXFhss" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E29C17B3FD for ; Thu, 18 Apr 2024 08:46:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713429967; cv=none; b=SKXEn4KD4YlEawjSDl6xsQfilrvn4rV+yTVhPcNWEJL1741uUgrn7jMEJ/1CzoCb28kwIvJYsKK2dJi7pvzMn9cnP6JfSn+djVmxyXLhplpLsavUeyRVAnqm3fvQvbSn8kdiDQ7O7GbuFuQa2vR50P1Iws63TvBRzrXjBbYaDhw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713429967; c=relaxed/simple; bh=rL4vv1rvEdxBdNSd4B9Z2Db4xJsvrctpqJOSUdkm9AQ=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=sCTTR7Q7j3qLCJg1WlInn+/8Xxt04DLWjPIq0yJsfj4H9fjZo8/gcH+pcJsuYgM7tyMRNJcBeaX+kAVCiTCjHtbbGN35CHyutnvGmEBR9bO8K76wInQGtPO3yZ8eFelK7Kfi9LJAoWvV24u7Es8c8hVlbEfpxBIJmLQdcxMgueA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=dVvXFhss; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1713429964; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=hbetPfAl7oGIPhY12AHVrIYHy5IAQIxNhlC8CnnpFIU=; b=dVvXFhssE8h3G0f8sKPAAbD0Dk8WqfK/CuMzsF/TcwWiMWVpqtZpMOq6NvYT+0DKSME+Du Y/dNgZ3MBeoEb4S5MRagQ4aMwzUJMNvVlvL6SywUM0EDM1B5QZydirkWh7gGuxUZMB1W52 5Aor2ISWDIjRdZyR2UHsgi7nZpMmmOI= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-503-_6v4nhbTNtSnrHZ2rv_JgQ-1; Thu, 18 Apr 2024 04:46:03 -0400 X-MC-Unique: _6v4nhbTNtSnrHZ2rv_JgQ-1 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-349d169170bso86807f8f.3 for ; Thu, 18 Apr 2024 01:46:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713429962; x=1714034762; h=mime-version:user-agent:content-transfer-encoding:autocrypt :references:in-reply-to:date:cc:to:from:subject:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=hbetPfAl7oGIPhY12AHVrIYHy5IAQIxNhlC8CnnpFIU=; b=FR6kv/lFDXjuHcrdAsffjgiWdq61Dl89dWKwtDlJNguziwDgR8X5tXaPMpXOwNdEix 4CDir/idWshH+bDmLHMOj38F0M9P3b/doEECTP0oFDyIGH5zLaNDMGr0CnwyzIjyEWfu 4P6NXLMol0eRxVTesqzwXPPFynE0AKGb/RqmtEH4C+AuZ+gqHyfiYmeoMfu7jM2eoj6O oTGr+wlRe30vukX0eKUwi8cw61dPgV72JJ14UTPQCXMyN9KOiGVHN/bQtdiIfzMBy4cy xQldzveCxUWRVxFJRGIiHv1glOfq4xYTOtiRTA8wDpE0g6879jwqiZKSvXgn0AYZPv/7 d6TA== X-Forwarded-Encrypted: i=1; AJvYcCXnAGpWzcEHVB0nu8b4TEzQBQMtcTorQoS0zT+GTUOHmAeyhSCqOSTMIVpBqGFF6j/NNbIMwmoUdmJxfpJjCYOta5iMK3CQFpvfuaKA X-Gm-Message-State: AOJu0YwldSHZrw03nDwkW8ZHmZUBDClb/9iZaeKyicdh1uW3V/tBxa0j 9N2rYkPK6YphLoDRfw1CEjB3jdGvHbkls0rQqlKkSl9EdiLS48zXJjSSYVwEkZv9+S1mCQvIN8S 2xCBVp8LdgPrucNWZuU1DUtLVrBQr2+D7ESM+lC+xCC2OhNNX8BcW4x8I4+mwQw== X-Received: by 2002:adf:f305:0:b0:346:408d:42e6 with SMTP id i5-20020adff305000000b00346408d42e6mr1248466wro.2.1713429962008; Thu, 18 Apr 2024 01:46:02 -0700 (PDT) X-Received: by 2002:adf:f305:0:b0:346:408d:42e6 with SMTP id i5-20020adff305000000b00346408d42e6mr1248450wro.2.1713429961623; Thu, 18 Apr 2024 01:46:01 -0700 (PDT) Received: from gerbillo.redhat.com (146-241-236-143.dyn.eolo.it. [146.241.236.143]) by smtp.gmail.com with ESMTPSA id h16-20020adffd50000000b00346d3a626b8sm1282279wrs.3.2024.04.18.01.46.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 01:46:01 -0700 (PDT) Message-ID: Subject: Re: [net-next PATCH v5 2/4] test: hsr: Move common code to hsr_common.sh file From: Paolo Abeni To: Lukasz Majewski , netdev@vger.kernel.org Cc: Andrew Lunn , Eric Dumazet , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Oleksij Rempel , Tristram.Ha@microchip.com, Sebastian Andrzej Siewior , Ravi Gunasekaran , Simon Horman , Nikita Zhandarovich , Murali Karicheri , Jiri Pirko , Dan Carpenter , Ziyang Xuan , Shigeru Yoshida , "Ricardo B. Marliere" , linux-kernel@vger.kernel.org Date: Thu, 18 Apr 2024 10:45:59 +0200 In-Reply-To: <90c5d1b6747d7699ebec50168672f1c435269e7f.camel@redhat.com> References: <20240415124928.1263240-1-lukma@denx.de> <20240415124928.1263240-3-lukma@denx.de> <90c5d1b6747d7699ebec50168672f1c435269e7f.camel@redhat.com> Autocrypt: addr=pabeni@redhat.com; prefer-encrypt=mutual; keydata=mQINBGISiDUBEAC5uMdJicjm3ZlWQJG4u2EU1EhWUSx8IZLUTmEE8zmjPJFSYDcjtfGcbzLPb63BvX7FADmTOkO7gwtDgm501XnQaZgBUnCOUT8qv5MkKsFH20h1XJyqjPeGM55YFAXc+a4WD0YyO5M0+KhDeRLoildeRna1ey944VlZ6Inf67zMYw9vfE5XozBtytFIrRyGEWkQwkjaYhr1cGM8ia24QQVQid3P7SPkR78kJmrT32sGk+TdR4YnZzBvVaojX4AroZrrAQVdOLQWR+w4w1mONfJvahNdjq73t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8VJJhzRl3Nb/EmO/qeahfiG7zTpqSn2dEl+AwbcwQrbAhTPzuHIcoLZYV0xDWzAibUnn7pSrQKja+b8kHD9WF+m7dPlRVY7soqEYXylyCOXr5516upH8vVBmqweCIxXSWqPAhQq8d3hB/Ww2A0H0PBTN1REVw8pRLNApEA7C2nX6RW0XmA53PIQvAP0EAakWsqHoKZ5WdpeOcH9iVlUQhRgemQSkhfNaP9LqR1XKujlTuUTpoyT3xwAzkmSxN1nABoutHEO/N87fpIbpbZaIdinF7b9srwUvDOKsywfs5HMiUZhLKoZzCcU/AEFjQsPTATACGsWf3JYPnWxL9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.4 (3.50.4-1.fc39) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Thu, 2024-04-18 at 10:41 +0200, Paolo Abeni wrote: > On Mon, 2024-04-15 at 14:49 +0200, Lukasz Majewski wrote: > > Some of the code already present in the hsr_ping.sh test program can be > > moved to a separate script file, so it can be reused by other HSR > > functionality (like HSR-SAN) tests. > >=20 > > Signed-off-by: Lukasz Majewski > > --- > > tools/testing/selftests/net/hsr/hsr_common.sh | 96 +++++++++++++++++++ > > tools/testing/selftests/net/hsr/hsr_ping.sh | 93 +----------------- > > 2 files changed, 99 insertions(+), 90 deletions(-) > > create mode 100644 tools/testing/selftests/net/hsr/hsr_common.sh > >=20 > > diff --git a/tools/testing/selftests/net/hsr/hsr_common.sh b/tools/test= ing/selftests/net/hsr/hsr_common.sh > > new file mode 100644 > > index 000000000000..822165391573 > > --- /dev/null > > +++ b/tools/testing/selftests/net/hsr/hsr_common.sh Whoops, I almost forgot: you need to add hsr_common.sh in the TEST_FILES list in the net self-tests Makefile Thanks, Paolo