Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2850471pxf; Sun, 21 Mar 2021 09:02:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznRsKTnKV57nCIdHgkLrqtO3s80Ko64jJ83ky8zChjWlubHewwwFHlK08s8v5H3MtuI1Sr X-Received: by 2002:a05:6402:b70:: with SMTP id cb16mr21151756edb.11.1616342527812; Sun, 21 Mar 2021 09:02:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616342527; cv=none; d=google.com; s=arc-20160816; b=WWhCDjg/FgN0/ErqO138mgtwOrN25UemTFEIgmoDa3rKXUlafMfOgYIMFNxZSPbBcL fCgg1dtoeRFiiE75OwGp5+6KoxRoPe/A4zrT2AdzhuSBAbRWxwDuT0+lO/bNvrFt0iKJ yUmXujFNMpRJ1BLltCdEi68/WeVKARKC+Ul/jLym4Z2+UQ6vCnxR0MzU/H1KIfBzXvIg 0rbEE2VOrcMlxkn1vopU/p5Inyxr4+XMpIzp16V7g8act0AnesmLBVn6iyvTEFtRsIk+ 9+hs0AiA3/hwSxAgEnlh48FdvkHxTB3D4EWB50Fm4IzAIc5onHXVNaYOVHdk0tBR6UWz jtrg== 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; bh=3XczhgsUOadi6/kl/h6UaZbpYzTKDjCHFQFykm4imAI=; b=keIgIzucbENoQ+z/Ld7Am21LyVRB+WlWqBRX2Q2VpA+okXYakxYTxdmhuF7Ky/52ep jaQ8vvQ9BCcOl+x2GLvt4Eu4d+bBYvCIiIYKPv//cMKVX01geMlpU7Xn3v4c13PYptkw 3z7ACmUAZ49e+LlbAzizrn3vhxQdMDrAwz8Pkk8QvwomStIKUJGa3KClH7d9YrlV9iVG hb2ZpnsZQlFkBtfHsN/D5LiLJDWqGj0KD2KD8g1rQUk+g+P+9Gccoa3XKWg3vxeKXY1C n/mYIfbL+BYClLe26uSh/IZGZKHm8pr1qb8K/+mvSXEGUXnq4bMUXvZSc/zGUc//bIat 8LyQ== ARC-Authentication-Results: i=1; mx.google.com; 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 i22si9120452edc.112.2021.03.21.09.01.44; Sun, 21 Mar 2021 09:02:07 -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; 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 S230040AbhCUO2N (ORCPT + 99 others); Sun, 21 Mar 2021 10:28:13 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:39160 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229894AbhCUO16 (ORCPT ); Sun, 21 Mar 2021 10:27:58 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1lNz3c-00CFKs-QF; Sun, 21 Mar 2021 15:27:56 +0100 Date: Sun, 21 Mar 2021 15:27:56 +0100 From: Andrew Lunn To: Hariprasad Kelam Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kuba@kernel.org, davem@davemloft.net, sgoutham@marvell.com, lcherian@marvell.com, gakula@marvell.com, jerinj@marvell.com, sbhatta@marvell.com Subject: Re: [net-next PATCH 2/8] octeontx2-pf: Add ethtool priv flag to control PAM4 on/off Message-ID: References: <20210321120958.17531-1-hkelam@marvell.com> <20210321120958.17531-3-hkelam@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210321120958.17531-3-hkelam@marvell.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 21, 2021 at 05:39:52PM +0530, Hariprasad Kelam wrote: > From: Felix Manlunas > > For PHYs that support changing modulation type (NRZ or PAM4), enable these > commands: > > ethtool --set-priv-flags ethX pam4 on > ethtool --set-priv-flags ethX pam4 off # means NRZ modulation > ethtool --show-priv-flags ethX Why is this not derived from the link mode? How do other Vendors support this in their high speed MAC/PHY combinations. Please stop using priv flags like this. This is not a Marvell specific problem. Any high speed MAC/PHY combination is going to need some way to configure this. So please think about the best generic solution. This combined with your DSA changes give me a bad feeling. It seems like you are just trying to dump your SDK features into the kernel, without properly integrating the features in a vendor neutral way. Andrew