Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp181371ybk; Tue, 12 May 2020 19:32:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx++BHNR0krqyr3b9aul5xpbRLy1R6Iis89zUkK+DSVJLICIDOh89PETTKx572EArkbqZVq X-Received: by 2002:aa7:d495:: with SMTP id b21mr11641440edr.16.1589337140125; Tue, 12 May 2020 19:32:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589337140; cv=none; d=google.com; s=arc-20160816; b=ILWny3WmiUKNw5GnqpdsvsVq6SpCzeiyGYFfZi+W58eRoEilaSwGGzm9TloALEhS1X ZEtsWqQwCp+u6WcLMM2j7fz/6+0Jp2a1725qnznHuaM64tIL6no1WyZnxlwtAix0TJYr AgtRU/MgRkQb2m6R2BoxVBAlfus9Lsdhraglhimm51qGHbrCOftzMwqw9PjS4yHz7gTZ WRrOVJN8EtFHQ6kmJdH+P+E7CRFVOcHX/BUHQ+vgCFFjURCp3gvlxw8w+GUpiXgfcyIm gAJNT4yRZIpf16C4wL9xnc5rihdp1ca7nEpgLJMxRgCAW+iXf1IshDnQ5d4HI1X1I++t so8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from; bh=j2+2Ul2cwEIqKyk8dmkWuW/YLre4hxBtdmeE8cG2qmA=; b=K6Bw4nKlcgf+RAOBIFydM4mdb2XTXQTAJ/67xF1/Gp8ly/hNCPs1GTXxRxThM0VaFG tzU0P8LXqsYmNFkRVVkyHrc3CmUt3om9bh9tnGmF7XHoyz8z2fIaBRLQJAGipq/84f85 fFIrJ4WW6d1dpDVV6YVZOGWfMdNuNrv+JczUsD29wPU9vW7dAEqDBysbvX1798OB2yLJ 7PlUeO1DNOGEhMfMjQ5PcB2nhbjDgMm+a0O61OoN/plNfBBEgtHQ+tM/TEiMR/E4Tc2b s5MNV9lbaNYx4+Ws0oqEtrnS1fE/UTpZ3n6lWpEu+ns27mBJRSx4tdizoaNosFQoqwlg MfUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y19si1091993edi.10.2020.05.12.19.31.57; Tue, 12 May 2020 19:32:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728617AbgEMCaM (ORCPT + 99 others); Tue, 12 May 2020 22:30:12 -0400 Received: from inva020.nxp.com ([92.121.34.13]:40694 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728500AbgEMCaJ (ORCPT ); Tue, 12 May 2020 22:30:09 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id B21061A1322; Wed, 13 May 2020 04:30:07 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 050CE1A0420; Wed, 13 May 2020 04:29:58 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id C062C402B4; Wed, 13 May 2020 10:29:45 +0800 (SGT) From: Xiaoliang Yang To: xiaoliang.yang_1@nxp.com, po.liu@nxp.com, claudiu.manoil@nxp.com, alexandru.marginean@nxp.com, vladimir.oltean@nxp.com, leoyang.li@nxp.com, mingkai.hu@nxp.com, andrew@lunn.ch, f.fainelli@gmail.com, vivien.didelot@gmail.com, davem@davemloft.net, jiri@resnulli.us, idosch@idosch.org, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, horatiu.vultur@microchip.com, alexandre.belloni@bootlin.com, allan.nielsen@microchip.com, joergen.andreasen@microchip.com, UNGLinuxDriver@microchip.com, vinicius.gomes@intel.com, nikolay@cumulusnetworks.com, roopa@cumulusnetworks.com, linux-devel@linux.nxdi.nxp.com Subject: [PATCH v2 net-next 0/3] net: dsa: felix: tc taprio and CBS offload support Date: Wed, 13 May 2020 10:25:07 +0800 Message-Id: <20200513022510.18457-1-xiaoliang.yang_1@nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series support tc taprio and CBS hardware offload according to IEEE 802.1Qbv and IEEE-802.1Qav on VSC9959. v1->v2 changes: - Move port_qos_map_init() function to be common felix codes. - Keep const for dsa_switch_ops structs, add felix_port_setup_tc function to call port_setup_tc of felix.info. - fix code style for cbs_set, rename variables. Xiaoliang Yang (3): net: dsa: felix: qos classified based on pcp net: dsa: felix: Configure Time-Aware Scheduler via taprio offload net: dsa: felix: add support Credit Based Shaper(CBS) for hardware offload drivers/net/dsa/ocelot/felix.c | 45 ++++++ drivers/net/dsa/ocelot/felix.h | 5 + drivers/net/dsa/ocelot/felix_vsc9959.c | 190 ++++++++++++++++++++++++- 3 files changed, 239 insertions(+), 1 deletion(-) -- 2.17.1