Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4551609pxf; Tue, 23 Mar 2021 13:29:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxn+0jSN5mqdz6yKHAEkRCy/qhKkmq3jZuVn4MEVMz/usb33KrxyhaP8RbcG9kU3sXC0s07 X-Received: by 2002:a17:906:37db:: with SMTP id o27mr40771ejc.60.1616531347992; Tue, 23 Mar 2021 13:29:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616531347; cv=none; d=google.com; s=arc-20160816; b=Z8aitbPFKNZG3R1l24E/2+v29II6HEM/eCG34YQe0BUjkQLB4IJVXsJAI1vV/fFioR 5boqGpvn5o2qekPLU9nxLl1RmOA4aruxe2EwseBKW8g5RjagTkrdllyANmybY+8Ff9fg lmrFzFs54/l6BrpPCskGM+pNvEV0KNAoSVwAiyxuH7Yv0NS7R6BA3dqhE7dL8SdMAtz2 RayORk5JJ2FYVDns1oRC76iG0KNlysn4Viv5nfptCDDXWsuMgJTXKTCY5GTZLN+G0gEU J/Q7zR9W7GNX79AWg4bSJ6hK5YX0WM/VVTN2XX4qqeXBIiOQYmJ3DcNZ3TDU49AfSKBF FzPg== 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=GBMIF8twlF80PFlD0ifRWVfYqhUcZ1vX25p3lRbjeRk=; b=tJrz43FICbimANexyzSJ7RNIgmb2lVtEdOrjlFqPWCCBUK/BUhqdzCcu7kTLLsDCq5 owVAS4bY64luTwSPL4Kt2YRUIwQxggvLw+cfrcxgjWmPM/hgdkY2+RHmvGUqHBa/riat TDpngYE13P6hgwNnuZBYIMdEntZbcX+9A+PkWDyYYSrRcbaac0ANUdP0JQZME6e0q07D c+pxhOUKssTh068R/ENWbT6NseGJAn2wQRQncBHq1l+RjDhLTUiFvQ2ADnhYJl1YOHsC CBrJhHXMlT9vQrDdyLGK7ET4F18bLw0qGwGaMsTiE/aQXAlpBEJWKTqpVssN8Ae9D+qR XeQA== 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 zd21si41764ejb.634.2021.03.23.13.28.43; Tue, 23 Mar 2021 13:29: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 S233109AbhCWU0v (ORCPT + 99 others); Tue, 23 Mar 2021 16:26:51 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:43444 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230247AbhCWU00 (ORCPT ); Tue, 23 Mar 2021 16:26:26 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1lOnba-00CeYx-RS; Tue, 23 Mar 2021 21:26:22 +0100 Date: Tue, 23 Mar 2021 21:26:22 +0100 From: Andrew Lunn To: Hariprasad Kelam Cc: "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 Tue, Mar 23, 2021 at 06:13:28PM +0000, Hariprasad Kelam wrote: > > Hi Andrew , > > Please see inline, No need to say that. That is the correct way to right emails. > > Hi Hariprasad > > > > Private flags sound very wrong here. I would expect to see some integration > > between the switchdev/DSA driver and the MAC driver. > > Please show how this works in combination with drivers/net/dsa/mv88e6xxx > > or drivers/net/ethernet/marvell/prestera. > > > Octeontx2 silicon supports NPC (network parser and cam) unit , through which packet parsing and packet classification is achieved. > Packet parsing extracting different fields from each layer. > DMAC + SMAC --> LA > VLAN ID --> LB > SIP + DIP --> LC > TCP SPORT + DPORT --> LD > And packet classification is achieved through flow identification in key extraction and mcam search key . User can install mcam rules > With action as > forward packet to PF and to receive queue 0 > forward packet to VF and with as RSS ( Receive side scaling) > drop the packet > etc.. > > Now with switch header ( EDSA /FDSA) and HIGIG2 appended to regular packet , NPC can not parse these > Ingress packets as these headers does not have fixed headers. To achieve this Special PKIND( port kind) is allocated in hardware > which will help NPC to parse the packets. > > For example incase of EDSA 8 byte header which is placed right after SMAC , special PKIND reserved for EDSA helps NPC to > Identify the input packet is EDSA . Such that NPC can extract fields in this header and forward to > Parse rest of the headers. > > Same is the case with higig2 header where 16 bytes header is placed at start of the packet. > > In this case private flags helps user to configure interface in EDSA/FDSA or HIGIG2. Such that special > PKIND reserved for that header are assigned to the interface. The scope of the patch series is how > User can configure interface mode as switch header(HIGIG2/EDSA etc) .In our case no DSA logical > Ports are created as these headers can be stripped by NPC. 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