Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752859AbcLJWa2 (ORCPT ); Sat, 10 Dec 2016 17:30:28 -0500 Received: from shards.monkeyblade.net ([184.105.139.130]:58466 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751609AbcLJWa1 (ORCPT ); Sat, 10 Dec 2016 17:30:27 -0500 Date: Sat, 10 Dec 2016 17:30:25 -0500 (EST) Message-Id: <20161210.173025.1084307097879882075.davem@davemloft.net> To: ivan.khoronzhuk@linaro.org Cc: mugunthanvnm@ti.com, grygorii.strashko@ti.com, linux-omap@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/5] net: ethernet: ti: cpsw: improve re-split policy From: David Miller In-Reply-To: <1481372630-14914-1-git-send-email-ivan.khoronzhuk@linaro.org> References: <1481372630-14914-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: Mew version 6.7 on Emacs 25.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sat, 10 Dec 2016 13:31:06 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 731 Lines: 22 From: Ivan Khoronzhuk Date: Sat, 10 Dec 2016 14:23:45 +0200 > This patches add several simplifications and improvements to set > maximum rate for channels taking in account switch and dual emac mode. > > Don't re-split res in the following cases: > - speed of phys is not changed > - speed of phys is changed and no rate limited channels > - speed of phys is changed and all channels are rate limited > - phy is unlinked while dev is open > - phy is linked back but speed is not changed > > The maximum speed is sum of "linked" phys, thus res are split taken > into account two interfaces, both for dual emac mode and for > switch mode. > > Tested on am572x > > Based on net-next/master Applied.