From patchwork Tue Jul 21 16:38:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ioana Ciornei X-Patchwork-Id: 1333182 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 4BB46V11VGz9sQt for ; Wed, 22 Jul 2020 02:38:42 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730390AbgGUQig (ORCPT ); Tue, 21 Jul 2020 12:38:36 -0400 Received: from inva021.nxp.com ([92.121.34.21]:38952 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730373AbgGUQid (ORCPT ); Tue, 21 Jul 2020 12:38:33 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 1C2B0201634; Tue, 21 Jul 2020 18:38:32 +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 03E9020162D; Tue, 21 Jul 2020 18:38:32 +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 BF638202A9; Tue, 21 Jul 2020 18:38:31 +0200 (CEST) From: Ioana Ciornei To: davem@davemloft.net Cc: netdev@vger.kernel.org, Ioana Ciornei Subject: [PATCH net-next 0/3] dpaa2-eth: add support for TBF offload Date: Tue, 21 Jul 2020 19:38:22 +0300 Message-Id: <20200721163825.9462-1-ioana.ciornei@nxp.com> X-Mailer: git-send-email 2.17.1 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 TBF offload in dpaa2-eth. The first patch restructures how the .ndo_setup_tc() callback is implemented (each Qdisc is treated in a separate function), the second patch just adds the necessary APIs for configuring the Tx shaper and the last one is handling TC_SETUP_QDISC_TBF and configures as requested the shaper. Ioana Ciornei (3): dpaa2-eth: move the mqprio setup into a separate function dpaa2-eth: add API for Tx shaping dpaa2-eth: add support for TBF offload .../net/ethernet/freescale/dpaa2/dpaa2-eth.c | 65 +++++++++++++++++-- .../net/ethernet/freescale/dpaa2/dpaa2-eth.h | 3 + .../net/ethernet/freescale/dpaa2/dpni-cmd.h | 13 ++++ drivers/net/ethernet/freescale/dpaa2/dpni.c | 36 ++++++++++ drivers/net/ethernet/freescale/dpaa2/dpni.h | 16 +++++ 5 files changed, 126 insertions(+), 7 deletions(-) Reviewed-by: Jakub Kicinski