lkml.org 
[lkml]   [2016]   [Dec]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 1/5] net: ethernet: ti: cpsw: improve re-split policy
Date
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

Ivan Khoronzhuk (5):
net: ethernet: ti: cpsw: use same macros to get active slave
net: ethernet: ti: cpsw: don't start queue twice
net: ethernet: ti: cpsw: combine budget and weight split and check
net: ethernet: ti: cpsw: re-split res only when speed is changed
net: ethernet: ti: cpsw: sync rates for channels in dual emac mode

drivers/net/ethernet/ti/cpsw.c | 178 +++++++++++++++++++++++------------------
1 file changed, 99 insertions(+), 79 deletions(-)

--
2.7.4

\
 
 \ /
  Last update: 2016-12-10 13:24    [W:0.051 / U:4.716 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site