Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2687269pxj; Sun, 23 May 2021 07:48:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKOaFEAGihpB39eEPTOcTCQW7jm1VMm7xytoNO6GncJ+ibDm7FI5600LTC3WKIsSOljFuO X-Received: by 2002:a17:906:a393:: with SMTP id k19mr18953203ejz.462.1621781321992; Sun, 23 May 2021 07:48:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621781321; cv=none; d=google.com; s=arc-20160816; b=wlZzo7lrLHQlQotymGffFDBDw0akLYa/NAeKeCsnOW7strIlaLpFeRNhIcgqzOz42C hrVAjrfFs043raen9eYeOCOzNdDbN8z6Dkv/SGtNykBCVlJPcOnN4b84dHodWezi5SVX uTBZdccA0Ht3D7y0in56EHVL2DvxNP7VjwR+VHUf2+wF3nQG1x4tZUHFMrbWzIhqvoh9 nT82IEHHfPJX8n3PvKakBqxxVyJURB3vI5rzQoDK6ZoZ9/iXG94pt4y6+oZzK8nOH0Hm FuJCAc0T/oXYYi1ggLEPtm1lGbHGKNlAXkjH57McTLf0FMd4AOg8XqP1E6XbdIQ3JVJa WdZg== 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=Ect182xosKMp40my+SbKIak0EebPY4jC7+FdnqtirHU=; b=X6C186psw3+IGnwbMvttmhdLlOktSUqDIsR/qMgpfCUz8dcddytXwFFbecIDlroVBr iGsVenCH4/TV0utdgzEJQjjoRKcVgk7Kn3v1iUSXzRrTHB6+2x1JoqWW3Ij/p8j3+ohw BtibCn13KCEzmdk9JRjGBeUH48THLSpnSrSXAJTZgPkivj7kZoNrV1Ie9X0cEX4oeY9e T/oiF7TuXE1Mc3q6lAmd1O2UTUD3RbRH0bM9ntRoRDQuxXwvUhujHVPVMNq3sQnkb58G fQWrVdVEdKHuOeGDbIjG67DZELB9UYjMNGD29SdODQNjVWOndtW50KxCTbZzbzcMwXtw bzAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=JTvNm6CA; 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 w1si10546296edc.221.2021.05.23.07.48.18; Sun, 23 May 2021 07:48:41 -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; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=JTvNm6CA; 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 S231812AbhEWOro (ORCPT + 99 others); Sun, 23 May 2021 10:47:44 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:53270 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231776AbhEWOrn (ORCPT ); Sun, 23 May 2021 10:47:43 -0400 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=Ect182xosKMp40my+SbKIak0EebPY4jC7+FdnqtirHU=; b=JTvNm6CARYHsNy8bPBRw0dBI36 ue13IgvEkns2qiBROEn0Qhwxk/FtPqLyJP+r7ExHOP2bDTMStd7PobEs+8Uk8sZVuVkHHwMBPbh+D b1wGZuy3GPTq6EU8mdl43SownMjNrCGQ6zMGip7AY0Oz9cv11nx/+VTrlx5Z2RK8y8M8=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1lkpMq-005nDd-Mv; Sun, 23 May 2021 16:46:12 +0200 Date: Sun, 23 May 2021 16:46:12 +0200 From: Andrew Lunn To: Joakim Zhang Cc: davem@davemloft.net, kuba@kernel.org, frieder.schrempf@kontron.de, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com Subject: Re: [RFC net-next 2/2] net: fec: add ndo_select_queue to fix TX bandwidth fluctuations Message-ID: References: <20210523102019.29440-1-qiangqing.zhang@nxp.com> <20210523102019.29440-3-qiangqing.zhang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210523102019.29440-3-qiangqing.zhang@nxp.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 23, 2021 at 06:20:19PM +0800, Joakim Zhang wrote: > From: Fugang Duan > > As we know that AVB is enabled by default, and the ENET IP design is > queue 0 for best effort, queue 1&2 for AVB Class A&B. Bandwidth of > queue 1&2 set in driver is 50%, TX bandwidth fluctuated when selecting > tx queues randomly with FEC_QUIRK_HAS_AVB quirk available. How is the driver currently scheduling between these queues? Given the 802.1q priorities, i think we want queue 2 with the highest priority for scheduling. Then queue 0 and lastly queue 1. Andrew