Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5024425rwe; Tue, 18 Apr 2023 00:32:20 -0700 (PDT) X-Google-Smtp-Source: AKy350bDQ9LdY2xlFKP63DqIAAT8w3fpSBlPCak8YO4MP+QgLIlTz40Yn/pm+gtZizfEPvdacpqb X-Received: by 2002:a17:90a:9603:b0:246:ee1d:b4d6 with SMTP id v3-20020a17090a960300b00246ee1db4d6mr1140618pjo.41.1681803140034; Tue, 18 Apr 2023 00:32:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681803140; cv=none; d=google.com; s=arc-20160816; b=xqRpsF5ZIlSLaSvFNRkDebAgGP52m9VLDTYIePRxvWuSyMKj+ErUuCNOxOGFicHta9 TCLPwQxBn0pojJXCazAY8FFzSw5lwXiPFaLa6dpooLBwbbWW6D0VHJQ/ylyTnyP/5dPx 6IVQaPNgjCczAa5hucZhhNz2qDRlwv79I+KyX57v0ZKoOEqEBBGpgW4V/Tph4kRNRX8W Atk9aaHGTlk5fVxu98hDSuENdvkC/2UPgEqf2M5MRsUqhO8UozYP6PyU3t6Ola8MqAkO 5OwJpXc4PeoXxlniCxqBbXWflm2WxSb6GMOQN/Kr05PWqbtsvFquKrJyBQO6fD1thJ40 MAgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=0sxt9tfSnb5U3VcPGJ30S6K7NZSscSGrunfA/UbffD8=; b=IQsSZNIheWWH+9SwjyiFPpucQHJtoPsZYVWmJBVrp1n6YTz2Ftp+lbKamGhz9HtcAk HkY+soJZ3MyBNlEUSWCm8uk/wSC/CQNgGyDkDT0Pra6k0x7S6u4RTrgvji+GAHfWGUKi Tr2dTIX2q1aNVH0FnJr9R93ITjgSx2A9oYrsHHZYBmJTzw5txRXjTAGl0A+pR1FUomll SYV9sCw7yzFghGi8AYbetxpLfso93bzaa8wfS8Ugmg1+DYtnsMoUuEbODYIYGpiEBZPh qFgkk1x112m8bLnCB4pHBfUY+jvU1JO0/ZJZB1LOEcV1kaVnCULo09CO/JT94IVkuMF4 tqkg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kb5-20020a17090ae7c500b00247828153aasi6380356pjb.65.2023.04.18.00.32.06; Tue, 18 Apr 2023 00:32:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230454AbjDRHZF (ORCPT + 99 others); Tue, 18 Apr 2023 03:25:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231282AbjDRHZC (ORCPT ); Tue, 18 Apr 2023 03:25:02 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D9CC65B9 for ; Tue, 18 Apr 2023 00:24:58 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pofhr-0002tt-EE; Tue, 18 Apr 2023 09:24:51 +0200 Received: from ore by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1pofhq-0002s2-8f; Tue, 18 Apr 2023 09:24:50 +0200 Date: Tue, 18 Apr 2023 09:24:50 +0200 From: Oleksij Rempel To: Vladimir Oltean Cc: "David S. Miller" , Andrew Lunn , Eric Dumazet , Florian Fainelli , Jakub Kicinski , Paolo Abeni , Woojung Huh , Arun Ramadoss , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, UNGLinuxDriver@microchip.com Subject: Re: [PATCH net-next v1 2/2] net: dsa: microchip: Add partial ACL support for ksz9477 switches Message-ID: <20230418072450.GC30964@pengutronix.de> References: <20230411172456.3003003-1-o.rempel@pengutronix.de> <20230411172456.3003003-3-o.rempel@pengutronix.de> <20230413042936.GA12562@pengutronix.de> <20230416165904.2y7zwgyxwltjzj7m@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230416165904.2y7zwgyxwltjzj7m@skbuf> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 16, 2023 at 07:59:04PM +0300, Vladimir Oltean wrote: > On Thu, Apr 13, 2023 at 06:29:36AM +0200, Oleksij Rempel wrote: > > According to KSZ9477S 5.2.8.2 Port Priority Control Register > > "To achieve the desired functionality, do not set more than one bit at a > > time in this register. > > ... > > Bit 6 - OR’ed Priority > > ... > > Bit 2 - 802.1p Priority Classification > > Bit 1 - Diffserv Priority Classification > > Bit 0 - ACL Priority Classification > > " > > @Arun what will happen if multiple engines are used for packet > > prioritization? For example ACL || Diffserv || 802.1p... ? > > If I see it correctly, it is possible but not recommended. Should I > > prevent usage of multiple prio sources? > > You could try and find out which one takes priority... we support VLAN > PCP and DSCP prioritization through the dcbnl application priority table. What will be the mainlineable interface for the DSCP support for KSZ8 series? If i see it correctly, it should be possible to use tc: tc filter add dev lan2 ingress protocol ip flower ip_tos 0x28 skip_sw skbedit priority 7 or dcb: dcb app add dev lan2 dscp-prio 28:7 dcb implementation seems to have some advantages, since it will allow to use OpenLLDP to configure traffic priorities. Correct? Regards, Oleksij -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |