Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2386474pxb; Tue, 12 Oct 2021 05:38:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpzZYgLCz6bikml8YO1JP5x6zW6YXrESh5GzNO0vYLgi5XsBncncNprHhQdlLszGLAudJQ X-Received: by 2002:a63:3409:: with SMTP id b9mr22614945pga.168.1634042310094; Tue, 12 Oct 2021 05:38:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634042310; cv=none; d=google.com; s=arc-20160816; b=D91xrt/sD++4CbjY9zh08lpuimzCijSS8NECH4TWJzgkVkU+j/2vAhELZSIUhO/40f G0EcDm2bEotq7rkI9IOUdGqbsnu73sIxSr1FLzppMIyUopLjqJqk8Z5t9h1BUXfVJGEF Nv7lHI0K0+6yhZ1PhpooK9uuQ+WZg0CWAqCTDyK8hPIsJ6piHzMLDMt9Bj32hGMIj19l BMcsm1LDMUf+P6MlyTwIGhUdVaQ8fEwEtOq04AbQ9f6XPLm+a/MxVFfN/aBmQKUG/BuY qwMuTVO/Tod1zaKq3rIRqnXKVOOyQLE25jKHtcFRUyf2U887Cy49MRU7SYw0kxhfgZJb GzIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xeVLhBRyOBspSRG3UIrAmdPV82MS6FstyLV9tssi1Dw=; b=toXXy1L96lN3DkleRqaIT1l69jNo7a87a7B+KGndGrktg0jUf24YwMxRRzJm52IZnN bWpx0PiZ3RU5krYAJCMdeJ5kEbsDP7fbUB0l70Jtb4g0Yl9U+hXPEbvfC7a+dyBcbK/o RDfE89qyRL1jjJhLVBRfMpoIfdp7BLusj3pLNmCnRqbzYv3do5p4a9/K/rCJGc0zq/CG x+aV/oWTxaiq4GnAiwVApse6FnB4f3jUcOZeOGTHte8j3VEb/EbZK4L1AkfK64R5e7GE UmyyZB0gjUSulod6mlIUAnNE0KSHuixDjHPuQEwqX/zwNa4wIe0Lj4fh4qeJGDF/MKch IBKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@pqrs.dk header.s=google header.b=RX7Og1JZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w187si13369312pfb.286.2021.10.12.05.38.17; Tue, 12 Oct 2021 05:38:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@pqrs.dk header.s=google header.b=RX7Og1JZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236479AbhJLMjI (ORCPT + 99 others); Tue, 12 Oct 2021 08:39:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236467AbhJLMjG (ORCPT ); Tue, 12 Oct 2021 08:39:06 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D10E6C061745 for ; Tue, 12 Oct 2021 05:37:04 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id r18so80685037edv.12 for ; Tue, 12 Oct 2021 05:37:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pqrs.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xeVLhBRyOBspSRG3UIrAmdPV82MS6FstyLV9tssi1Dw=; b=RX7Og1JZuqe3FFBh/d5Y+Fctg5kEWRL1VzcgwNZWjsbGK41slNSiB/iK0+nBzp/7Dn SjE4OZysJh06VxXD/gAV9yARLUs+J/a9+P/TwTWnibvEx1yTxSD+BvU5J7BaLDvIMPSS KoLZA0UJ39DiuXp5uVqI/defqoStJeEkfLGJs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=xeVLhBRyOBspSRG3UIrAmdPV82MS6FstyLV9tssi1Dw=; b=KGPTWLSkm47jARLIo/MW1esp7H6/90WqFDocajr/cYzyjKiP4zQo74XiEXhVxuPF/7 gunJVcECsCCo0J1lZaG2JrAipP+lY2BuYgPt5Jw+fkhRQpyA6JeQ2jZ2ViU0lpb8QKDb G2yJ1MxWq4aXIWy+GfAahceyOv9OxLQhWwp3JIOnZceaXthsOMSodnEJN8iQs5YnBt24 YHB3g5aFn2vsanwYU3Urne9iVpqHSvMedUTX7yX0HKJePcLJ4RsDPpsLXVwMbOJo4O9X a01U9PzdUWI/tWa4VYOyvS+vluF/DWmSslnv3N8loGtNn8QQHnvszP3lcdMuNYcNUG8C 5new== X-Gm-Message-State: AOAM533ZpwG24uyRHgQQpfmH8knCiYx+3ZJBdWpGQcjuaYc0p/rYRTv7 U60tAGgXrLffyvwfhouMMHk5Pg== X-Received: by 2002:aa7:db85:: with SMTP id u5mr50211385edt.234.1634042223115; Tue, 12 Oct 2021 05:37:03 -0700 (PDT) Received: from capella.. (27-reverse.bang-olufsen.dk. [193.89.194.27]) by smtp.gmail.com with ESMTPSA id b5sm5763629edu.13.2021.10.12.05.37.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Oct 2021 05:37:02 -0700 (PDT) From: =?UTF-8?q?Alvin=20=C5=A0ipraga?= To: Linus Walleij , Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Rob Herring , Heiner Kallweit , Russell King Cc: =?UTF-8?q?Alvin=20=C5=A0ipraga?= , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 1/6] ether: add EtherType for proprietary Realtek protocols Date: Tue, 12 Oct 2021 14:35:50 +0200 Message-Id: <20211012123557.3547280-2-alvin@pqrs.dk> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211012123557.3547280-1-alvin@pqrs.dk> References: <20211012123557.3547280-1-alvin@pqrs.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alvin Šipraga Add a new EtherType ETH_P_REALTEK to the if_ether.h uapi header. The EtherType 0x8899 is used in a number of different protocols from Realtek Semiconductor Corp [1], so no general assumptions should be made when trying to decode such packets. Observed protocols include: 0x1 - Realtek Remote Control protocol [2] 0x2 - Echo protocol [2] 0x3 - Loop detection protocol [2] 0x4 - RTL8365MB 4- and 8-byte switch CPU tag protocols [3] 0x9 - RTL8306 switch CPU tag protocol [4] 0xA - RTL8366RB switch CPU tag protocol [4] [1] https://lore.kernel.org/netdev/CACRpkdYQthFgjwVzHyK3DeYUOdcYyWmdjDPG=Rf9B3VrJ12Rzg@mail.gmail.com/ [2] https://www.wireshark.org/lists/ethereal-dev/200409/msg00090.html [3] https://lore.kernel.org/netdev/20210822193145.1312668-4-alvin@pqrs.dk/ [4] https://lore.kernel.org/netdev/20200708122537.1341307-2-linus.walleij@linaro.org/ Suggested-by: Andrew Lunn Signed-off-by: Alvin Šipraga --- RFC -> v1: this patch is new include/uapi/linux/if_ether.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/if_ether.h b/include/uapi/linux/if_ether.h index 5f589c7a8382..5da4ee234e0b 100644 --- a/include/uapi/linux/if_ether.h +++ b/include/uapi/linux/if_ether.h @@ -86,6 +86,7 @@ * over Ethernet */ #define ETH_P_PAE 0x888E /* Port Access Entity (IEEE 802.1X) */ +#define ETH_P_REALTEK 0x8899 /* Multiple proprietary protocols */ #define ETH_P_AOE 0x88A2 /* ATA over Ethernet */ #define ETH_P_8021AD 0x88A8 /* 802.1ad Service VLAN */ #define ETH_P_802_EX1 0x88B5 /* 802.1 Local Experimental 1. */ -- 2.32.0