From patchwork Mon Apr 15 12:49:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 13629929 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.b="t7rbZXZn" 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: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean X-Patchwork-Delegate: kuba@kernel.org 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