Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933997AbcK2PBd (ORCPT ); Tue, 29 Nov 2016 10:01:33 -0500 Received: from mail-lf0-f50.google.com ([209.85.215.50]:32826 "EHLO mail-lf0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933943AbcK2PBV (ORCPT ); Tue, 29 Nov 2016 10:01:21 -0500 From: Ivan Khoronzhuk To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, mugunthanvnm@ti.com, grygorii.strashko@ti.com Cc: linux-omap@vger.kernel.org, Ivan Khoronzhuk Subject: [PATCH 0/5] cpsw: add per channel shaper configuration Date: Tue, 29 Nov 2016 17:00:46 +0200 Message-Id: <1480431651-6081-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 862 Lines: 23 This series is intended to allow user to set rate for per channel shapers at cpdma level. This patchset doesn't have impact on performance. The rate can be set with: echo 100 > /sys/class/net/ethX/queues/tx-0/tx_maxrate Tested on am572xx Based on net-next/master Ivan Khoronzhuk (5): net: ethernet: ti: davinci_cpdma: add weight function for channels net: ethernet: ti: davinci_cpdma: add set rate for a channel net: ethernet: ti: cpsw: add .ndo to set per-queue rate net: ethernet: ti: cpsw: optimize end of poll cycle net: ethernet: ti: cpsw: split tx budget according between channels drivers/net/ethernet/ti/cpsw.c | 264 +++++++++++++++---- drivers/net/ethernet/ti/davinci_cpdma.c | 453 ++++++++++++++++++++++++++++---- drivers/net/ethernet/ti/davinci_cpdma.h | 6 + 3 files changed, 624 insertions(+), 99 deletions(-) -- 2.7.4