Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753595AbcLJWbD (ORCPT ); Sat, 10 Dec 2016 17:31:03 -0500 Received: from shards.monkeyblade.net ([184.105.139.130]:58486 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753241AbcLJWa7 (ORCPT ); Sat, 10 Dec 2016 17:30:59 -0500 Date: Sat, 10 Dec 2016 17:30:52 -0500 (EST) Message-Id: <20161210.173052.703592337860587516.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 4/5] net: ethernet: ti: cpsw: re-split res only when speed is changed From: David Miller In-Reply-To: <1481372630-14914-5-git-send-email-ivan.khoronzhuk@linaro.org> References: <1481372630-14914-1-git-send-email-ivan.khoronzhuk@linaro.org> <1481372630-14914-5-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:33 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 599 Lines: 17 From: Ivan Khoronzhuk Date: Sat, 10 Dec 2016 14:23:49 +0200 > 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 > in account two interfaces, both for dual emac mode and for > switch mode. > > Signed-off-by: Ivan Khoronzhuk Applied.