From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6C27DC49ED7 for ; Thu, 19 Sep 2019 08:36:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4AE9821848 for ; Thu, 19 Sep 2019 08:36:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388452AbfISIgl (ORCPT ); Thu, 19 Sep 2019 04:36:41 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:58193 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387617AbfISIgk (ORCPT ); Thu, 19 Sep 2019 04:36:40 -0400 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iArvb-0000Tl-IW; Thu, 19 Sep 2019 10:36:39 +0200 Received: from ukl by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1iArva-0005Yc-TR; Thu, 19 Sep 2019 10:36:38 +0200 Date: Thu, 19 Sep 2019 10:36:38 +0200 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Sascha Hauer Cc: Vladimir Oltean , netdev , Vivien Didelot , Florian Fainelli , kernel@pengutronix.de, Andrew Lunn Subject: Re: dsa traffic priorization Message-ID: <20190919083638.wgxrrgtqxwpjcsu3@pengutronix.de> References: <20190918140225.imqchybuf3cnknob@pengutronix.de> <20190919080051.mr3cszpyypwqjwu4@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190919080051.mr3cszpyypwqjwu4@pengutronix.de> User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: netdev@vger.kernel.org Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Thu, Sep 19, 2019 at 10:00:51AM +0200, Sascha Hauer wrote: > Hi Vladimir, > > On Wed, Sep 18, 2019 at 05:36:08PM +0300, Vladimir Oltean wrote: > > Hi Sascha, > > > > On Wed, 18 Sep 2019 at 17:03, Sascha Hauer wrote: > > > > > > Hi All, > > > > > > We have a customer using a Marvell 88e6240 switch with Ethercat on one port and > > > regular network traffic on another port. The customer wants to configure two things > > > on the switch: First Ethercat traffic shall be priorized over other network traffic > > > (effectively prioritizing traffic based on port). Second the ethernet controller > > > in the CPU is not able to handle full bandwidth traffic, so the traffic to the CPU > > > port shall be rate limited. > > > > > > > You probably already know this, but egress shaping will not drop > > frames, just let them accumulate in the egress queue until something > > else happens (e.g. queue occupancy threshold triggers pause frames, or > > tail dropping is enabled, etc). Is this what you want? > > If I understand correctly then the switch has multiple output queues per > port. The Ethercat traffic will go to a higher priority queue and on > congestion on other queues, frames designated for that queue will be > dropped. I just talked to our customer and he verified that their > Ethercat traffic still goes through even when the ports with the general > traffic are jammed with packets. So yes, I think this is what I want. Moreover egressing the cpu port has the advantage that network participants on other ports that might be able to process packet quicker are not limited. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | http://www.pengutronix.de/ |