Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5206038rdb; Wed, 13 Dec 2023 01:54:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IFhTRYytaV4fpEL8PjmTVecm7kPx3d/Xsy7h3efcvEXNjMsypwGcZELOJ0xu907Ce5ZysiJ X-Received: by 2002:a92:c24b:0:b0:35d:59a2:6461 with SMTP id k11-20020a92c24b000000b0035d59a26461mr8928009ilo.52.1702461267392; Wed, 13 Dec 2023 01:54:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702461267; cv=none; d=google.com; s=arc-20160816; b=BGhQHv/QZl4wOlKbZzNRpBMas6Lka/Ui2ac5sz9PhmSZN75kFK7315yzP6gws1D5aH Q+NmDqdSrNF2MLiPM9cOt0SnlR3OnXPQ1OMwkygc51NSxDIdYla2YYneNyqzQwyk+W1t 95RSqIWzEK6kT/ngHN8a4BpW69LVgcH/pTPu2OJX0RorXLw2xZZtl5asx0DYMlwqz4// K1ciRjKf83IY7kCZijBpC8aV6coFL91Up8RqnOqgBl6eTRayDLiZ5P6IirmSWWXWlhfN Ae38bZqA+txeOM7aWnfkH3S7R4iNgPIKiTCk7euwOUw3bjRTxXoqv03sKEbdC8D5wT4/ i9qA== 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=7F13S8FLoutiZ3CalADES9Ypom9LrrGw6pCO4/ixxqw=; fh=PjT2c2mytH7yt33vNkyIsSOZ24peTL8prk1qJHohgxE=; b=hm0M+LQbMNuJB6pyOFiRQLY39HVINQdlPA3sZDwQ5WKTo/3ozjo/SLw0TSYBrbbfl1 UYtpSt0tJ2WmQ7Sl5nzogvDiL2bwL1V1GFnbvMpHRC/DZ9a309AewradIRyEKWz77hTM OwjovKrIEyOZLUEQq4NTS08z1RtE7bcOZc1qqkg6wForIPjUKYPiRgwO1e97PerCKYXz 7b0ncoeXxqXofCx2HZbCkklTqRHoaQKl9cKiZWNPQt++hNMebGcs9p6W37Ae1RrVFcqB ZgsEBU7aPPOf5uHNTz/nw+Qj6SqxQo4CDvTY7uUE8YBj4cSbQdfB/Bx/zGZyCW5k6Ggj UR3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=RuvoDMyV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id j12-20020a65428c000000b005be1ee5b9dfsi8908663pgp.454.2023.12.13.01.54.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 01:54:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=RuvoDMyV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 682798080EF9; Wed, 13 Dec 2023 01:54:23 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235105AbjLMJyJ (ORCPT + 99 others); Wed, 13 Dec 2023 04:54:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233227AbjLMJyI (ORCPT ); Wed, 13 Dec 2023 04:54:08 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAB11E8; Wed, 13 Dec 2023 01:54:14 -0800 (PST) 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=7F13S8FLoutiZ3CalADES9Ypom9LrrGw6pCO4/ixxqw=; b=RuvoDMyVMMqqs1yxb8x0Hv1lR0 MgvpCopZwbFbh/IJm/HmhiDSH5+was538qxsXbKTUCGvI1RgOdw3EukXbMtf4pwwf9A84COngxvsk 1BE9R0UJ0+69oMZogGPSJ6B9j/7kgyya2bTz0TOfJerchu+fUph//fKvnOTIkCtIR4sQ=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rDLwI-002nrP-E7; Wed, 13 Dec 2023 10:54:02 +0100 Date: Wed, 13 Dec 2023 10:54:02 +0100 From: Andrew Lunn To: Sneh Shah Cc: Vinod Koul , Bhupesh Sharma , Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@quicinc.com, Andrew Halaney , andersson@kernel.org Subject: Re: [PATCH net-next] net: stmmac: qcom-ethqos: Add sysfs nodes for qcom ethqos Message-ID: <428bba44-c0b9-48b2-b4fc-feba3e2245ae@lunn.ch> References: <20231204084854.31543-1-quic_snehshah@quicinc.com> <3e4a1b9c-ed0f-466e-ba11-fc5b7ef308a1@lunn.ch> <5d5f3955-fc30-428c-99f4-42f9b7580a84@quicinc.com> <0c966845-2bbc-4196-806d-6a33e435bf7d@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 13 Dec 2023 01:54:23 -0800 (PST) > >> We need to route vlan traffic of a specific Priority to GVM Queue > >> (Ethernet queue 5) via programming a MAC register. The MAC register > >> is not accessible in GVM and has to be programmed from PVM. stmmac > >> already has TC OPS to program this routing via vlan > >> priority. However, as PVM has only 4 queues enabled, TC tool will > >> not take 5th queue as input. Hence, these nodes were added to > >> conifure the MAC register to route specific vlan packets to 5th > >> queue in GVM. > > > >> Note: The queues mentioned above are HW MTL Queues and DMA > >> Channels. The routing can be done in the HW itself based on vlan pcp > >> before the packets reach to driver. > > > > Is the normal way you would do this is like this: > > > > tc qdisc add dev eth1 parent root handle 100 \ > > mqprio num_tc 4 \ > > map 0 1 2 3 0 0 0 0 0 0 0 0 0 0 0 0 \ > > queues 1@0 1@1 1@2 1@3 \ > > hw 1 > > > > But you are saying that you cannot extend this to 5 queues? > > > > Andrew > > Yes this can't extend to 5 queues. Because, stmmac in primary > virtual machine will only have 4 netdev queues. So TC won't take > input for 5th queue. I still don't understand your architecture. How can you have 5 queues if the physical hardware only has 4? Is there any documentation for all this? Any datasheet? Andrew