From patchwork Fri May 15 16:52:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ioana Ciornei X-Patchwork-Id: 1291494 Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=nxp.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 49NvcH47H6z9sTM for ; Sat, 16 May 2020 02:53:19 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726304AbgEOQxS (ORCPT ); Fri, 15 May 2020 12:53:18 -0400 Received: from inva021.nxp.com ([92.121.34.21]:42704 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726023AbgEOQxS (ORCPT ); Fri, 15 May 2020 12:53:18 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id ACD25200769; Fri, 15 May 2020 18:53:16 +0200 (CEST) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id A01822002A4; Fri, 15 May 2020 18:53:16 +0200 (CEST) Received: from fsr-ub1864-126.ea.freescale.net (fsr-ub1864-126.ea.freescale.net [10.171.82.212]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id 4DAFF20328; Fri, 15 May 2020 18:53:16 +0200 (CEST) From: Ioana Ciornei To: davem@davemloft.net, netdev@vger.kernel.org Cc: Ioana Ciornei Subject: [PATCH net-next 0/7] dpaa2-eth: add support for Rx traffic classes Date: Fri, 15 May 2020 19:52:53 +0300 Message-Id: <20200515165300.16125-1-ioana.ciornei@nxp.com> X-Mailer: git-send-email 2.17.1 Reply-to: ioana.ciornei@nxp.com X-Virus-Scanned: ClamAV using ClamSMTP Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This patch set adds support for Rx traffic classes on DPAA2 Ethernet devices. The first two patches make the necessary changes so that multiple traffic classes are configured and their statistics are displayed in the debugfs. The third patch adds a static distribution to said traffic classes based on the VLAN PCP field. The last patches add support for the congestion group taildrop mechanism that allows us to control the number of frames that can accumulate on a group of Rx frame queues belonging to the same traffic class. Ioana Radulescu (7): dpaa2-eth: Add support for Rx traffic classes dpaa2-eth: Trim debugfs FQ stats dpaa2-eth: Distribute ingress frames based on VLAN prio dpaa2-eth: Add helper functions dpaa2-eth: Minor cleanup in dpaa2_eth_set_rx_taildrop() dpaa2-eth: Add congestion group taildrop dpaa2-eth: Update FQ taildrop threshold and buffer pool count .../freescale/dpaa2/dpaa2-eth-debugfs.c | 11 +- .../net/ethernet/freescale/dpaa2/dpaa2-eth.c | 224 +++++++++++++++--- .../net/ethernet/freescale/dpaa2/dpaa2-eth.h | 44 +++- .../ethernet/freescale/dpaa2/dpaa2-ethtool.c | 24 +- .../net/ethernet/freescale/dpaa2/dpni-cmd.h | 34 +++ drivers/net/ethernet/freescale/dpaa2/dpni.c | 131 ++++++++++ drivers/net/ethernet/freescale/dpaa2/dpni.h | 36 +++ 7 files changed, 449 insertions(+), 55 deletions(-)