Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1406731lqp; Mon, 15 Apr 2024 05:57:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV/TOMuq/a98fc//jceIC3daSPhNIu0l/8Cbz+i3mJIJizSOCaiKRd0foQfqXtUcF+5OZX3RDL81Et3tol4+D7cBz/2IsmTZSxZjKEtTw== X-Google-Smtp-Source: AGHT+IEOjuBKILIeVmYGE1bdHrjQNhwomgPNC8x/J9bOcX4TUEhg+VB1AzjtbSswAqJzrFILC3hl X-Received: by 2002:a17:906:af8f:b0:a52:68a4:f804 with SMTP id mj15-20020a170906af8f00b00a5268a4f804mr1774514ejb.43.1713185839513; Mon, 15 Apr 2024 05:57:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713185839; cv=pass; d=google.com; s=arc-20160816; b=pBb9QlvofT4yb/Z+dgSe+h2ly1ckKLucIPvrFQNPe1okLgFKlxhIu9XIQcBgpDmnLf V9a8ChSrFXaC03EXUfFeeikBVhcj/+FYsCVHHUOx86EwTw6uwDp0voA1gda+iRSpvn1e 6WFbLuuIfxYHeMlB/Bcy4HrfKpPVicRiwI+ZQ91PWWVU6xvT/tcLIszpbNi9vfKzuYds Nwj7QL/IB7TotUR4CdGdur0NOHEAWSlwTUp+B9wXRBWix5GJWKNu0VGqnMC7d4rZhCl8 OtOMnp/S99xWUf9fd21IYB2Wu5YlFbq2KP7N0tGHFRTbEflbjzjtwB3szCNzYt+eY+j3 17vw== 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=zyHbMiyALYbzRNSRQ3bVjd+xXWkKyPH62uQ6mMp3z34=; fh=GRXjSm+jfPP1PuQ2qh5w1/fdW+ph2t6Nsz4fBb/3Pfo=; b=M5TADkD6WYX0H2YbxpDViFZ3Y/NIbrMTKKW+aZVTuNUTW4RnSY0tE0TKWxfCtyb6+T MzEtZ/kxUrZin4+JHQ0oMNN2sXrZcP6Z0N4jVEWnggX6+soS45hiQ9ffPoIcoTyzVurE 32V3+WQY7lTcbTnDvOzeWFUw66KDfr72Nwx3ypvwSJKybcOlBQ3YUEH+PdNz/8rCJe+s 1BYzASJWgFGTyeHpmvzofkTpfoyKU1+5+laQ31olH4+uTUpEnLewuSrDyirUrqFlXFiT I1S4/5NkxmoLvK2KY65a4FjWKGPu3fGbN/TWNpXe3f5A6opb6xoMovrIMNsBWsGt+6V6 b7xQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=t7rbZXZn; 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-145129-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145129-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=denx.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ec22-20020a170906b6d600b00a526b7ed4cdsi892980ejb.280.2024.04.15.05.57.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 05:57:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145129-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=t7rbZXZn; 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-145129-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145129-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 404991F2243A for ; Mon, 15 Apr 2024 12:57:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A7F7A86ACC; Mon, 15 Apr 2024 12:50:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.b="t7rbZXZn" 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 64BA6745E7; Mon, 15 Apr 2024 12:50:09 +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=1713185410; cv=none; b=RGtw/cyPhNjBe9k313d0wCe9r/q/V39AjA2HU8Tdk8KfizgwfxWHOid7ZM/E5ZSE4fcPAmRcfpXfdAFCKA9+VUn/vxK1U7vSYQ5QIl9YfHt76DGIOxvCiks+d/u5Ktwa+aJrpfeMBNmWsz/ohf7+9pDszyEWZU6Gm+kk2fQrzBY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713185410; c=relaxed/simple; bh=RZViYOBc/68KZHjbxFjl/qF8BNCvvMPMaLqjwnNT1cQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=ORgd+ENgck9aMYXi0anVyokS1rcB8TkB9CAB9qgfI4T+gSjuxO4K+bwESMqxlg/06g3Pe/ePp9heN15SsSlkdG9rLZpoImr2TVOxvvTeZ/QBf4uSMyhvPbB2ykoXczSy11X2JFLqp3p/7p+Lo89nb//opCZ8V0/6aHaJimx28Y8= 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=t7rbZXZn; 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 012BD8801F; Mon, 15 Apr 2024 14:50:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1713185402; bh=zyHbMiyALYbzRNSRQ3bVjd+xXWkKyPH62uQ6mMp3z34=; h=From:To:Cc:Subject:Date:From; b=t7rbZXZnhhOiPAMBAd3KnAFH2Y/JIUtt2kInK9KgJfVnug9MAK1S/Jj1LvY+oxT3W xsIU8rzqkCkG88fq4MCy6ZUIYaJUZyf2QIOWjXjNCo52Yt0TndKFT4h3LjFvRjjMWz gjMmmc1QaKIzPpK0NDRq4jaVYL2+8EEUYIt6sdiPYLIuBIYIS/k1mffCPoXu+PStlA bjU7KLxDn55bT5wY/RHaYgOhOisEDtcZkLrKQk3q65G1t8nVdq9dicYzkb5vDp6pDa w7GvMW+Hzr9E3gZj3aDKU/2NqdTuEJjcZsEY2g9xRPGO48ImPGaIQ72Z8HuHelXjwC ujxFYu9WCLC4w== From: Lukasz Majewski To: netdev@vger.kernel.org, Paolo Abeni 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, Lukasz Majewski Subject: [net-next PATCH v5 0/4] net: hsr: Add support for HSR-SAN (RedBOX) Date: Mon, 15 Apr 2024 14:49:24 +0200 Message-Id: <20240415124928.1263240-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 This patch set provides v5 of HSR-SAN (RedBOX) as well as hsr_redbox.sh test script. Applied on top of: Branch: net-next/main SHA1: 50aee97d1511 Runs inside: Buildroot (2024.02.1+): SHA1: b31443e09cb7bb67b97ae6fb7614fe3a22889d50 Lukasz Majewski (4): net: hsr: Provide RedBox support (HSR-SAN) test: hsr: Move common code to hsr_common.sh file test: hsr: Extract version agnostic information from ping command output test: hsr: Add test for HSR RedBOX (HSR-SAN) mode of operation include/uapi/linux/if_link.h | 1 + net/hsr/hsr_device.c | 36 ++++++- net/hsr/hsr_device.h | 4 +- net/hsr/hsr_forward.c | 85 ++++++++++++++-- net/hsr/hsr_framereg.c | 52 ++++++++++ net/hsr/hsr_framereg.h | 6 ++ net/hsr/hsr_main.h | 7 ++ net/hsr/hsr_netlink.c | 30 +++++- net/hsr/hsr_slave.c | 1 + tools/testing/selftests/net/hsr/hsr_common.sh | 97 +++++++++++++++++++ tools/testing/selftests/net/hsr/hsr_ping.sh | 93 +----------------- tools/testing/selftests/net/hsr/hsr_redbox.sh | 97 +++++++++++++++++++ 12 files changed, 403 insertions(+), 106 deletions(-) create mode 100644 tools/testing/selftests/net/hsr/hsr_common.sh create mode 100755 tools/testing/selftests/net/hsr/hsr_redbox.sh -- 2.20.1