From patchwork Thu Mar 10 07:35:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kurt Kanzenbach X-Patchwork-Id: 12775987 X-Patchwork-Delegate: kuba@kernel.org 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 A1DB3C433EF for ; Thu, 10 Mar 2022 07:35:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240101AbiCJHg3 (ORCPT ); Thu, 10 Mar 2022 02:36:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236537AbiCJHg1 (ORCPT ); Thu, 10 Mar 2022 02:36:27 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0992E79C78 for ; Wed, 9 Mar 2022 23:35:26 -0800 (PST) From: Kurt Kanzenbach DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1646897724; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=XBt8ZxM9l6PdH/gcgODOu/4DY2CfD1qg+b7hsM0BHUY=; b=zHlZgPJHfCFFecbH4zQvzYWh9BClwcRkWMLvoGtcG2YTS9vt8FksmIcSlrDIj3TaMPkiac ps6Z0moW/lPk1L32XRghI9gyjaX5+HuXuS9NB7mG55d+orgPBeRHVGuFNfYPIQ7i4DVy1y wQrsIvlzm0CyZA1oMDqzOnI6zEHXZcC7TVzkluF8L5NKOKy5ll60XmBXfxdn0afriP5HV+ x2NTr6jDmH9OK2O/mkOtWwLghhPpovjs7y2O7g2Q5FLHHLWfpyGniCEEBzipyGDUps5U2t 0GGm71YEccAyrNiOHoASCuKZjgDsYYBTv9QT4X72FEdZ9sg4qaf15X+OpuwQwQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1646897724; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=XBt8ZxM9l6PdH/gcgODOu/4DY2CfD1qg+b7hsM0BHUY=; b=Zk2vUkvGIzC8meR34CDiti/3I+DxCKjnt1884Xn53foDq/+15jZNhI73tJNmt/m48TzIH0 MpHREcy1TYjWQrAQ== To: "David S. Miller" , Jakub Kicinski Cc: "Gustavo A. R. Silva" , Alexander Lobakin , Vladimir Oltean , Eric Dumazet , Paul Blakey , Yoshiki Komachi , zhang kai , Juhee Kang , Andreas Oetken , George McCollister , Sebastian Andrzej Siewior , netdev@vger.kernel.org, Kurt Kanzenbach , Anthony Harivel Subject: [PATCH net-next] flow_dissector: Add support for HSRv0 Date: Thu, 10 Mar 2022 08:35:05 +0100 Message-Id: <20220310073505.49990-1-kurt@linutronix.de> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Commit bf08824a0f47 ("flow_dissector: Add support for HSR") added support for HSR within the flow dissector. However, it only works for HSR in version 1. Version 0 uses a different Ether Type. Add support for it. Reported-by: Anthony Harivel Signed-off-by: Kurt Kanzenbach --- net/core/flow_dissector.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/core/flow_dissector.c b/net/core/flow_dissector.c index 34441a32e3be..03b6e649c428 100644 --- a/net/core/flow_dissector.c +++ b/net/core/flow_dissector.c @@ -1283,6 +1283,7 @@ bool __skb_flow_dissect(const struct net *net, break; } + case htons(ETH_P_PRP): case htons(ETH_P_HSR): { struct hsr_tag *hdr, _hdr;