Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp382327pxf; Thu, 25 Mar 2021 06:25:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwg8uEl3kz03HwaZJgirqYjUm5u2ZBZVd0HU9+iqSY/1Jq+IkKqseW3OyZ5EpH6g7N7v8Qm X-Received: by 2002:aa7:c7c5:: with SMTP id o5mr8955166eds.31.1616678758181; Thu, 25 Mar 2021 06:25:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616678758; cv=none; d=google.com; s=arc-20160816; b=ynE/PAr46grqGQkmBW6NPiJ+zGOd0Ng9QAuhwAjScITZO+fQwsiVXMmik9DfA9mdaF p0MHBbJNfgRj0IAbtTHSn0VceFOA5qG+lVmECcATAtIly6OYgVYSXwjDO3bZLBVqvQ89 04vOLIAKGCJCdX7+gFOOf2z9jDTw6py1urokIY76CljR6wqv1tgrBmyukaQfFL0SUVbe Qsap/OcGPsygZZIEY27tV73dQkTY0ZLYhLxVjX9vYgtRXXvpxgqhqCGa/B3U1Xd4DfEV ivM365RiKyJb6iv+Wbcnl6HVN9iJZ/zdRQOSD5syvVWRRfZKYwJbqq07fM4ReQzrtePF +gTA== 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=gtwPQDRNG5YtK6iJInB00KD67kYlFZYePERsJVQzyY8=; b=qo/VhtwV/sSmI10WqxwgQ8fRjCITcGBMA94p8P+fsZXTqYtgYPwYVrm9GK5nRz2ynI ckVchagCcqFJsvXIF0z6X6GZ08jiSkkQvaaMzYKWYdg33QKWTEJRlm6xXLvx6Z8Md3KF fggw0Z1pNkACI0rQJr0plvCodefCOgqfXK9i8dIF+IFgLT8hLWkZEwHmBN1Clx7DPRLR yii+yfclufaD/p4YxgYUir9pPc7sWavssB0vyVW0pf3jqVz2rLBsYMixyDCKRX7AU+JF wCrz47qR/aQFqxK4VrTn39+0rbNBwVh6Jx3dwZZbqnIZQfq+oHYpN8JjY8IzSkGrUQKq RPWA== 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 z7si4149658edc.356.2021.03.25.06.25.33; Thu, 25 Mar 2021 06:25:58 -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 S230281AbhCYNVk (ORCPT + 99 others); Thu, 25 Mar 2021 09:21:40 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:47074 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229764AbhCYNVe (ORCPT ); Thu, 25 Mar 2021 09:21:34 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1lPPvX-00CxTf-QS; Thu, 25 Mar 2021 14:21:31 +0100 Date: Thu, 25 Mar 2021 14:21:31 +0100 From: Andrew Lunn To: Sunil Kovvuri Cc: Hariprasad Kelam , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "kuba@kernel.org" , "davem@davemloft.net" , Sunil Kovvuri Goutham , Linu Cherian , Geethasowjanya Akula , Jerin Jacob Kollanukkaran , Subbaraya Sundeep Bhatta Subject: Re: [net-next PATCH 0/8] configuration support for switch headers & phy Message-ID: References: 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 On Thu, Mar 25, 2021 at 06:32:12PM +0530, Sunil Kovvuri wrote: > On Thu, Mar 25, 2021 at 6:20 PM Andrew Lunn wrote: > > > > > > So you completely skipped how this works with mv88e6xxx or > > > > prestera. If you need this private flag for some out of mainline > > > > Marvell SDK, it is very unlikely to be accepted. > > > > > > > > Andrew > > > > > > What we are trying to do here has no dependency on DSA drivers and > > > neither impacts that functionality. > > > > So this is an indirect way of saying: Yes, this is for some out of > > mainline Marvell SDK. > > > > > Here we are just notifying the HW to parse the packets properly. > > > > But the correct way for this to happen is probably some kernel > > internal API between the MAC and the DSA driver. Mainline probably has > > no need for this private flag. > > > > Andrew > > Didn't get why you say so. > HW expects some info from SW to do the packet parsing properly and > this is specific to this hardware. Anything which needs out of mainline code is going to be rejected, unless you can show there is an in mainline use case as well. Which is why i keep pointing you to mv88e6xxx and prestira. That provides the necessary {E}DSA tags. You have an mv88e6xxx and prestira switch being controlled by Linux with DSA tagged frames flowing out of it into your MAC driver. What is the big picture use case that requires this private flag to enable DSA parsing? Why don't the MAC driver and the DSA driver just talk to each other, and setup the parsing? Andrew