From patchwork Fri Nov 25 16:56:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sebastian Andrzej Siewior X-Patchwork-Id: 13056158 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 99773C4332F for ; Fri, 25 Nov 2022 16:56:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229976AbiKYQ4V (ORCPT ); Fri, 25 Nov 2022 11:56:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229845AbiKYQ4R (ORCPT ); Fri, 25 Nov 2022 11:56:17 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCF522B24E for ; Fri, 25 Nov 2022 08:56:15 -0800 (PST) From: Sebastian Andrzej Siewior DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1669395374; 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; bh=y6Y6xRPTJ8X9Sc7RnuXPiOzTppXiFO1cpkcepue18L8=; b=ouDaVcUZu3nh0YdDDYhEWMTGP+rq5/wAmumsk037SEvsNXr4L6mVAJf8llTPQr+G5+Vis+ KHJ3rIxo1ERGxvAd6mNof56GDwaRoGCY097X+dj3ihhpv6JlPuG7p8BbvhYOzj0+GmkaC0 WavgHFrCzGVGSox/7G5yerOv4w4qSW1DhHPWE1MySD5S5Wbjeg1NaBMcaCq+sAKjvNP+ew 15YGGI0COJI3zBKanYiOCtfdDu6U9vcaiyV9Qamewq/Qh23bzDrkG2J+0HNqcTij0J62+R Zct1qARK+VRWnb2nNa647hUO8rKcw3Ic9Ip6c9YHPzW3t24PpQcetlmmuE912A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1669395374; 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; bh=y6Y6xRPTJ8X9Sc7RnuXPiOzTppXiFO1cpkcepue18L8=; b=8zmKB81becsT4VoT7+JWIp+RdH57rQenGuIzZxIcrR5E/1IrHTRDQ3BEhVoIKYpoKv85fv 5PA+n+DVwGw/cgAw== To: netdev@vger.kernel.org Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Thomas Gleixner , Kurt Kanzenbach Subject: [PATCH v4 net-next 0/8]: hsr: HSR send/recv fixes Date: Fri, 25 Nov 2022 17:56:02 +0100 Message-Id: <20221125165610.3802446-1-bigeasy@linutronix.de> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org I started playing with HSR and run into a problem. Tested latest upstream -rc and noticed more problems. Now it appears to work. For testing I have a small three node setup with iperf and ping. While iperf doesn't complain ping reports missing packets and duplicates. v3…v4: - Targeting net-next now. - Added patch #7 back to basket. Kurt's review comments are addressed. - Added a basic test for HSRv0. v2…v3: - dropped patch #7 was an optimisation. v1…v2: - Replaced cmpxchg() from patch #6 with lock because RiscV does not provide cmpxchg() for 16bit. - Added patch #3 which fixes the random crashes I observed on latest rc5 while testing. Sebastian