Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2825599pxb; Mon, 18 Oct 2021 02:42:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAonXkvuD1+C+pw4RfgZKNjlYbfIRkmnhM8KZXHgSRlloMd89dTzDCvUFhre/4MBIhjE6/ X-Received: by 2002:a05:6402:5c9:: with SMTP id n9mr42181934edx.90.1634550175424; Mon, 18 Oct 2021 02:42:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634550175; cv=none; d=google.com; s=arc-20160816; b=aWhbpWJ7sg22yUYl4FGwGdGmkZeJm2R9IFxkfXNvEmzGwaNEgwYzpB/j+DaEiDgN31 yRkHKUI7s9nU2DovOwvR62i/zMfZ8O+wZcoNB+o5L/2M4QnlAy/u/fMGn0Tml43VC9uR bFvZReAuF7Uis1DZTVTkNPEPoOnzFsxmANnbHJ/A8G0PurWklyKyU18QRZM7Pd525Dcv inmUbtUmPqCpkf05y5v0e1yKn8UHhnvHBVpyOgAAxmrwEgrLT5jk5iCH2pE7Pc2hhtJW veJwmHtdITO/f9ZDZ4V6bV5Wket5JQcoPIgJmq6mMfg1Umw5fq31LPLtOLZC37M/8hKw n34w== 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=0aPy9wGzZ3Pl4PBVTp4VUwHgut4BXqjb7+83Il+Vpqc=; b=IlTkvtNyytmPvmwFn0QgsYkIwv90UySn64P0x5ZiU6U4I82ok3S8f4OLUOKaLQDug0 NLI8hy7DjCji2I2fd3hVDJDT7NzyJM7IbPBT1xt9g3LlBKjwbQZn5JGqZJeWIFfN3OJI 0ioMtspxUpzMEXQO8E5c0tk7jX6JDgyLwJ0Ikf3IGTGQ5rHte8zIQg/BP1yfuujaYrpo aSJRqzDSN6ePbn3dGu5jIv40AJx60UwBrchzN23gzXBA0NeogYwb1oX1yDhakourPgJ1 n8x8fK/CR/y3EHCkBtB0Lf36PopTiIr2bw40JbgrtTmAB+5nud0OcZf/nh1al6Z6eEt5 K+zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@pqrs.dk header.s=google header.b=iySg41ik; 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 r24si23508808ejy.432.2021.10.18.02.42.31; Mon, 18 Oct 2021 02:42:55 -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=iySg41ik; 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 S231545AbhJRJmr (ORCPT + 99 others); Mon, 18 Oct 2021 05:42:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231496AbhJRJmm (ORCPT ); Mon, 18 Oct 2021 05:42:42 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65FCDC061745 for ; Mon, 18 Oct 2021 02:40:28 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id i20so67619275edj.10 for ; Mon, 18 Oct 2021 02:40:28 -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=0aPy9wGzZ3Pl4PBVTp4VUwHgut4BXqjb7+83Il+Vpqc=; b=iySg41ikJdwkxoY+DWs5oW4n5zCZaKka8FVutO9jiGfoGG1i1zOhODezZisIwvd0dg GMffmZEyx/OW0iT/beP84lRS03U3KtRwfqGKvLvHcbscxTnsaHOaIqyc2wuiYxwonSTC pq7oVjTOwAJWBUfOpFZmpdaQNBb7j5BUv2Wvk= 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=0aPy9wGzZ3Pl4PBVTp4VUwHgut4BXqjb7+83Il+Vpqc=; b=rRpMFd/uVPcnxHitBhcRPGTLhJL3RXcAsx7gMwAOEPxbWs+s6eBdsfZw/IEMCBtn2L Ugop6XPkNB++EUC9XZhUjteUbJR5vfixshUJf/E+zCBSTfyjmB/ACwG+tDHFAi0l0UAt uX8r1EHvSudm0v0M8SkDHb6MJltNafxVotsGQlY5yYyG2rpUAPsgNA4UyU8+DSZMKtvH t3YN6q6x3ZrIqkqR8jVPS3S7JkZmtVaWfcFWKzVL8NTzAuWUwZysgFuhqCIqzUt4fsRF Yg51svdJw9rx71YczHa/Aw2lNBjf9YqdJHRmUQ/eEnPrYZJQD8J4fsKjlNqBx9eKQwqs gj4Q== X-Gm-Message-State: AOAM531Mt69nOA9UC802XNeaDsq+gkwsbpB+8h9yx6L15joD69kneyzK ZdIpYAyDn7n0SoQxnb5uVJ07Wg== X-Received: by 2002:a17:907:9625:: with SMTP id gb37mr28508315ejc.432.1634550026907; Mon, 18 Oct 2021 02:40:26 -0700 (PDT) Received: from capella.. ([80.208.66.147]) by smtp.gmail.com with ESMTPSA id z1sm10134566edc.68.2021.10.18.02.40.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Oct 2021 02:40:26 -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: arinc.unal@arinc9.com, =?UTF-8?q?Alvin=20=C5=A0ipraga?= , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 net-next 1/7] ether: add EtherType for proprietary Realtek protocols Date: Mon, 18 Oct 2021 11:37:56 +0200 Message-Id: <20211018093804.3115191-2-alvin@pqrs.dk> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211018093804.3115191-1-alvin@pqrs.dk> References: <20211018093804.3115191-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 Reviewed-by: Vladimir Oltean Reviewed-by: Florian Fainelli --- v3 -> v4: no change v2 -> v3: no change; collect Reviewed-by from Florian v1 -> v2: no change; collect Reviewed-by from Vladimir 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