Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1410209pxb; Sun, 22 Aug 2021 16:18:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtbAs50SAClB+OvCWogIIte3YGat4J7ZncuKPDl3otAQkGGPU6bBejCrqgKnXi+kHU4h+c X-Received: by 2002:a05:6402:50c9:: with SMTP id h9mr35283686edb.357.1629674325170; Sun, 22 Aug 2021 16:18:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629674325; cv=none; d=google.com; s=arc-20160816; b=0am9X0chjulEr9d8P9veFQ6v3E7+CpV2TE2MEBch90U+1pK+qH4cWFUYXspLLxVp0S keKWEK5WDVn+Tw/p37w943vN6t2n2YChKcVzB2e3qTv0/mFzi/4sLDuPtGRyI1b7xmt/ 0xO/+VZRuevUGZW+rvpVY3C6AL7AgzLcG1BeXTfci3H0Tfns4n6zo0R3Fi1ejlsvbX0r NUhPS2UAXW9Gt3gLBziDvP6UD3yLXnwHd0koQ66bwMYqTWsA9lPI7RBpXozLy8ZXtf4s eTrvKwqxYlOErMHu/uwM6BPxWXsipgox+teHcN791A1B1n4UtI4CwxPNtjML63uKfklR BCvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=qoEqpPVVbeRsWtNrIfC23kC8b2rXSc6F94tquu56HzE=; b=ZLCgSKXSya8HJgp9o2TNPrbdcZ3RJQiAiOrAWy1xfBUSNR778AWrHTGGRpvW/8Hhl8 hV2oRg9owVnBVoBMY5phLSl3MAuTKE73FsT6fK25UMqfSwfQ3iDFEfVOHlCi14Uqs7bS J+5DIzdMoO8DxSubiCTp2WuCK1OHjKDi+lTuM1xjp0SPNP+cQ1KQPBq3TeVmue9v8beE HhVyTasiIO6wpW5FtuPqBmRMaf5Dw+drZxmiWxui+IQJxby4r9fFW2im0Ug98ewsCGZP bmGV4NqNSXFuRsrjpH1y7XSpa/c8A9rWVGW95a0mTUThSm9bYZ1fUJpGSp8Pze1Th4WX RIPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=JMh7LcX1; 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 m13si13047484ejj.281.2021.08.22.16.18.22; Sun, 22 Aug 2021 16:18:45 -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=pass header.i=@lunn.ch header.s=20171124 header.b=JMh7LcX1; 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 S233168AbhHVXPN (ORCPT + 99 others); Sun, 22 Aug 2021 19:15:13 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:35674 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229969AbhHVXPM (ORCPT ); Sun, 22 Aug 2021 19:15:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=qoEqpPVVbeRsWtNrIfC23kC8b2rXSc6F94tquu56HzE=; b=JMh7LcX1c7mr3CELHp7jjU7YtI r3V52Q131j+1eBbOG3HJAQ3GmBboWISu0WIWGfpG188W0aYHgd/oImLfW67T5QBc9OQXuGv50J/ta rlCZdr9FTjx/bHFc71nPDMYqh+dUY7pCrCtSxs1WBpOcAU2NrJ0lSaSpwUcA7yjmxHyE=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mHwfZ-003O96-AV; Mon, 23 Aug 2021 01:14:25 +0200 Date: Mon, 23 Aug 2021 01:14:25 +0200 From: Andrew Lunn To: Alvin =?utf-8?Q?=C5=A0ipraga?= Cc: Alvin =?utf-8?Q?=C5=A0ipraga?= , Linus Walleij , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Rob Herring , Heiner Kallweit , Russell King , Michael Rasmussen , "netdev@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [RFC PATCH net-next 3/5] net: dsa: tag_rtl8_4: add realtek 8 byte protocol 4 tag Message-ID: References: <20210822193145.1312668-1-alvin@pqrs.dk> <20210822193145.1312668-4-alvin@pqrs.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > >> + */ > >> + > >> +#include > >> +#include > >> + > >> +#include "dsa_priv.h" > >> + > >> +#define RTL8_4_TAG_LEN 8 > >> +#define RTL8_4_ETHERTYPE 0x8899 > > > > Please add this to include/uapi/linux/if_ether.h Maybe call it ETH_P_REALTEK, and comment /* Multiple Proprietary protocols */ ? If you do it in an individual patch, you can explain more in the commit message about it being used for different protocols by Realtek, and that no assumptions should be made when trying to decode it. Andrew